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 | |
# | |
# Script to keep downloading YouTube videos to your computer using youtube-dl: | |
# http://rg3.github.io/youtube-dl/ | |
# | |
# Put it to work: | |
# | |
# sudo wget "https://gist.github.com/vmassuchetto/10338703/raw" -O /etc/cron.hourly/youtube-dl-cron.sh | |
# sudo chmod +x /etc/cron.hourly/youtube-dl-cron.sh |
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 | |
# Credits to: | |
# - http://vstone.eu/reducing-vagrant-box-size/ | |
# - https://github.com/mitchellh/vagrant/issues/343 | |
# - https://gist.github.com/adrienbrault/3775253 | |
# Unmount project | |
umount /vagrant |
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 | |
# Based on http://tinyurl.com/jmze5lw with some additions | |
# Dependencies: detox wmctrl | |
# In your VM, share the root host location "/" in $DRIVE | |
SCRIPTPATH="$(basename "$0")" | |
VMNAME="WindowsXP" | |
DRIVE="E:" |
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() { | |
echo "" | |
echo "USAGE:" | |
echo "" | |
echo " $0 [ OPTIONS and PARAMETERS ]" | |
echo "" | |
echo "OPTIONS:" | |
echo "" |
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 | |
### BEGIN INIT INFO | |
# Provides: protheus | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# X-Interactive: true | |
# Short-Description: Start/stop protheus server | |
### END INIT INFO |
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 | |
DBFILE=~/.local/share/shotwell/data/photo.db | |
PHOTODIR="~/photos" | |
STRUCTURE="%Y/%m" | |
UPDATE="$(mktemp -d "${TMPDIR:-/tmp/}$(basename 0).XXXXXXXXXXXX")/update.sql" | |
echo '' > $UPDATE | |
PHOTODIR=${PHOTODIR/#\~/$HOME} |
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 | |
# | |
# Script to help users in version control in a shared codebase | |
# and a single user account. It will parse a USERS_FILE to | |
# fill the proper committer info and push changes. Pull and | |
# merges are not used. Pushes are forced because the main codebase | |
# is the work-tree and not the upstream code. | |
# |
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 | |
usage() { | |
echo "" | |
echo "USAGE:" | |
echo "" | |
echo " Run as root on virtual environment:" | |
echo " $0" | |
echo "" | |
echo "RESULTS:" |
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 | |
THUMB_ROOT=~/.cache/shotwell/thumbs | |
MAX_PROCESSES=4 | |
i=0 | |
sqlite3 ~/.local/share/shotwell/data/photo.db \ | |
"select id||' '||filename from PhotoTable order by exposure_time desc" | | |
while read id filename; do |
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
# begin section managed by etckeeper (do not edit this section by hand) | |
# new and old versions of conffiles, stored by dpkg | |
*.dpkg-* | |
# new and old versions of conffiles, stored by ucf | |
*.ucf-* | |
# old versions of files | |
*.old |
NewerOlder