(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <!-- | |
| OS X launchd plist: Copy to ~/Library/LaunchAgents | |
| and launch with launchctl load ~/Library/LaunchAgents/org.asdflabs.screenbla.plist. | |
| Make sure the path to the shell script is correct. | |
| --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # install | |
| $ brew install cmake | |
| $ brew install libssh | |
| $ brew install hydra | |
| $ brew install nmap | |
| $ ping 192.168.1.255 | |
| $ nmap -A 192.168.0.8 | |
| $ hydra -l User -P '/path/to/wordlist.txt' 192.168.0.8 ssh |
| # 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 |
| ################################################################# | |
| # | |
| # File: lib/api.rb | |
| # | |
| ################################################################# | |
| require 'user' # ActiveRecord model | |
| # Connect to the db | |
| ActiveRecord::Base.establish_connection(ENV['DATABASE_URL']) |
| require 'io/console' | |
| # Reads keypresses from the user including 2 and 3 escape character sequences. | |
| def read_char | |
| STDIN.echo = false | |
| STDIN.raw! | |
| input = STDIN.getc.chr | |
| if input == "\e" then | |
| input << STDIN.read_nonblock(3) rescue nil |