This document sums up how to set up cascading builds of multiple Dockerfiles in the same repository running on docker hub infrastructure.
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
Array.from(document.getElementsByTagName("video")).forEach(v => v.playbackRate = 2) |
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 | |
INPUT_FILE=$1 | |
BG_COLOR=${2:transparent} # May be hex code or color name | |
if [ -z "$INPUT_FILE" ]; then | |
echo "Usage: $0 <input.svg> <bg-color>" | |
exit 1 | |
fi |
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
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ | |
--evdev /dev/input/event1 \ | |
--silent \ | |
--detach-kernel-driver \ | |
--force-feedback \ | |
--deadzone-trigger 15% \ | |
--deadzone 4000 \ | |
--mimic-xpad \ | |
--dpad-as-button \ | |
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \ |
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
# List all text in a dialogue file | |
yq '.EntryList.value[].Text.value."0"' emotewand.dlg.yml | less |
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
############################################## | |
# Useful resources: | |
# | |
# https://nixos.org/nixos/options.html | |
# https://nixos.wiki/wiki/NixOS:extend_NixOS | |
# https://nixos.wiki/wiki/Cheatsheet | |
# | |
############################################## | |
#### NixOS #### |
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
curl --unix-socket /var/run/docker.sock http://./debug/pprof/goroutine?debug=2 |
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
# Exclude untracked files or directories | |
vim .git/info/exclude | |
# Exclude tracked file | |
git update-index --assume-unchanged file |
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
netsh wlan show profiles | |
netsh wlan show profile name="ProfileName" key=clear |
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 | |
# -sU and -sT to switch between UDP and TCP | |
nmap -sU -p 5121 localhost |
NewerOlder