This file contains hidden or 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 | |
#set -ex | |
# The daemon's name (to ensure uniqueness and for stop, restart and status) | |
name="traefik" | |
# The path of the client executable | |
command="$HOME/traefik/traefik.sh" | |
# Any command line arguments for the client executable | |
command_args="" | |
# The path of the daemon executable |
This file contains hidden or 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 | |
# Takes a repository and script from the command line | |
# and executes the script for each git log entry in reverse chronological order | |
# Use temporary files of the following format | |
TMP_TEMPLATE="/tmp/gitreplay-XXXXXXXX" | |
# Validate command line parameters | |
if [ -z $1 -o -z $2 ]; then |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: <service name> | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: <service description> | |
### END INIT INFO |
This file contains hidden or 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 | |
# http://www.commandlinefu.com/commands/view/13947/shortcut-to-search-a-process-by-name | |
psg(){ ps aux | grep -v grep | egrep -e "$1|USER"; } |
This file contains hidden or 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 | |
# http://www.commandlinefu.com/commands/view/13949/shortcut-to-find-files-with-ease. | |
findame(){ find . -iname "*$1*"; } |
This file contains hidden or 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 | |
find ./ -type f -size +5120 -exec du -shc {} + |
NewerOlder