Skip to content

Instantly share code, notes, and snippets.

@jkischkel
jkischkel / keybase.md
Created May 26, 2015 19:44
keybase.md

Keybase proof

I hereby claim:

  • I am jkischkel on github.
  • I am jkischkel (https://keybase.io/jkischkel) on keybase.
  • I have a public key whose fingerprint is 9C0C BBA7 5DB1 E465 653E 67DA CD02 8DBB 88DD 5D95

To claim this, I am signing this object:

@jkischkel
jkischkel / blocks.rb
Created February 23, 2015 09:17
Ruby Blocks
# a simple block:
p [1,2,3].map { |i| i.to_s }
# a block with do/end
p [1,2,3].map do |i|
i.to_s
end
# even fancier, with a function reference
p [1,2,3].map(&:to_s)
@jkischkel
jkischkel / mysql_tricks.sh
Created February 12, 2015 14:34
mysqldump
# create uncompressed dump
mysqldump -u root --databases soundcloud_test > dump.sql
mysql -u root < dump.sql
# create compressed dump
mysqldump -u root --databases soundcloud_test | gzip > dump.sql.gz
gunzip < dump.sql.gz | mysql -u root
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="page">
<div class="container">
@jkischkel
jkischkel / sctop
Created October 9, 2012 10:28
sctop
#!/usr/bin/ruby
require 'rubygems'
require 'soundcloud'
puts <<'EOT'
_____/\\\\\\\\\\\__________/\\\\\\\\\____________/\\\\\\\\\\\\\\\_______/\\\\\_______/\\\\\\\\\\\\\___
___/\\\/////////\\\_____/\\\////////____________\///////\\\/////______/\\\///\\\____\/\\\/////////\\\_
__\//\\\______\///____/\\\/___________________________\/\\\_________/\\\/__\///\\\__\/\\\_______\/\\\_
@jkischkel
jkischkel / yourkit_setup.sh
Created September 20, 2012 08:45
setup yourkit ec2
#!/bin/sh
export pkg="yjp-11.0.8"
export target_dir="/usr/local/sbin"
cd /root
wget http://www.yourkit.com/download/$pkg-linux.tar.bz2
tar xfj $pkg-linux.tar.bz2
#!/bin/sh
# sh < <(curl -L https://raw.github.com/gist/3359826/9a6b909bf2d7313ecc4eae2194407434bb75b033/setup.sh)
# setup siege
apt-get install siege
# create urls file
export URLS_FILE="/root/siege_urls.txt"