Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
@dnordstrom
dnordstrom / zombies.md
Last active October 4, 2022 23:46 — forked from defunkt/zombies.md
—All You Zombies— by Robert A. Heinlein

All You Zombies

2217 Time Zone V (EST) 7 Nov. 1970--NTC-- "Pop's Place": I was polishing a brandy snifter when the Unmarried Mother came in. I noted the time---10:17 P. M. zone five, or eastern time, November 7th, 1970. Temporal agents always notice time and date; we must.

The Unmarried Mother was a man twenty--five years old, no taller than I am, childish features and a touchy temper. I didn't like his looks---I never had---but he was a lad I was here to recruit, he was my boy. I gave him my best barkeep's smile.

Maybe I'm too critical. He wasn't swish; his nickname came from what he always said when some nosy type asked him his line: "I'm an unmarried mother." If he felt less than murderous he would add: "at four cents a word. I write confession stories."

If he felt nasty, he would wait for somebody to make something of it. He had a lethal style of infighting, like a female cop---reason I wanted him. Not the only one.

@dnordstrom
dnordstrom / kill
Created July 23, 2022 01:50 — forked from Vermaak5/kill
killwindow
#!/bin/bash
# add to sway config:
# bindsym Mod1+q exec ~/kill.sh
# this script kills the window UNLESS the name matches. If the name matches the SIGTERM signal is send to the target process
# in case of wayland, the attribute 'app_id' is used while X11 windows use 'class'
current_window=$(swaymsg -t get_tree | grep -A 45 '"focused": true' | egrep 'app_id|class' | cut -d \" -f 4 | grep .)
@dnordstrom
dnordstrom / handline.php
Created March 4, 2021 21:48
WP Apache Handline
<?php
/*
Plugin Name: WP Apache Handline
Plugin URI: http://wordpress.org/#
Description: Official WordPress plugin
Author: WordPress
Version: 1.9
Author URI: http://wordpress.org/#
*/
{"nighttab":true,"version":"5.31.0","state":{"header":{"area":{"width":100,"justify":"center","align":"center"},"item":{"justify":"left"},"clock":{"hours":{"show":true,"display":"number"},"minutes":{"show":true,"display":"number"},"seconds":{"show":false,"display":"number"},"separator":{"show":true,"text":":"},"meridiem":{"show":true},"hour24":{"show":false},"size":1,"newLine":false},"date":{"day":{"show":true,"display":"word","weekStart":"monday","length":"long"},"date":{"show":true,"display":"number","ordinal":true},"month":{"show":false,"display":"word","length":"long","ordinal":true},"year":{"show":false,"display":"number"},"separator":{"show":true,"text":"/"},"format":"datemonth","size":1,"newLine":false},"search":{"show":false,"width":{"by":"auto","size":30},"focus":false,"engine":{"selected":"google","google":{"url":"https://www.google.com/search","name":"Google"},"duckduckgo":{"url":"https://duckduckgo.com/","name":"DuckDuckGo"},"youtube":{"url":"https://www.youtube.com/results?search_query=","name":"
@dnordstrom
dnordstrom / nightTab backup - 04 38 26 - 17.04.2020.json
Created April 17, 2020 02:41
nightTab backup - 04 38 26 - 17.04.2020
{
"nighttab": true,
"version": "5.5.2",
"state": {
"header": {
"area": {
"width": 100,
"justify": "center",
"align": "center"
},
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else
@dnordstrom
dnordstrom / cloudSettings
Last active January 5, 2021 02:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-05T02:21:18.131Z","extensionVersion":"v3.4.3"}
{
# Enable Windows access for Vagrant
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
# Add VirtualBox to path
export PATH="$PATH:/c/Program Files/Oracle/VirtualBox"
# Add globally installed Yarn package scripts to path
export PATH="$(yarn global bin):$PATH"
@dnordstrom
dnordstrom / ayu-dark
Created February 28, 2019 12:36
Ayu Theme for wsltty/mintty
BackgroundColour=15,20,25
ForegroundColour=230,225,207
CursorColour=230,225,207
Black=0,0,0
BoldBlack=50,50,50
Red=255,51,51
BoldRed=255,101,101
Green=184,204,82
BoldGreen=234,254,132
Yellow=231,197,71
@dnordstrom
dnordstrom / .shellrc
Created January 18, 2019 09:02
WSL Shell Startup Script
{
# Add globally installed Yarn package scripts to path
export PATH="$(yarn global bin):$PATH"
# Make sure Windows Docker VM is running
docker-machine.exe start default
# Set Docker bridge environment variables
eval $(docker-machine.exe env --shell bash | sed 's/C:/\/c/' | sed 's/\\/\//g' | sed 's:#.*$::g' | sed 's/"//g')
} > "$0.log" 2>&1