start new:
tmux
start new with session name:
tmux new -s myname
| python3 -c 'import sys, yaml, json; y=yaml.safe_load(sys.stdin.read()); print(json.dumps(y))' |
| (defun pp-macroexpand () | |
| (interactive) | |
| (save-excursion | |
| (pp-macroexpand-expression (read (current-buffer))))) | |
| (dolist (map (list lisp-interaction-mode-map emacs-lisp-mode-map)) | |
| (define-key map (kbd "C-c RET") 'pp-macroexpand)) | |
| (when (featurep 'popwin) | |
| (push '("*Pp Macroexpand Output*" :noselect t) popwin:special-display-config)) |
| 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 |
| @Before | |
| public void setup() { | |
| SecurityContextHolder.getContext().setAuthentication( | |
| new UsernamePasswordAuthenticationToken(username, password)); | |
| } |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/usr/bin/ruby | |
| # Convert a Markdown README to HTML with Github Flavored Markdown | |
| # Github and Pygments styles are included in the output | |
| # | |
| # Requirements: json gem (`gem install json`) | |
| # | |
| # Input: STDIN or filename | |
| # Output: STDOUT | |
| # Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file | |
| # cat README.md | flavor > README.html |
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| #!/bin/bash | |
| #set -x | |
| doInstall() { | |
| ECLIPSELOCATION=`ls $LOCATION/plugins/org.eclipse.equinox.launcher_*` | |
| $JAVA_HOME/bin/java -jar $ECLIPSELOCATION -nosplash -application org.eclipse.equinox.p2.director \ | |
| -metadataRepository "$2" \ | |
| -artifactRepository "$2" \ | |
| -destination $LOCATION \ | |
| -installIU "$1" |