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/bash | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: $0 <hostname>" | |
exit 1 | |
fi | |
printf "Starting setup with hostname \033[1;32m$1\033[0m: continue [y/N]? " | |
while true; do | |
read -sn1 response | |
case "$response" in | |
[yY]) printf '\033[1;32my\033[0m\n'; break;; |
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 /etc/rc.common | |
# OpenWRT udev-less physical interface renamer | |
# | |
# Place in /etc/init.d/ with +x | |
# /etc/init.d/<scriptname> enable | |
# /etc/init.d/<scriptname> enabled && echo on | |
# start after networking and logging | |
START=13 |
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
/* ==UserStyle== | |
@name Nasdaq Dark | |
@namespace Stylus | |
@version 0.1.1 | |
@homepageURL https://gist.github.com/Varstahl/c64a8d8d07023c0446eb48786239bd11/raw/nasdaq-dark.user.css | |
@license BSD-2-Clause | |
@author Varstahl | |
==/UserStyle== */ | |
@-moz-document regexp("https://www.nasdaq.com/market-activity/stocks/.+") { |
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
/* ==UserStyle== | |
@name OptionSonar Puts/Calls recolour | |
@namespace https://gist.github.com/Varstahl/47a6812a28a20a40ac4e07cd04f367d7/raw/optionsonar-grstack.user.css | |
@version 0.1.2 | |
@description Green/Red Option Stacks | |
@license BSD-2-Clause | |
@author Varstahl | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://www.optionsonar.com/unusual-option-activity/") { |
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
# Activate ssh agent | |
if [ -z "${SSH_AUTH_SOCK}" ]; then | |
eval $(ssh-agent -s) | |
fi | |
# SSH keys | |
keys=( $(ssh-add -l | awk '{print $2}') ) | |
if [[ ! ${keys[*]} =~ (^|[[:space:]])"SHA256:…"([[:space:]]|$) ]]; then | |
echo XYZ key absent, adding it… | |
ssh-add - < /mnt/…/private_key.pem |
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
@echo off | |
setlocal | |
set PATH=%PATH%;C:\Program Files\WinRAR | |
set FILES=ASL.dll CoreAudioToolbox.dll CoreFoundation.dll icudt62.dll libdispatch.dll libicuin.dll libicuuc.dll objc.dll | |
set DEST=%~dp0tmp | |
mkdir "%DEST%" | |
mkdir "%DEST%\msi" | |
curl -L https://www.apple.com/itunes/download/win64 -o "%DEST%\iTunes64Setup.exe" | |
winrar e "%DEST%\iTunes64Setup.exe" "%DEST%" | |
msiexec /a "%DEST%\iTunes64.msi" /qn TARGETDIR="%DEST%\msi" |