For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| require 'net/ssh' | |
| require 'debugger' | |
| require 'net/ssh/transport/session' | |
| require 'net/ssh/authentication/methods/password' | |
| require 'net/ssh/authentication/session' | |
| options = { | |
| :user => 'root', | |
| :config => nil, | |
| :password => 'incorrect_password', |
| require 'formula' | |
| class Torrentcheck < Formula | |
| url 'http://sourceforge.net/projects/torrentcheck/files/torrentcheck-1.00.zip' | |
| homepage 'http://torrentcheck.sourceforge.net/' | |
| sha256 'a839f9ac9669d942f83af33db96ce9902d84f85592c99b568ef0f5232ff318c5' | |
| def install | |
| inreplace "torrentcheck.c", "#include <malloc.h>", "" | |
| system "#{ENV.cc} #{ENV.cflags} torrentcheck.c sha1.c -o torrentcheck" |
| #!/usr/bin/env ruby | |
| # 25s curl -o all.gz.curl http://download.openwall.net/pub/passwords/wordlists/all.gz | |
| # 11s for this script with 4 parallel requests | |
| require 'typhoeus' | |
| def pfetch(url, splits=4) | |
| response = Typhoeus.head(url) | |
| parallelize = false | |
| basename = File.basename(url) | |
| size = nil |
| #!/bin/sh | |
| #-------- | |
| # Command line thesaurus | |
| BROWSER="/usr/bin/env lynx -source" | |
| HTML2TEXT="/usr/bin/env html2text -style compact" | |
| WEBSITE="http://thesaurus.reference.com/search?q=$1" | |
| if test $1; then | |
| ${BROWSER} ${WEBSITE} | ${HTML2TEXT} | ${PAGER} |
| #!/bin/bash | |
| for arg; do [[ $arg = /* ]] || arg=$PWD/$arg; absargs+=("$arg"); done; | |
| /Applications/p4merge.app/Contents/Resources/launchp4merge "${absargs[@]}" | |
| require 'formula' | |
| class MacvimSplitBrowser < Formula | |
| homepage 'https://github.com/jwilkins/macvim/' | |
| url 'https://github.com/jwilkins/macvim/tarball/7b9e621f41ad0193336c18fe0ad239ab2c4cc15a' | |
| version '20130208' | |
| sha1 '8d966f95a335d34e79cf8d7d2f784718b7f1af41' | |
| head 'https://github.com/jwilkins/macvim.git' #, :branch => 'split-browser' |
| (echo "SET autocommit=0; SET unique_checks=0; SET foreign_key_checks=0;"; cat database_name.sql ; echo "COMMIT;" ) | mysql database_name | |
| # in /etc/my.cnf set: | |
| # innodb_flush_log_at_trx_commit = 2 | |
| # innodb_file_per_table | |
| # check size of databases: | |
| #SELECT table_schema AS "Data Base Name", | |
| #ROUND(SUM( data_length + index_length ) / 1024 / 1024, 2) AS "Data Base Size in MB" | |
| #FROM information_schema.TABLES GROUP BY table_schema ; |
| # hostnames | |
| ack -oa '((\w+\.){1,3}domainname(\.\w+){1,3})' | cut -f3 -d':' | sort| uniq | |
| # ipv4 addresses | |
| ack -oa '((\d+\.){3,3}\d+(:\d+)?)' | cut -f3-4 -d':' | sort| uniq |
| #!/usr/bin/env ruby | |
| # echo -n 'asdfasdf' |./hmacsha1 --key foobar' | |
| # 60ff950bea9d6dc7018de881909057e4bba14e26 | |
| require 'openssl' | |
| require 'optparse' | |
| key = 'horriblekeychangeme' | |
| algo = 'sha512' | |
| verbose = false |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt