Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
@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"
},
{"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 / 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/#
*/
@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 / 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.