View spookyeyes.ino
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. | |
* |
View install_tmux.sh
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 | |
## setup _________________________________ | |
TMUX_VER=3.3a | |
LIBEVENT_VER=2.1.12-stable | |
OPENSSL_VER=1_1_1q | |
TEMP_COMPILE=~/tmux-temp-compile | |
COMMON_INSTALL_PREFIX=/opt | |
SYMLINK=/usr/local/bin/tmux |
View alpine.yml
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: |
View answer.txt
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 |
View untitled.js
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 sysid = "INSERT_SYS_ID_HERE"; | |
var Encrypter = new GlideEncrypter(); | |
var gr = new GlideRecord('sys_auth_profile_basic'); | |
gr.addQuery("sys_id", sysid); | |
gr.query(); | |
while (gr.next()) { | |
var encrypted = gr.password; | |
var decrypted = Encrypter.decrypt(encrypted); | |
gs.addInfoMessage(decrypted); | |
} |
View regex.js
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,})$/ |
View test-for-ssh-extension.js
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(){ |
View lscolors.zsh
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 |
View alfred-4-open-iterm.applescript
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
-- Alfred 4 Custom Terminal Script for iTerm | |
-- To Install, copy to: Alfred --> Features --> Terminal --> Custom | |
on alfred_script(q) | |
if application "iTerm2" is running or application "iTerm" is running then | |
run script " | |
on run {q} | |
tell application \"iTerm\" | |
activate | |
try |
View gist:61d08890137fb28e0cabf203505e670e
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
cat files | awk '{for(i=1;i<=NF;i++){ tmp=match($i, /PATTERN/); if(tmp){print $i}} }' | sort | uniq -c | sort -rn |
NewerOlder