Skip to content

Instantly share code, notes, and snippets.

View DavidLiedle's full-sized avatar
🐒
(code)

David Liedle DavidLiedle

🐒
(code)
View GitHub Profile
+ verbose=on
+ shift
+ [[ -n '' ]]
+ [[ on != on ]]
+ get_simple -vv
+ [[ -n -vv ]]
++ type -t get_-vv
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n '' ]]
@DavidLiedle
DavidLiedle / config.config
Created November 4, 2020 19:41
~/.config/neofetch/
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
@DavidLiedle
DavidLiedle / Colorado Antibody Test Window Watcher.scpt
Last active December 17, 2020 19:05 — forked from s4y/Whole Foods delivery watcher.scpt
AppleScript which reloads a COVID-19 Antibody Test appointment opportunity page (Colorado, USA) and displays a notification when time slots are available or it otherwise needs attention (e.g. because an item has become unavailable)
(* Watch this page for change: https://www.nationaljewish.org/patients-visitors/patient-info/important-updates/coronavirus-information-and-resources/patient-care/covid-19-testing-antibody-diagnostic *)
tell application "Safari"
repeat
repeat with theWindow in every window
repeat with theTab in every tab of theWindow
if name of theTab contains "COVID-19 Antibody" then
set appointmentWindow to theWindow
set checkoutTab to theTab
end if
end repeat
@DavidLiedle
DavidLiedle / face
Created February 25, 2020 21:28
A bash script to break a bad habit
#!/usr/bin/env bash
################################################################################
# Fix the habit of typing "face" and hitting enter in the browser (using its
# autocomplete feature, of course) to go to Facebook.com every five seconds.
#
echo "Facebook isn't going anywhere, but you are! Get back to work."
@DavidLiedle
DavidLiedle / oxygen.pub
Created December 2, 2019 02:24
David's public SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDV8MA6G08Ybuy2yPkci97Wa9ZXf7CnBkXGv+VnbCYYheGLTX0MlMdLUBu7++Aos0mh+xvR3AHzyt3puVEaC7XchnFj33Fw/M5zJjtqqQk5w9ljOHEGJI9+ygmbLD/Fo7XN+WBuB6YecGyNwc5vXYzpl6GM3orDL4YPnibxDQi60OdjStJBuHkpGLEZaRkIk+FRvP4QZUw6fww1U7TDN2yfLRg0MW4Gkkta7tqAxfKDZMUoZVc9qzAs4v136Ge6n/028bk9AIq4821cCBBqbkQvF2fA6cXO/tShtteuEmzlJoUFUvHl0GeEDrfpv37ro0wL8EodQzNG7IQw9/mFSLwAdu18wNj9zaYdNKbsXfwFA/doqxLt/3ZFaxNpHv2b3+ccWnoDcawtv1ftWsCgIU9emoV3DcFOXfA2eMNXD4SAINgQQ7FsyhdZ0/bhKYk5HGYZ768aq9o41hT00mtivuvtmQ6Z3yyAqBvWirwMuhiJB0SejlI92KZyc132JiiaMYTK4fQ1KOAD0C3626OaXd3P32KsYVbqfHLapkCtERlEDQ/dkfCtMcYw1eoMnAQbvUIemC9QY8uIQ7Pzo9KJK3w70RKB2uzeo+QvXfx5HyGF1eZ52TfyEbouIBoSvaw3VCne2oWAa0bmu/oVD46y2thBCGwyFSNP47AkjMVlb1YW6Q== oxygen
@DavidLiedle
DavidLiedle / win.sh
Created July 21, 2019 14:40
A shell script to run inside of WSL on Windows, to open code-insiders VSCode within WSL
#!/usr/bin/env bash
################################################################################
# win: open in windows from WSL
#
# usage: win ~/directory/name/here
#
mkdir -p ~/.logs
if [ -d $1 ]; then
cd $1
code-insiders $1 &> ~/.logs/win.log &
@DavidLiedle
DavidLiedle / solomon-20190705.text
Created July 5, 2019 22:26
Solomon Liedle's first solo Emacs session
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with C-x C-f and enter text in its buffer.
___ _ ___ _____ __ __ _____ _ _ __ _____ ___ _ __
| \ /_\ | \| \ \ / / \ \ / /_ _| | | | \ \ / / _ \| _ \ |/ /
| |) / _ \| |) | |) \ V / \ \/\/ / | || |__| |__ \ \/\/ / (_) | / ' <
|___/_/ \_\___/|___/ |_| \_/\_/ |___|____|____| \_/\_/ \___/|_|_\_|\_\
__ _____ ___ _ __ __ _____ ___ _ __
\ \ / / _ \| _ \ |/ / \ \ / / _ \| _ \ |/ /
\ \/\/ / (_) | / ' < \ \/\/ / (_) | / ' <
@DavidLiedle
DavidLiedle / markdown-from-upload.html
Last active November 29, 2018 14:42
Upload an image to filestack, get properly formatted markdown to link to the image
<html>
<head>
<title>Markdown From Filestack Uploads Example</title>
<script src="https://static.filestackapi.com/filestack-js/1.x.x/filestack.min.js"
data-cfasync="false"></script>
<script>
var apikey = 'MYKEYGOESHERE';
var docResponse;
window.addEventListener('DOMContentLoaded', function(){
var client = filestack.init(apikey);
@DavidLiedle
DavidLiedle / brewski.sh
Created September 6, 2018 14:16
Run all regular brew commands (update, upgrade, cleanup, doctor) together
#!/usr/bin/env bash
################################################################################
# Run frequent commands with brew
# Send complaints to https://twitter.com/davidcanhelp :D
brew update
brew upgrade
brew cleanup
brew doctor
@DavidLiedle
DavidLiedle / playground.dart
Last active July 11, 2018 00:52
Flutter NYC Meetup July 2018 - What's new in Dart 2.0
void main(){
Animal bob = new Kitten();
bob.grow();
bob.birthday();
}
class Animal {
int age;
Animal(){
age = 0;