Skip to content

Instantly share code, notes, and snippets.

View geoffeg's full-sized avatar
🏠
Working from home

Geoffrey Gallaway geoffeg

🏠
Working from home
View GitHub Profile
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[-90.15458106994629,38.57038097962376]}},{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[-90.50700187683105,38.72784024988615]}},{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[-90.428466796875,38.92870117926206]}}]}
#!/bin/sh
function get_stream_url {
local intermediate_url=`curl -s $1 | awk -F '=' '/File1/ { print \$2 }'`
local stream_url=`curl -L -I -o /dev/null -s -w %{url_effective} $intermediate_url`
echo "$stream_url"
}
read -p "Left channel URL [KSTL App]: " left;
read -p "Right channel URL [KSTL Tower]: " right;
left_stream=$(get_stream_url ${left:-http://www.liveatc.net/play/kstl_app.pls});
4−3−23. Use of Aircraft Lights
a. Aircraft position lights are required to be lighted on aircraft operated on the surface and in flight from sunset to sunrise. In addition, aircraft equipped with an anti−collision light system are required to operate that light system during all types of operations (day and night). However, during any adverse meteorological conditions, the pilot−in−command may determine that the anti−collision lights should be turned off when their light output would constitute a hazard to safety (14 CFR Section 91.209). Supplementary strobe lights should be turned off on the ground when they adversely affect ground personnel or other pilots, and in flight when there are adverse reflection from clouds.
b. An aircraft anti−collision light system can use one or more rotating beacons and/or strobe lights, be colored either red or white, and have different (higher than minimum) intensities when compared to other aircraft. Many aircraft have both a rotating beacon and a strobe light system.
c. T

Keybase proof

I hereby claim:

  • I am geoffeg on github.
  • I am geoffeg (https://keybase.io/geoffeg) on keybase.
  • I have a public key ASDt4wfM96aNVo5MdNdwDG7KoyjTslVX1QaGwNRC9glb_wo

To claim this, I am signing this object:

@geoffeg
geoffeg / LICENSE
Last active August 3, 2018 00:34 — forked from dfm/LICENSE
XKCD-style plots in d3
Copyright (c) 2012–2013 Daniel Foreman-Mackey
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
#!/bin/bash
password=`~/bin/opfzf`
iTermSessionId=$1
osascript <<END
tell application "iTerm2"
repeat with aWindow in windows
repeat with aTab in tabs of aWindow
repeat with aSession in sessions of aTab
set theSessionId to unique id of aSession
if theSessionId is "$iTermSessionId" then
#!/bin/bash
osascript <<'END' 2>&1 >/dev/null
tell application "iTerm2"
set windowId to (unique id of current session of current window)
create window with profile "opterm" command "bash -l /Users/geoff/bin/opterm " & windowId
end tell
END
#!/usr/bin/env bash
declare -r TMP_TOKEN_FILE="$HOME/.op_tmux_token_tmp"
declare -r OPT_SUBDOMAIN="my"
declare -r OPT_VAULT="personal"
op_login() {
op signin "$OPT_SUBDOMAIN" --output=raw > "$TMP_TOKEN_FILE"
clear
}
#!/bin/bash
BLOG_ROOT=~/geoffeg.org/htdocs/blog
cp templates/feed-header.tmpl $BLOG_ROOT/feed.xml
cp templates/list-header.tmpl $BLOG_ROOT/index.html
find posts -not -path '*/\.*' -type f -iname '*.md' -print0 | sort |
while IFS= read -r -d '' POST; do
echo $POST
POST_TITLE=$(head -n1 "$POST" | cut -c3-)
#!/bin/sh
set -e
set -x
PRIVATE_INTERFACE=vpn
# Add the separate network namespace
ip netns add ${PRIVATE_INTERFACE}
# Add the new wg0 interface in the default namespace