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 | |
# usage: install-wine-addon.sh { mono | gecko } | |
# keywords: wine-mono wine-gecko msi share/wine/mono share/wine/gecko | |
go() { | |
local pkg="$1" | |
local wineexe=$(readlink /usr/bin/wine) | |
# e.g. /opt/wine-devel/bin/wine |
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 | |
# To rapidly setup remote access to a kubernetes cluster, dump the config from | |
# the master to the local system (e.g. your laptop or workstation) | |
# | |
# ssh master kubectl config view --show-managed-fields=true --raw=true | \ | |
# sed "s/127.0.0.1/${CLUSTER}/g" > ~/.kube/config | |
# Tested against cluster created with k3s version v1.25.6+k3s1 (9176e03c) |
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 | |
# Tested on ubuntu 22.04 w/ wine-stable 7.0.0 | |
v="${1:-7.0.0}" | |
mkdir -p /opt/wine-stable/share/wine/mono | |
cd /opt/wine-stable/share/wine/mono | |
wget -N https://dl.winehq.org/wine/wine-mono/${v}/wine-mono-${v}-x86.tar.xz https://dl.winehq.org/wine/wine-mono/${v}/wine-mono-${v}-x86.msi |
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 | |
############################################################################## | |
# OCR | |
# | |
# Usage: | |
# ocr.sh file.{png,pdf,jpg} ... | |
# | |
# Requires: | |
# * Tesseract |
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 | |
rm ~/.fceux/fceux.cfg | |
for i in *.nes; do | |
fceux --loadlua screenshot.lua "$i" | |
mv screen.01.png "$i".png | |
rm screen.??.png 2>/dev/null | |
done |
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
## TRUST LAN on ge-0/0/0 (Private IPv4 & ULA IPv6 w/ Internet via NAT) | |
## GUEST LAN on ge-0/0/1 (Private IPv4 w/ Internet via NAT) | |
## ISP/INTERNET (Cable Modem) on ge-0/0/15 (Public IPv4 and Public IPv6) | |
## No IPv6 prefix delegation (PD) since SRX240H will not run JunOS 12.3 | |
version 12.1X46-D71; | |
system { | |
host-name srx; | |
authentication-order password; |
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 | |
# Print solarized color tables | |
solarized="base03 base02 base01 base00 base0 base1 base2 base3 yellow orange red magenta violet blue cyan green" | |
base03_xterm=234 | |
base02_xterm=235 | |
base01_xterm=239 | |
base00_xterm=240 |