Find unreachable tags
git fsck --unreachable | grep tag
Check tag details with
git show KEY
#!/bin/sh | |
#!/usr/bin/perl | |
### Shoutcast (SC_SERV) | |
# Taken from: http://forums.winamp.com/showthread.php?postid=2487604 | |
## SC_SERV Server 1 | |
if ( ! ps auxwww | grep "/home/user/sc_serv/sc_serv /home/user/sc_serv/sc_serv.conf" | grep -v grep ) | |
then echo "Shoutcast not running..." |
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
## remote connection - not secure | |
CREATE USER 'admin'@'%' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
# Optional for MySQL 8.0 | |
CREATE USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'some_pass'; |
#! /bin/sh | |
DIR=${1:-"."} | |
find "$DIR" -type f -iname "*.mp4" -print0 | sort -z | xargs -r0 -I{} duration.sh "{}" |
Host localhost 192.168.* 10.* | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
Find unreachable tags
git fsck --unreachable | grep tag
Check tag details with
git show KEY
#! /usr/bin/env -S sh | |
# Reference: https://stackoverflow.com/a/36883565/109747 | |
docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' $(docker ps -aq) |
# /etc/systemd/network/ap-wlan0.network | |
[Match] | |
Name=wl* | |
[Network] | |
LLMNR=no | |
MulticastDNS=yes | |
IPMasquerade=ipv4 | |
Address=192.168.90.1/24 | |
DHCPServer=yes |
#!/bin/sh | |
# use Indonesian voice | |
v=$(say -v \? | grep id_ID | head -n1 | cut -d " " -f1) | |
say -v "$v" "$@" |
# The actual on-down script. local variable matching against comment is required as of RouterOS v6.49.7 | |
/log info "igmp-proxy interface removing $interface" | |
:local komen $interface | |
/routing igmp-proxy interface remove [/routing igmp-proxy interface find comment=$komen] |
#!/bin/sh | |
sed=sed | |
if [ `uname` == "Darwin" ]; then | |
sed=`command -v gsed` | |
ret=$? | |
if [ "$ret" -ne 0 ]; then | |
echo 'GNU sed needs to be installed. Install with: brew install gnu-sed' | |
exit $ret | |
fi | |
fi |