- Install docker
- Install socat (see install.sh)
- Install XQuartz from https://www.xquartz.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
/* halloween.ino | |
* https://gist.github.com/jnovack/ce208617a2ec53af11d674b20b127c9a/ | |
* 2021 - Justin J. Novack | |
* | |
* When the PIN_PIR is rising (from LOW to HIGH, e.g. 0V to 5V), turn on the pixels | |
* in a random order waiting DELAY_ON between each pixel, then wait DELAY_WAIT before | |
* starting to turn the pixels off, waiting DELAY_OFF between each pixel. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
@echo "WARNING: Installation requires your sudo access, please enter your password when prompted." | |
@echo " ... press Enter to continue... " | |
@read | |
curl -LOs https://src.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2 | |
curl -LOs https://raw.githubusercontent.com/Homebrew/formula-patches/c1d87451da3b5b147bed95b2dc783a1b02520ac5/bash-completion/bug-740971.patch | |
curl -LOs https://gist.githubusercontent.com/jnovack/e66f40e7a31e04f909c2f503c6df7367/raw/287b97a1f24bb47746248a15659b9478e6ec8e02/osx.patch | |
curl -LOs https://gist.github.com/jnovack/e66f40e7a31e04f909c2f503c6df7367/raw/SHA256SUMS | |
shasum -c SHA256SUMS || (@echo "There was an error downloading one or more files... please try again."; exit 1) | |
tar -xzvf bash-completion-1.3.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Bootstrap Alpine | |
hosts: all | |
gather_facts: false | |
become: no | |
vars: | |
ansible_python_interpreter: auto_silent | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup-alpine answer file | |
# Set hostname to alpine-test | |
HOSTNAMEOPTS="-n alpine-test" | |
# Use US layout with US variant | |
KEYMAPOPTS="us us" | |
# Contents of /etc/network/interfaces | |
INTERFACESOPTS="auto lo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^([^m].....|.[^a]....|..[^s]...|...[^t]..|....[^e].|.....[^r]|.{0,5}|.{7,})$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var detect=function(base,if_installed,if_not_installed){ | |
var s=document.createElement("script"); | |
s.onerror=if_not_installed,s.onload=if_installed,document.body.appendChild(s),s.src=base+"/html/nassh.html" | |
}; | |
detect("chrome-extension://pnhechapfaindjhompbnflcldabbghjo", | |
function(){ | |
console.log("Yes"); | |
}, | |
function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nginx/nginx.conf | |
# ... | |
http { | |
# ... | |
include /etc/nginx/sites-enabled/*.conf | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LSCOLORS=ExFxBxDxCxegedabagacad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
file_env() { | |
local envVar="$1" | |
local fileVar="${envVar}_FILE" | |
eval envVarContents="\$${envVar}" | |
eval fileVarContents="\$${fileVar}" | |
if [ ! -z "$envVarContents" ] && [ ! -z "$fileVarContents" ]; then | |
echo >&2 "error: both $envVar and $fileVar are set (but are exclusive)" | |
exit 1 | |
fi |