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: 2a0460ce2b2243ffaa55 | |
# | |
# Add NZB file to the queue | |
# | |
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net> | |
# | |
# This program is free Series; 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 python2 | |
# GistID: d92a0fccbe76f275ff2e | |
# | |
# E-Mail post-processing script for NZBGet that notifies on failure only | |
# | |
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net> | |
# With modifications by Chris Pickett "Parnic" | |
# | |
# 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 |
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
#!/usr/bin/expect | |
set timeout 20 | |
set hostName [lindex $argv 0] | |
set userName [lindex $argv 1] | |
set password [lindex $argv 2] | |
spawn telnet $hostName | |
expect "DGN2200v3 login: " | |
send "$userName\r" |
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
set home-page=http://duckduckgo.com | |
set editor-command=gvim -f %s | |
nnoremap b n | |
nnoremap B N | |
nnoremap t j | |
nnoremap n k | |
nnoremap h d | |
nnoremap l h | |
nnoremap <C-r> <C-I> | |
nnoremap <C-c> <C-O> |
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
location /nzedb/ { | |
try_files $uri $uri/ @rewrites; | |
alias /opt/nzedb/nZEDb/www/; | |
} | |
location /nzedb/covers/ { | |
try_files $uri $uri/ @rewrites; | |
alias /opt/nzedb/nZEDb/resources/covers/; | |
} |
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
#!/bin/env python2 | |
import json | |
import requests | |
import getopt, sys | |
HOST='localhost' | |
PORT='8080' | |
TITLE="Testing" | |
MESSAGE="Hello" |