Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block blackgat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ccckmit / gist:b0a90a7bd9d3d3e5baa8
Last active Aug 29, 2015
javascript version of enigma machine (in world war II)
View gist:b0a90a7bd9d3d3e5baa8
// 原始程式來源: 網頁內的 javascript 程式碼
var c = console;
var plaintext = 'ABCDEF';
c.log('>> plaintext2 : '+plaintext);
var ciphertext = Encrypt(plaintext, 'AAA', 'AAA', '123', 'POMLIUKJNHYTGBVFREDC');
c.log('>> ciphertext : '+ciphertext);
var plaintext2 = Encrypt(ciphertext, 'AAA', 'AAA', '123', 'POMLIUKJNHYTGBVFREDC');
c.log('>> plaintext2 : '+plaintext);
foozmeat /
Last active Jan 16, 2020
A shell script to build openssl for iOS and Mac. It currently builds: Mac -> i386 & x86_64 // iOS -> armv7, arm64 // iOS Simulator -> i386 & x86_64.
# This script builds the iOS and Mac openSSL libraries
# Download openssl and place the tarball next to this script
# Credits:
zmilojko / UDPer.cs
Last active Oct 13, 2019
C# sends and receives UDP broadcasts
View UDPer.cs
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
class UDPer
return1 / trim_enabler.txt
Last active Nov 28, 2019
TRIM Enabler for OS X Yosemite 10.10.3
View trim_enabler.txt
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs
# just run "sudo trimforce enable" to activate the trim support from now on!
# Original version by Grant Parnell is offline (
# Update July 2014: no longer offline, see
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
# Alternative to
You can’t perform that action at this time.