Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@sgeto
sgeto / Howto convert a PFX to a seperate .key & .crt file
Created January 13, 2018 04:12 — forked from TemporaryJam/Howto convert a PFX to a seperate .key & .crt file
How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
@sgeto
sgeto / enum_adapters.c
Created January 10, 2018 18:41 — forked from gvanem/enum_adapters.c
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 directory of "<Win10Pcap-root>/Packet_dll"
* and do:
*
* cl -nologo -W3 -Zi -Ot -DWIN32 -DWIN32COM_CPP -MTd -GF -GS -EHsc -RTCs -RTCu -RTCc
* -Fe./enum_adapters.exe enum_adapters.c -link
@sgeto
sgeto / make-oui.py
Created December 10, 2017 03:33 — forked from gvanem/make-oui.py
A script for tcpdump; generates a oui-generated.c from http://standards-oui.ieee.org/oui.txt and http://www.iana.org/assignments/enterprise-numbers
#!/usr/bin/env python
#
# Generates a 'oui-generated.c' for tcpdump.
#
from __future__ import print_function
import sys, os, time, re, getopt, codecs
OUI_URL = "http://standards-oui.ieee.org/oui.txt"
ENT_URL = "http://www.iana.org/assignments/enterprise-numbers"
@sgeto
sgeto / Common.Windows
Created December 9, 2017 23:27 — forked from gvanem/Makefile.Windows
GNU-make files for Windump
#
# This is Common.Windows.
#
# Include this from Makefile.MingW or Makefile.MSVC to generate
# a *common* config.h file for both MingW and MSVC.
# It also generates a version_*.c file.
#
# By G. Vanem <[email protected]> 2003 - 2015.
#
@sgeto
sgeto / win32.mak
Created November 19, 2017 23:28 — forked from ynkdir/win32.mak
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
https://www.crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD_on_Windows#Compiling_The_SWORD_Project_using_MS_Visual_Studio_2013
https://github.com/pbatard/libwdi/wiki/Signed-Driver-Walkthrough
http://www.windrvr.com/2015/05/11/wdk-installation-tips/
https://developer-content.emc.com/developer/devcon2004/downloads/PS_WDK_Developer_Tips_and_Tricks_Bluefish.pdf
https://msdn.microsoft.com/en-us/library/kezkeayy.aspx
https://msdn.microsoft.com/en-us/library/aa236630(v=vs.60).aspx
https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
https://msdn.microsoft.com/en-us/library/6y6t9esh.aspx
@sgeto
sgeto / ..git-pr.md
Created October 28, 2017 23:46 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@sgeto
sgeto / notes
Last active October 28, 2017 20:48
https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/misc/alarm.c
https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-headers/crt/_mingw.h.in
more
https://openmodelica.org/svn/OpenModelica/trunk/SimulationRuntime/c/util/omc_msvc.h
see whole pack
https://svn.apache.org/repos/asf/stdcxx/branches/autotools/tests/src/alarm.cpp
nice one
https://github.com/Matroska-Org/dvdmenuxtractor/blob/master/dmx/libdvdread/msvc/msvc/contrib/timer/timer.c
@sgeto
sgeto / symlink.sh
Created August 24, 2017 19:14 — forked from pocke/symlink.sh
add symlink for busybox on Android(Nexus7)
@sgeto
sgeto / gist:1f96c151daf94a30de1b7baa242fc6a6
Created May 18, 2017 23:05 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: