Skip to content

Instantly share code, notes, and snippets.

Avatar

Martijn van Dijk martijnvandijk

View GitHub Profile
@CvRXX
CvRXX / twitch_checker.py
Last active Aug 29, 2015
Fedora Twitch broadcast status checker
View twitch_checker.py
# A simple twitch notifier for fedora.
# I only tested this on fedora but maby it works on other distributions as well.
# The syntax is : "python scriptname streamer".
# It will make a sound if the streamer goes on-air.
import urllib2
import json
import sys
View pass-autotype
#!/usr/bin/env bash
set -ue
if ! command -v xdotool &> /dev/null; then
printf "You need to install xdotool.\n" 1>&2
exit 1
fi
output="$(pass $@)"
@mendelgusmao
mendelgusmao / btsync
Last active Sep 10, 2017
init.d script for btsync (based on another script built to run dropbox)
View btsync
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
You can’t perform that action at this time.