(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # Modify this file accordingly for your specific requirement. | |
| # http://www.thegeekstuff.com | |
| # 1. Delete all existing rules | |
| iptables -F | |
| # 2. Set default chain policies | |
| iptables -P INPUT DROP | |
| iptables -P FORWARD DROP | |
| iptables -P OUTPUT DROP |
| #!/bin/sh | |
| mongo localhost:27017/mongo run_command.js | |
| mongo localhost:27018/mongo run_command.js | |
| mongo localhost:27019/mongo run_command.js | |
| # if you don't need connection infomation etc., use --quiet option. | |
| # http://www.mongodb.org/display/DOCS/--quiet |
| curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" http://inserturl.here |
rsync (Everyone seems to like -z, but it is much slower for me)
| <Plugin "processes"> | |
| ProcessMatch "carbon-cache" "python.+carbon-cache" | |
| ProcessMatch "carbon-aggregator" "python.+carbon-aggregator" | |
| </Plugin> |
| #!/bin/sh | |
| # | |
| # Adam Sharp | |
| # Aug 21, 2013 | |
| # | |
| # Usage: Add it to your PATH and `git remove-submodule path/to/submodule`. | |
| # | |
| # Does the inverse of `git submodule add`: | |
| # 1) `deinit` the submodule | |
| # 2) Remove the submodule from the index and working directory |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
To remove a submodule you need to:
| cron { 'Clean_verbose_older_than_4_weeks_28 days': | |
| command => '/usr/local/bin/clean_content.sh -d 28 -l verbose', | |
| minute => '0', | |
| hour => '5', | |
| } | |
| cron { 'Clean_debug_older_than_4_weeks_28_days': | |
| command => '/usr/local/bin/clean_content.sh -d 28 -l debug', | |
| minute => '10', | |
| hour => '5', | |
| } |