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 -e | |
# Encrypt: ./crypto.sh github_username <message.txt | |
# Decrypt: ./crypto.sh <encrypted.txt | |
if [[ -n "$1" ]]; then | |
curl -sf "https://github.com/$1.keys" >/tmp/pubkey.pub | |
ssh-keygen -f /tmp/pubkey.pub -e -m PKCS8 >/tmp/pubkey.pem.pub | |
openssl rsautl -encrypt -pubin -inkey /tmp/pubkey.pem.pub | openssl base64 -e | |
rm /tmp/pubkey.pub /tmp/pubkey.pem.pub | |
else |
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
/***************************************************************** | |
1. INITIAL SETTINGS | |
*****************************************************************/ | |
div.postsignature{ | |
max-height: 130px; | |
} | |
p.modlist { | |
display: none; | |
} |
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
/***************************************************************** | |
1. INITIAL SETTINGS | |
*****************************************************************/ | |
div.postsignature{ | |
max-height: 130px; | |
} | |
p.modlist { | |
display: none; | |
} |
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
// This is a placeholder in order to generate the gist URL. |
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
/* | |
TBG Blocks Plugin | |
Author: GeonoTRON2000 | |
Version: 1.0 | |
This versions is for being imported across domains. | |
*/ | |
TBGBlocks = { | |
parse: function(settings) { |
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
var me = document.getElementById("brdwelcome").getElementsByTagName("strong")[0].innerHTML; | |
var j; | |
var posts = document.getElementsByClassName("postmsg"); | |
for (j = 0; j < posts.length; j++) { | |
var post = posts[j]; | |
var thishtml = post.innerHTML; | |
var buttons = []; | |
var i; | |
for (i = 0; i < thishtml.split("[buynow]").length-1; i++) { | |
buttons[i] = thishtml.split("[buynow]")[i+1].split("[/buynow]")[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
// Usage: [flash=width,height]swf_url[/flash] | |
var body = document.getElementsByTagName("body")[0]; | |
body.innerHTML = body.innerHTML.replace(/\[flash=([0-9]+),([0-9]+)\]((mailto\:|(news|(ht|f)tp(s?))\:\/\/){1}\S+)\[\/flash\]/gi, '<object type="application/x-shockwave-flash" data="$3" width="$1" height="$2"><embed type="application/x-shockwave-flash" width="$1" height="$2" src="$3" /></object>'); |
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
// Usage: [scratch]projectID[/scratch] | |
var posts = document.getElementsByClassName("postmsg"); | |
var pattern = /\[scratch\]([0-9]+)\[\/scratch\]/gi; | |
for (var i = 0; i < posts.length; i++) { | |
var post = posts[i]; | |
post.innerHTML = post.innerHTML.replace(pattern, "<iframe allowtransparency=\"true\" width=\"485\" height=\"402\" src=\"http://scratch.mit.edu/projects/embed/$1/\" frameborder=\"0\" allowfullscreen></iframe>"); | |
} |
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
// Usage: [scratch=flash|java]author/projectID[/scratch] | |
var j; | |
var posts = document.getElementsByClassName("postmsg"); | |
for (j = 0; j < posts.length; j++) { | |
var post = posts[j]; | |
if (post.parentElement.parentElement.parentElement.parentElement.className == "blockpost rowodd firstpost") { | |
var thishtml = post.innerHTML; | |
var javas = []; | |
var i; |
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
var posts = document.getElementsByClassName("postmsg"); | |
// don't allow videos in signatures | |
var j; | |
for (j = 0; j < posts.length; j++) { | |
var thishtml = posts[i].innerHTML; | |
var i; | |
var vids = []; | |
for (i = 0; i < thishtml.split("[youtube]").length-1; i++) { |
NewerOlder