(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/bin/bash | |
# | |
# Public-Key Encryption and Decryption | |
# * http://www.openssl.org/ | |
# * http://barelyenough.org/blog/2008/04/fun-with-public-keys/ | |
# | |
# Mac OS X 10.6.4 | |
# OpenSSL 0.9.8l 5 Nov 2009 | |
# Generate keys |
#!/usr/bin/env python2 | |
"""A really simple IRC bot.""" | |
import sys | |
from twisted.internet import reactor, protocol | |
from twisted.words.protocols import irc | |
class Bot(irc.IRCClient): | |
def _get_nickname(self): |
#!/bin/bash | |
# from | |
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
convert favicon-256.png -resize 16x16 favicon-16.png | |
convert favicon-256.png -resize 32x32 favicon-32.png | |
convert favicon-256.png -resize 64x64 favicon-64.png | |
convert favicon-256.png -resize 128x128 favicon-128.png |
var net = require('net'), | |
util = require('util'), | |
EventEmitter = require('events').EventEmitter; | |
var SOCKSClient = module.exports = function() { | |
var args = normalizeConnectArgs(arguments); | |
this.state = 'connecting'; | |
this.socket = net.connect(args[0].port, args[0].host, onConnect.bind(this)); | |
this.socket.on('data', onData.bind(this)); | |
this.socket.on('end', onEnd.bind(this)); |
#!/usr/bin/env python | |
""" | |
MS12-020/CVE-2012-0002 Vulnerability Tester | |
based on sleepya's version @ http://pastebin.com/Ks2PhKb4 | |
""" | |
import socket | |
import struct | |
import sys |
// HTTP forward proxy server that can also proxy HTTPS requests | |
// using the CONNECT method | |
// requires https://github.com/nodejitsu/node-http-proxy | |
var httpProxy = require('http-proxy'), | |
url = require('url'), | |
net = require('net'), | |
http = require('http'); |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
// This script sets OSName variable as follows: | |
// "Windows" for all versions of Windows | |
// "MacOS" for all versions of Macintosh OS | |
// "Linux" for all versions of Linux | |
// "UNIX" for all other UNIX flavors | |
// "Unknown OS" indicates failure to detect the OS | |
var OSName="Unknown OS"; | |
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; | |
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; |