emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-lUpdated: Just use qutebrowser (and disable javascript). The web is done for.
| #!/bin/bash | |
| # | |
| # Ashutosh Agrawal | |
| # http://blog.theprogrammer.in | |
| # | |
| # | |
| # This bash script simply fetches the log for that hour from Amazon RDS, | |
| # parse and genarlise it using mysql_slow_log_parser (https://gist.github.com/theprogrammerin/e3206a4ec7a7a4086ac2) | |
| # and then push the parsed log to elastic search using logstash (slowquery.conf)(https://gist.github.com/theprogrammerin/034a3efd849112d166ea) | |
| # For analysis on analytic tool like kibana. |
| import random | |
| def get_random_color(pastel_factor = 0.5): | |
| return [(x+pastel_factor)/(1.0+pastel_factor) for x in [random.uniform(0,1.0) for i in [1,2,3]]] | |
| def color_distance(c1,c2): | |
| return sum([abs(x[0]-x[1]) for x in zip(c1,c2)]) | |
| def generate_new_color(existing_colors,pastel_factor = 0.5): | |
| max_distance = None |
| alias gh="git fetch; git checkout master; git merge origin/master; git checkout develop; git merge origin/develop; git flow hotfix start \$(git tag|sort -V|grep '^[0-9]'|tail -n 1|awk 'BEGIN { FS = \".\" } ; { print \$1\".\"\$2\".\"\$3+1 }')" |
| This playbook has been removed as it is now very outdated. |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
In Tools | Options | Keyboard...
CTRL+W as a Global shortcut for Window.CloseDocumentWindowCTRL+W shortcut for Edit.SelectCurrentWordThe caveat to this is if you are used to using CTRL+W to select the current word. If you do, find another shortcut that works for that.