View keybase.md

Keybase proof

I hereby claim:

  • I am robert-claypool on github.
  • I am robert_claypool (https://keybase.io/robert_claypool) on keybase.
  • I have a public key whose fingerprint is 3606 A66E CA1C 3107 DFED 32DF 6AF2 BF57 992F 19ED

To claim this, I am signing this object:

View hmac-signed-timestamps.md
-- This requires https://www.postgresql.org/docs/8.3/static/pgcrypto.html
-- A `sync_stamp` is our current database time with HMAC sig.
-- The dot "." separates data and sig as with https://jwt.io/
-- Unlike JWT, the sig is not base64 encoded.
SELECT to_char(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISSUS')
    || '.'
    || hmac(to_char(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISSUS'), 'SUPER-DUPER-SECRET', 'md5')
    as sync_stamp;
-- 20180712215107309054.\xaf330cffa927bd496c153e09b559c71d
View settings.json
{
"workbench.colorTheme": "Default High Contrast",
"editor.fontSize": 14,
"editor.rulers": [79],
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
View building-vim-from-source.md

Assumes that Python2, Python3, and Lua are installed...

git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
            --enable-pythoninterp=yes \
            --enable-python3interp=yes \
            --enable-luainterp=yes
make
sudo make install
View toggle-hyper-v.md

I tried running these commands in PowerShell, but bcdedit commands would not work even as Admin.

bcdedit /copy {current} /d "No Hyper-V" 
# The entry was successfully copied to {01afc27f-do-not-use-5e2f3b11ce9a}. 

bcdedit /set {01afc27f-do-not-use-5e2f3b11ce9a} hypervisorlaunchtype off 
# The operation completed successfully.
View material-colors.csv
Color Group Palette Shade HEX
Red Primary 50 #ffebee
Red Primary 100 #ffcdd2
Red Primary 200 #ef9a9a
Red Primary 300 #e57373
Red Primary 400 #ef5350
Red Primary 500 #f44336
Red Primary 600 #e53935
Red Primary 700 #d32f2f
Red Primary 800 #c62828
View debian-fullscreen-in-hyperv.md
View arcpy-lines-to-endpoints.py
# This copies the start and end point vertices of lines into a new feature class.
# Use a polyline feature class as input.
# Use a points feature class as the destination output.
import arcpy
lines_fc = "c:/my_geodatabase.gdb/my_feature_dataset/my_lines"
points_fc = "c:/my_geodatabase.gdb/my_feature_dataset/my_points"
insert_cursor = arcpy.InsertCursor(points_fc)
for row in arcpy.da.SearchCursor(lines_fc, ["SHAPE@"]):
# No validation here: we assume it's a polyline, and we assume it has only one part
line = row[0]
View disable-caps-lock.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,3a,00,00,00,00,00
View tmux-notes.md

The default prefix binding is CTRL-B

Sessions

  • tmux new -s my_session
  • tmux detach (prefix + d)
  • tmux list-sessions
  • tmux attach -t my_session

Windows

  • tmux new-window (prefix + c)