Skip to content

Instantly share code, notes, and snippets.

@mendelgusmao
mendelgusmao / btsync
Last active March 4, 2021 15:37
init.d script for btsync (based on another script built to run dropbox)
#!/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.
#!/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 $@)"
@CvRXX
CvRXX / twitch_checker.py
Last active August 29, 2015 14:01
Fedora Twitch broadcast status checker
# 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