Skip to content

Instantly share code, notes, and snippets.

View lukaszkorecki's full-sized avatar
🌴
🛹

Łukasz Korecki lukaszkorecki

🌴
🛹
View GitHub Profile
document.cookie.split('; ').
map(function(i) { return i.split('=') } ).
reduce(function(c,i) { c[i[0]] = i[1]; return c }, {} );
function! RspecInPane()
exec "Gcd"
let f = expand("%")
let cmd = "tmux split-window \"bundle exec rspec " . shellescape(f) . ";sh\""
silent exec "! ".cmd
endf
map <leader>r :silent call RspecInPane()<cr>
function! AllRspecInPane()
while true; do
echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 1500 -q 1
done
module ActionDispatch
class Response
def json_body
JSON.parse(body)
end
end
end
user system total real
0.130000 0.000000 0.130000 ( 0.136423)
0.160000 0.000000 0.160000 ( 0.165723)
0.220000 0.000000 0.220000 ( 0.233087)
root=$(pwd)
log() {
logger -s -t $(basename $0) -- "$*"
}
for path in $(find . -name .git -type d | grep -v vendor ) ; do
cd $path/..
log "---------- In $(pwd)"
git checkout master && git pull -r 2>&1 > /dev/null
#!/usr/bin/env bash
SIFS="$IFS"
IFS=$(echo -ne "\n\b")
loc="$1"
for f in $loc/*.wav ; do
if file $f | grep -q '24 bit' ; then
echo "$f is 24bit" >&2
echo $f | sed "s/ /\\\ /g"

Keybase proof

I hereby claim:

  • I am lukaszkorecki on github.
  • I am lukaszkorecki (https://keybase.io/lukaszkorecki) on keybase.
  • I have a public key whose fingerprint is 60A9 4464 28F3 B8BD AC42 1359 0B96 F3B0 9745 E464

To claim this, I am signing this object:

bighash = {}.tap do |h|
(1..40_000).each do |i|
h[i.to_s] = i
end
end
smallhash = { "1" => 2, "5" => 6, "3" => 4 }
source 'https://rubygems.org'
gem 'foreman'