This file contains hidden or 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
Copy this table in 'Secure Notes' and obtain perfect result on 1Password | |
------------------------------------------- | |
| | A | B | C | D | E | F | G | H | I | J | | |
------------------------------------------- | |
| 1 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | | |
------------------------------------------- | |
| 2 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | | |
------------------------------------------- | |
| 3 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | |
This file contains hidden or 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
get '/blog*' do | |
begin | |
path = params[:splat][0] | |
source_url = URI.parse('http://asdf.tumblr.com' + path.gsub(/ /, '+')) | |
source_content_type = '' | |
source_body = open(source_url) do |f| | |
source_content_type = f.content_type | |
f.read | |
end |
This file contains hidden or 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
# The upstream server doesn't need a prefix! no need for wss:// or http:// because nginx will upgrade to http1.1 in the config below | |
upstream yeomanserver { | |
server localhost:3000; | |
} | |
server { | |
listen 443; | |
server_name legionofevil.org; | |
root html; |
This file contains hidden or 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
// UTF8 Module | |
// | |
// Cleaner and modularized utf-8 encoding and decoding library for javascript. | |
// | |
// copyright: MIT | |
// author: Nijiko Yonskai, @nijikokun, [email protected] | |
(function (name, definition, context, dependencies) { | |
if (typeof context['module'] !== 'undefined' && context['module']['exports']) { if (dependencies && context['require']) { for (var i = 0; i < dependencies.length; i++) context[dependencies[i]] = context['require'](dependencies[i]); } context['module']['exports'] = definition.apply(context); } | |
else if (typeof context['define'] !== 'undefined' && context['define'] === 'function' && context['define']['amd']) { define(name, (dependencies || []), definition); } | |
else { context[name] = definition.apply(context); } |
This file contains hidden or 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 sys = require('sys') var exec = require('child_process').exec; function puts(error, stdout, stderr) { sys.puts(stdout) } function run () { console.log("Le quita a los ricos"); exec("mongodump --host 127.0.0.1 --port 27017 --db namedb --username username --password strongpass --out /mongodump", puts); setTimeout(function () { postinmongo(); }, 10000); } function postinmongo() { console.log("Le da a los pobres"); exec("mongorestore mongodump"); setTimeout(function () { run(); }, 3000); } run(); |
This file contains hidden or 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
onbeforeunload = function(e){ | |
if(confirm('Are you nuts? Do you really want to leave me?')){ | |
return 'OK, Good Bye then'; | |
} | |
else { | |
e = e || event; | |
if(e.preventDefault){e.preventDefault();} | |
e.returnValue = false; | |
return 'I said, "Are you nuts? Do you really want to leave me?"'; | |
} |
This file contains hidden or 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
io.configure('production', function(){ | |
console.log("Running Socket.io in production mode"); | |
io.enable('browser client minification'); // send minified client | |
io.enable('browser client etag'); // apply etag caching logic based on version number | |
io.enable('browser client gzip'); // gzip the file | |
io.set('log level', 1); // reduce logging | |
io.set('transports', [ // enable all transports (optional if you want flashsocket) | |
'websocket' | |
, 'flashsocket' | |
, 'htmlfile' |
This file contains hidden or 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 yourTag=document.createElement('meta'); | |
window.getSelection ? yourTag.name='name' : yourTag.Name='name' | |
yourTag.content='content'; | |
document.getElementsByTagName('head')[0].appendChild(yourTag); |
This file contains hidden or 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
ssh -D 8080 -f -C -q -N [email protected] |
This file contains hidden or 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
heroku keys:add ~/.ssh/id_rsa.pub |