Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@jtferns
jtferns / cmder_split.md
Last active March 26, 2023 14:39
Create simple 4-way split of Cmder for windows cmd prompting...

Setup

  1. Launch Cmder
  • step1
  1. Right-click on the console tab
  2. Select New Console... to launch the ConEmu console create dialog
  • step2
  1. In the New Console Split section, select the To right radio option click the Start button
  • step3
  1. Congrats, you now have a half-n-half or 50-50 horizontal split!
@ied206
ied206 / telegram-cli-cygwin.patch
Last active April 27, 2021 10:33
telegram-cli-cygwin.patch
Binary files tg/.git/index and tg-cygwin/.git/index differ
diff -urN tg/Makefile tg-cygwin/Makefile
--- tg/Makefile 2015-06-16 12:39:34.931053900 +0900
+++ tg-cygwin/Makefile 2015-06-16 12:44:12.584342300 +0900
@@ -4,9 +4,9 @@
LDFLAGS= -L/usr/local/lib -L/usr/lib -L/usr/lib -L/usr/lib
CPPFLAGS= -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -I/usr/include
DEFS=-DHAVE_CONFIG_H
-COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
+COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter
@gvanem
gvanem / enum_adapters.c
Last active January 31, 2024 10:50
A simple program to enumerate the adapters found by Win10Pcap. Ref: https://github.com/SoftEtherVPN/Win10Pcap
/*
* Simple program to enumerate the adapters found by Win10Pcap.
*
* Ref: https://github.com/SoftEtherVPN/Win10Pcap
*
* Put this file in the root directory of Win10Pcap-root and do:
*
* cl -nologo -W3 -Zi -Ot -DWIN32 -DWIN32COM_CPP -MTd -GF -GS -EHsc -RTCs -RTCu -RTCc
* -I./Packet_dll -Fe./enum_adapters.exe enum_adapters.c
* -link -nologo -debug Packet.lib user32.lib ws2_32.lib version.lib
@jpmurray
jpmurray / itunes_genre.csv
Created July 20, 2015 23:50
iTunes Store genre mapping into CSV format
category genre subgenre name
33 Movies
33 4401 Action & Adventure
33 4434 African
33 4402 Anime
33 4431 Bollywood
33 4403 Classics
33 4404 Comedy
33 4422 Concert Films
33 4405 Documentary
@ynkdir
ynkdir / win32.mak
Created July 31, 2015 21:05
win32.mak
# Win32.Mak - Win32 application master NMAKE definitions file for the
# Microsoft Windows SDK programming samples
# Copyright (C) Microsoft Corporation
# -------------------------------------------------------------------------
# This files should be included at the top of all MAKEFILEs as follows:
# !include <Win32.Mak>
# -------------------------------------------------------------------------
#
# Define APPVER = [ 4.0 | 5.0 | 5.01 | 5.02 | 6.0 | 6.1] prior to including win32.mak to get
# build time checking for version dependencies and to mark the executable
@gvanem
gvanem / Makefile.MSVC
Last active May 26, 2018 03:06
GNU makefile for Pylibnet and MSVC.
#
# GNU Makefile for libnet.pyd (MSVC)
# Only Python 2.7 have been tested.
#
# By G. Vanem <[email protected]> 2013.
#
#
# Options and paths. Change to suite your setup.
#
@ibel001
ibel001 / default
Created March 11, 2016 19:40
Reverse Proxy Serviio Media Browser, Console with nginx
#Serviio Console
upstream serviiocs {
server xxx.xxx.xxx.xxx:23423; #Serviio Console
}
server
{
listen 80;
server_name console.mydomain;
@Cr4sh
Cr4sh / fork.c
Created March 19, 2016 15:08
fork() for Windows
/*
* fork.c
* Experimental fork() on Windows. Requires NT 6 subsystem or
* newer.
*
* Copyright (c) 2012 William Pitcock <nenolod@dereferenced.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
@SmartFinn
SmartFinn / dhcp-leases-to-dns.rsc
Last active October 22, 2025 21:55
MikroTik (RouterOS) script for automatically setting DNS records for clients when they obtain a DHCP lease
# MikroTik (RouterOS) script for automatically setting DNS records
# for clients when they obtain a DHCP lease.
#
# author SmartFinn <https://gist.github.com/SmartFinn>
:local dnsTTL "00:15:00";
:local token "$leaseServerName-$leaseActMAC";
# Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone")
# - truncate length to 63 chars
@egtra
egtra / ndiscap-netsh.cpp
Created April 17, 2016 12:09
"netsh trace start caputre=yes traceFile=D:\packet.etl"の再現
/*
Copyright © 2016 Egtra
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of