Skip to content

Instantly share code, notes, and snippets.

View placek's full-sized avatar

Paweł Placzyński placek

  • BinarApps
  • Łódź Poland
View GitHub Profile
@placek
placek / ruby_ctags.rb
Last active September 17, 2015 08:50
ctags generator for ruby project using bundle
#!/usr/bin/env ruby
require 'bundler'
class CTagsService
def call
trap_int_signal
system(command)
system(['mv ', tmpfile, ' .git/tags'].join)
end
@placek
placek / example.sh
Created July 29, 2013 11:09
Shell useful hacks
# searching through files content in current directory, not in .git subdir
find . -type f -not -path ".git" -exec grep --color -Hn "hello" {} \;
# VoIP
# reciever
nc -l -p 12345 | aplay
# sender
aplay | nc 192.168.0.2 12345
# view the file while it is still updating