I hereby claim:
- I am aredondo on github.
- I am unsleepable (https://keybase.io/unsleepable) on keybase.
- I have a public key ASDv6SW_ILSlYdw-WaMeZrFtoKO4jUEFWJfgNPgTkGDDIwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/ | |
$ git symbolic-ref HEAD refs/heads/newbranch |
gs -sDEVICE=bmpgray -dNOPAUSE -dBATCH -r300x300 \ | |
-sOutputFile=./pdf_image.bmp ./input.pdf | |
convert ./pdf_image.bmp -threshold 40% -compress zip ./bw_out.pdf |
module ActiveRecord | |
module ConnectionAdapters | |
class AbstractAdapter | |
def self.inherited(subclass) | |
if subclass.name =~ /AbstractMysqlAdapter$/ | |
subclass.singleton_class.send :define_method, :method_added, lambda { |method_name| | |
if method_name == :create_table and not subclass.method_defined?(:prev_create_table) | |
subclass.send :alias_method, :prev_create_table, :create_table | |
subclass.class_eval do | |
def create_table(table_name, options = {}) |
# Works with version 1.0.5 | |
sudo rm -vfr /Applications/Audio\ Essentials.app | |
launchctl -v unload /Library/LaunchAgents/com.srs.EssentialsAgent.plist | |
launchctl -v remove com.srs.EssentialsAgent | |
sudo rm -v /Library/LaunchAgents/com.srs.EssentialsAgent.plist | |
sudo rm -vfr /Library/PrivilegedHelperTools/EssentialsAgent.app |
sudo -s | |
ifconfig en1 x.x.x.1/24 alias | |
sysctl -w net.inet.ip.forwarding=1 | |
natd -interface en1 | |
ipfw -f flush | |
ipfw add divert natd all from any to any via en1 | |
ipfw add pass all from any to any |