This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file describes the standard way to build Docker, using docker | |
| # | |
| # Usage: | |
| # | |
| # # Assemble the full dev environment. This is slow the first time. | |
| # docker build -t docker . | |
| # | |
| # # Mount your source in an interactive container for quick testing: | |
| # docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| Class Keygen { | |
| private $serial; | |
| private function randChar($length = 8) { | |
| $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| $string = ''; | |
| for ($p = 0; $p < $length; $p++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use lsusb to find the details of the serial adapter to create a udev rule | |
| ~$ lsusb | grep Serial | |
| Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | |
| # based on the output from lsusb add a rule to /etc/udev/rules.d/local.rules | |
| ~$ cat /etc/udev/rules.d/local.rules | |
| #Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |