Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.
The code is as follows:
c := boring("boring!") // function returning a channel
for i := 0; i < 5; i++ {
#!/bin/bash | |
# Requires fonts-symbola to generate glyphs: https://packages.ubuntu.com/disco/fonts-symbola | |
sed '0,/^__EMOJI__$/d;/^#/d' $0 \ | |
| dmenu -i -l 30 -fn 'Symbola:pixelsize=11' \ | |
| awk '{printf $1}' \ | |
| xclip -selection clipboard \ | |
&& notify-send "Copied!" "$(xclip -selection clipboard -out)" | |
exit 0 |
#!/bin/sh | |
set -e | |
get_mac_address() { | |
echo $(ifconfig en0 ether | grep ether | rev | cut -d' ' -f2 | rev) | |
} | |
get_ip_address() { | |
echo $(ifconfig en0 inet | grep inet | cut -d' ' -f2) |
Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.
The code is as follows:
c := boring("boring!") // function returning a channel
for i := 0; i < 5; i++ {
### Keybase proof | |
I hereby claim: | |
* I am jdh747 on github. | |
* I am joshhayes747 (https://keybase.io/joshhayes747) on keybase. | |
* I have a public key ASBQnBewiwqzDupMlLLdVxU7A2k_VsgiarMihOwFdwYoIwo | |
To claim this, I am signing this object: |
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether |
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |