Skip to content

Instantly share code, notes, and snippets.

View firatsarlar's full-sized avatar
🏠
Working from home

Seydi Fırat Şarlar firatsarlar

🏠
Working from home
View GitHub Profile
@ECHO OFF
title Windows Activation Script
setlocal EnableDelayedEXpansion
::echo Note: To eXecute this script with Run As Administrator
net session >nul 2>&1
if %errorlevel% == 0 (
::echo Success: Administrative permissions confirmed.
call :Main
@firatsarlar
firatsarlar / move_appdata_win10.md
Created February 22, 2024 19:23 — forked from Demiu/move_appdata_win10.md
How to properly move AppData in Windows 10

Moving AppData folder on Windows 10

  1. Create a new user with administrator permissions
  2. Sign out of the current user and sign in as the newly created user
  3. Navigate to C:\Users in File Explorer
  4. Click into the account you want move AppData from
    • There could be a popup telling you that you need to allow yourself to access that user's data, do so
  5. Cut the AppData folder
    • If invisible, go to View and check Hidden Items
  6. Paste in the desired location
Model: Default (GPT-3.5)
Talat Burgaz
darling
Hello! How can I help you today? If you have any questions or need assistance with something, feel free to ask.
Talat Burgaz
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@firatsarlar
firatsarlar / autoDeployWindows.bat
Created September 7, 2018 09:57 — forked from jacobsalmela/autoDeployWindows.bat
Script for WinPE to auto deploy a Windows 10 image.
echo select disk 0 > diskpart%ID%.txt
echo clean >> diskpart%ID%.txt
echo ** Creating system reserved partition...
echo create partition primary size=500 >> diskpart%ID%.txt
echo select partition 1 >> diskpart%ID%.txt
echo active >> diskpart%ID%.txt
echo format quick fs=ntfs >> diskpart%ID%.txt
echo assign letter="r" >> diskpart%ID%.txt
uint32_t _bperm(const uint32_t a, const uint32_t b, const uint32_t s) {
unsigned char input[8], selector[4];
input[0] = a & 0xFF;// x<7:0>
input[1] = ( a >> 8 ) & 0xFF; //x<15:8>
input[2] = ( a >> 16 ) & 0xFF; //x<23:16>
input[3] = ( a >> 24 ) & 0xFF; //x<31:24>
input[4] = b & 0xFF;// y<7:0>
#include <string>
#include <iomanip>
#include <sstream>
#include <ctime>
void tmstamp() {
std::stringstream stream;
time_t rawtime;
tm * timeinfo;
#include <stdint.h>
#include <string>
#include <iomanip>
#include <jansson.h>
void tata8() {
string sk_cd_h80_dhash = "[ \
\"0x5803b44e\", \"0x6afaf87f\", \"0xf021089f\", \"0xf2b01571\", \"0x9059037f\", \"0x07af3fd0\", \"0xca78dc01\", \"0xb603141b\", \"0xd863013c\", \
\"0xaf2f38bb\", \"0x7befd0d9\", \"0x0e78d0c4\", \"0xe216e6cb\", \"0x57629494\", \"0xadc9b33f\", \"0x732559d7\", \"0x65755a5b\", \
\"0x9883b7fd\", \"0x70a49ecf\", \"0x795e41fa\", \"0x767630b1\", \"0xd09b7749\", \"0x48bb9913\", \"0x83a878cd\", \"0x14ebd014\", \
\"0x411425c1\", \"0xb8ca65db\", \"0x7f58351c\", \"0x12e2bbdd\", \"0x9fe5fa6c\", \"0xfbcd262f\", \"0x6cf31e38\", \"0x20da65f8\", \
@firatsarlar
firatsarlar / schema-org-structured-data-markup-using-microdata.html
Created November 9, 2017 12:20 — forked from milanaryal/schema-org-structured-data-markup-using-microdata.html
An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">
@firatsarlar
firatsarlar / uri.js
Created November 8, 2017 19:33 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"