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 check for complete torrents in transmission folder, then stop and move them | |
# either hard-code the MOVEDIR variable here? | |
MOVEDIR=/pub/sabnzbd/complete # the folder to move completed downloads to | |
IP=192.168.5.90 | |
# ?or set MOVEDIR using the first command-line argument | |
# MOVEDIR=%1 | |
# use transmission-remote to get torrent list from transmission-remote list | |
# use sed to delete first / last line of output, and remove leading spaces |
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 | |
vm1=$1 | |
vm2=$2 | |
fw=$3 | |
ip1=`qvm-run -p -u root ${vm1} "ifconfig eth0 | grep 'inet ' | column -t | cut -d ' ' -f3"` | |
ip2=`qvm-run -p -u root ${vm2} "ifconfig eth0 | grep 'inet ' | column -t | cut -d ' ' -f3"` | |
if [ -z ${fw} ]; then | |
fw=sys-firewall | |
fi |
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: dvdiso2xvid.sh file.iso | |
## http://www.howforge.com/how-to-encode-dvd-to-avi-using-mencoder | |
## http://forum.videohelp.com/threads/288190-(SOLVED)-Need-mencoder-help-certain-files-have-no-audio | |
for file in "$@" | |
do | |
bn=`basename "$file"` | |
NameNoExt=${bn%.*} ## no extension | |
mencoder dvd://1 -dvd-device "$bn" -oac mp3lame -lameopts mode=2:cbr:br=128:vol=0 -ovc xvid -xvidencopts bitrate=-1 -vf scale -zoom -xy 480 -o "$NameNoExt.avi" |
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
#!/usr/bin/env python2 | |
# GistID: 581f5a91899f5662a4a8 | |
# | |
# Move files post-processing script for NZBGet | |
# | |
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
#!/usr/bin/env python | |
""" | |
Parse phone and email records out of vCard file and store them in an xml file to | |
be inserted into pidgins blist.xml. | |
Copyright (C) 2012 Senko Rasic <senko.rasic@dobarkod.hr> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in |
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 | |
#edit /etc/pam.d/system-auth | |
#change pam_unix (line 2 to below) | |
#auth [success=1 new_authtok_reqd=ok ignore=ignore default=bad] pam_unix.so try_first_pass likeauth nullok | |
#auth [default=ignore] pam_exec.so seteuid /usr/local/bin/getwebshot.sh | |
TMP_DIR=/tmp/cheese | |
HOSTNAME=localhost | |
MAILTO=me@email.com | |
MAILFROM=root@email.com.au | |
SUBJECT="Do you know this person?" |
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
# | |
# This file is based on the configuration written by | |
# Bruno Bonfils, <asyd@debian-fr.org> | |
# Written since summer 2001 | |
# colors | |
eval `dircolors /etc/DIR_COLORS` | |
autoload -U zutil | |
autoload -U compinit |
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
# set a big scrolling buffer | |
defscrollback 5000 | |
# Set the caption on the bottom line | |
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c" | |
defutf8 on | |
termcapinfo xterm* ti@:te@ | |
term xterm-256color |
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/env python2 | |
# | |
# | |
############################################################################## | |
### NZBGET POST-PROCESSING SCRIPT ### | |
# chmod for nzbget | |
# NOTE: This script requires Python to be installed on your system. | |
############################################################################## | |
### OPTIONS ### |
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 | |
xset s off # don't activate screensaver | |
xset -dpms # disable DPMS (Energy Star) features. | |
xset s noblank # don't blank the video device | |
USER=`whoami` | |
PATH=/home/${USER}/Games/zwift | |
GAME_LOCATION="${PATH}/drive_c/Program Files (x86)/Zwift" | |
RUNNER=lutris-fshack-6.21-6-x86_64 |