python -m pyftpdlib --help
sudo !!
#!/bin/bash | |
RUNCMD=./ServerStart.sh | |
TIMEOUT=20 | |
while true; do | |
$RUNCMD | |
echo $(date +"%a %d.%m.%y %T:%N") >> autostart.log | |
echo | |
echo "[==============================]" |
I hereby claim:
To claim this, I am signing this object:
apimon -c apimon.yml | # Prints JSON messages
while IFS= read -r json # Read line by line. $json holds the line content
do
# Send JSON over a HTTP Post request
echo $json | curl -H "Content-Type: application/json" -X POST -d @- http://yourloggingserver:4321
done
Using lancache with a FritzBox is not very straight forward:
All the hostnames can be found at uklans/cache-domains. Download the repo and switch into the directory.
#!/bin/bash | |
set -e | |
set -u | |
# set -x # during dev | |
printUsage() { | |
cat <<EOF >/dev/stderr | |
Usage: $0 [protocol://][user@]host[:port] (password) action [-s sid] [-f snapshot_file] |
#!/bin/bash | |
# Author: @DrJume | |
# This script lets you backup all mounted volumes of a Docker container | |
# into a .tar.xz archive. | |
# Throw on nonzero exit in pipelines | |
set -e |
#!/bin/sh | |
[ ! -x "$(command -v dialog)" ] && ( apk add dialog || exit) | |
installed_pkgs=$(apk list -I -q | awk '{ print $1 }' | sed -E 's/(.+)(-[[:digit:]]).+/\1/') | |
installed_pkgs_doc=$(echo "$installed_pkgs" | grep "\-doc") | |
installed_pkgs_without_doc=$(echo "$installed_pkgs" | grep -v '\-doc') | |
installed_pkgs_append_doc=$(echo "$installed_pkgs_without_doc" | awk '{ print $0"-doc" }') |
tell application "Terminal"
do script "echo Hello world"
end tell
tell application "iTerm"
set newWindow to (create window with default profile)
tell current session of newWindow
/** | |
* @typedef API | |
* @property {object} users | |
* @property {()} users.getById | |
* @property {()} users.getByName | |
*/ | |
/** @returns {API} */ | |
function ProxyFactory() { | |
return Proxy({}, handler) |