Ezekiel Templin ezkl

View keybase.md

Keybase proof

I hereby claim:

  • I am ezkl on github.
  • I am ezkl (https://keybase.io/ezkl) on keybase.
  • I have a public key whose fingerprint is 91BF 46AE 245B 6C2D BE1D 4941 5DD5 6A61 906E 14CC

To claim this, I am signing this object:

View basic.sql
1 2 3 4 5 6 7 8 9 10
/* How to calculate postgreSQL database size in disk ? */
 
SELECT pg_size_pretty(pg_database_size('thedbname'));
 
/* Calculate size of a table including or excluding the index */
 
SELECT pg_size_pretty(pg_total_relation_size('big_table'));
SELECT pg_size_pretty(pg_relation_size('big_table')); /* without index */
 
/* See indexes on a table with `\d tablename` */
View 0-readme.md

Patched ruby 1.9.3-p327 for 30% faster rails boot

Overview

This script installs a patched version of ruby 1.9.3-p327 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Many thanks to funny-falcon for the performance patches.

View heredoc.sh
1 2 3 4 5 6
~ $ cat <<EOF > testest
heredoc> $RANDOM
heredoc> EOF
~ $ cat testest
15816
~ $
View 0-readme.md

Patched ruby 1.9.3-p194 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

View chef_solo_bootstrap.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local
make
View server.rb
1 2 3 4 5
require 'sinatra'
 
post '/' do
puts params
end
View Gemfile.lock
1 2 3 4 5 6 7 8 9 10
PATH
remote: .
specs:
ronin-exploits (1.0.0.pre1)
data_paths (~> 0.3)
open_namespace (~> 0.3)
ronin (~> 1.4)
ronin-gen (~> 1.1)
ronin-support (~> 0.4)
ruby-yasm (~> 0.2)
View flashback_trojan_scan.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
browser_regex='Firefox|Chrome|Safari'
infected=0
 
shift
echo "============================="
echo "Scanning for Flashback Trojan"
echo "============================="
echo
shopt -s nullglob
View setup_heroku_for_193.sh
1 2 3
heroku labs:enable user_env_compile
heroku config:add RUBY_VERSION=ruby-1.9.3-p125
heroku config:add PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
Something went wrong with that request. Please try again.