This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You can generate keys with: | |
// key=$(openssl genrsa 128);echo "$key" | sed '{:q;N;s/\n/\\n/g;t q}';echo "$key" | openssl rsa -pubout | sed '{:q;N;s/\n/\\n/g;t q}' 2>/dev/null | |
/** | |
* Signs text with your private key, using PCBC. | |
* @author Tyler Menezes [email protected] | |
*/ | |
function Sign($toEncrypt){ | |
$priv = openssl_pkey_get_private ("-----BEGIN RSA PRIVATE KEY-----\nMGQCAQACEQDEb/R70eBav9AmgH1GBvgZAgMBAAECEQCbMBNGyszjA2eKArxL3shN\nAgkA/O8v+KfoBc8CCQDG0XeJzSmFlwIJAIejmT0mheW/AghMu9+VEdfqtQIJAI16\nVWlE29KX\n-----END RSA PRIVATE KEY-----"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var el=document.createElement('div'), | |
b=document.getElementsByTagName('body')[0], | |
otherlib=false, | |
msg=''; | |
el.style.position='fixed'; | |
el.style.height='32px'; | |
el.style.width='220px'; | |
el.style.marginLeft='-110px'; | |
el.style.top='0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
if len(sys.argv) < 2: | |
print "Usage: split.py [filename]" | |
quit() | |
with open(sys.argv[1], 'r') as f: | |
data = f.readlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
char *ptr; | |
if(argc < 3) { | |
printf("Usage: %s <envvar> <program>\n", argv[0]); | |
exit(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What are all the numbers less than 4. There are a lot of them. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//IRMusicPlayer | |
//Jennifer Schumaker | |
//22.Feb.12 | |
// PIND is an Arduino command that gets a byte containing the input | |
// status of bytes 0 through 7. In our case we want the bit | |
// corresponding to pin 2. | |
// NOTE: If you are seeking input from ports 8 - 15 use PINDB. | |
// For analong pins 0 - 5 use PINC | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
$.fn.hasAttr = function(name) { | |
return this.attr(name) !== undefined; | |
}; | |
$("*").filter(function(e){ | |
return $(this).hasAttr("style") && $(this).attr("style").indexOf("none") != -1; | |
}).each(function(e,s){ | |
$(this).remove(); | |
}); | |
$("#listtable tr").each(function(e,s){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ________ ___________ _________ ________ ________ ____ __ ______ ____ ___ ____ ______ | |
// /_ __/ / / / _/ ___/ / _/ ___/ /_ __/ / / / ____/ / __ \/ / / / __ \ / __ \/ | / __ \/_ __/ | |
// / / / /_/ // / \__ \ / / \__ \ / / / /_/ / __/ / /_/ / /_/ / /_/ / / /_/ / /| | / /_/ / / / | |
// / / / __ // / ___/ / _/ / ___/ / / / / __ / /___ / ____/ __ / ____/ / ____/ ___ |/ _, _/ / / | |
// /_/ /_/ /_/___//____/ /___//____/ /_/ /_/ /_/_____/ /_/ /_/ /_/_/ /_/ /_/ |_/_/ |_| /_/ | |
// This is what gets executed whenever the page is submitted. | |
// Standard stuff: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window) { | |
var delegates = {}; | |
var getId = function(milli) { | |
return (new Date()) + "+" + milli + "-" + Math.floor(Math.random()); | |
} | |
var returningLater = function(id, noGc) { | |
return function(){ | |
delegates[id](); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "remove Mod1 = Alt_L | |
remove Mod1 = Alt_R | |
remove Control = Control_L | |
remove Control = Control_R | |
keycode 135 = Super_R | |
keysym Control_L = Alt_L | |
keysym Alt_L = Control_L |
OlderNewer