I hereby claim:
- I am dewey on github.
- I am dewey (https://keybase.io/dewey) on keybase.
- I have a public key whose fingerprint is AA6F A1E8 62E3 0BDB 1FE5 6DF7 E047 2B03 3D23 D359
To claim this, I am signing this object:
#!/bin/bash | |
#title : popcorntime.sh | |
#description : This script picks a random movie from a given directory based on various input parameters. | |
#author : dewey | |
#date : 17.02.2014 | |
# Initialise some variables | |
quality= | |
extension= |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
#title : backup-znc-logs.sh | |
#description : Create a local backup of all important ZNC accounts | |
#date : 19.08.2014 | |
# ------------------------- START CONFIG ------------------------- | |
# Script home directory | |
# This is the directory where you want to store the directories containing your log files. | |
SCRIPT_HOME="${HOME}/Documents/Textual Logs/ZNC/" |
for f in torrents/*; do scp "$f" torrent@example.com:~/rtorrent/watch/watchWHAT/ && rm "$f" ; sleep 5; done |
#!/bin/zsh | |
updates=`emerge -pv --color n --update --deep --newuse world` | |
if [ "`echo $updates | wc -l`" -gt "6" ]; then | |
message=`echo $updates | grep -F --color=never "ebuild"` | |
curl -s \ | |
--form-string "token=APP TOKEN HERE" \ | |
--form-string "user=USER TOKEN HERE" \ | |
--form-string "title=Updates available for: `hostname`" \ | |
--form-string "message=$message" \ | |
https://api.pushover.net/1/messages.json |
var input = ['p1', 'p2', 'p3', 'p4', 'p5', 'p6'] | |
var output = []; | |
var counter = 0; | |
for(var i = 0; i <= input.length-1; i++) { | |
var tupel = []; | |
if(counter == 0) { | |
tupel.push(input[i]) | |
counter++; |
#!/usr/bin/env python | |
import urllib.request | |
import json | |
import sys | |
def main(): | |
try: | |
mode = sys.argv[1] | |
except IndexError: | |
mode = "" |
package main | |
import ( | |
"bufio" | |
"crypto/md5" | |
"encoding/hex" | |
"fmt" | |
"log" | |
"net/http" | |
"os" |
#!/bin/bash | |
cd /etc/openvpn/easy-rsa/2.0/keys | |
if [ ! -f $1-openvpn.key ]; | |
then | |
echo "Please generate the client certificate using: . /etc/openvpn/easy-rsa/2.0/build-key $1-openvpn" | |
echo "and reinvoke the script." | |
else | |
DIRNAME="$1-openvpn" | |
TMPDIR="/tmp/$DIRNAME" | |
ENCPW=`openssl rand -base64 32` |