This file contains 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
Windows Registry Editor Version 5.00 | |
; The hex data is in five groups of four bytes: | |
; 00,00,00,00,\ header version (always 00000000) | |
; 00,00,00,00,\ header flags (always 00000000) | |
; 02,00,00,00,\ # of entries (2 in this case) plus a NULL terminator line. | |
; Entries are in 2-byte pairs: Key code to send & keyboard key to send it. | |
; Each entry is in LSB, MSB order. | |
; 1d,00,3a,00,\ Send LEFT CTRL (0x001d) code when user presses the CAPS LOCK key (0x003a) | |
; 3a,00,1d,00,\ Send CAPS LOCK (0x3A) code when user presses the LEFT CTRL key (0x001d) |
This file contains 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
docker run -d -e POSTGRES_DB=mydb -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypassword -p 5432:5432 --name mydb postgres:9.6.3 |
This file contains 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
unbind C-b | |
set -g prefix C-q | |
bind C-q send-prefix |
This file contains 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
#!/bin/bash | |
function element { r=$1; c=$2; head -n $r | tail -n 1 | awk "{ print \$$c }"; } | |
# Example usage: | |
# | |
# $ echo -e "1 2 3\n4 5 6\n7 8 9" | element 2 2 | |
# 5 | |
# $ echo -e "1 2 3\n4 5 6\n7 8 9" | element 2 3 | |
# 6 |
This file contains 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
alias timesup='osascript -e "tell application (path to frontmost application as text) to display dialog \"Time is up!\" buttons {\"OK\"} with icon stop"' | |
alias pomodoro-regular="i=0; while [ \$i -lt 25 ]; do sleep 60; (( i = i + 1 )); echo \$i minutes elapsed; done; timesup" | |
alias pomodoro-break="i=0; while [ \$i -lt 5 ]; do sleep 60; (( i = i + 1 )); echo \$i minutes elapsed; done; timesup" |