- Add files to
/etc/systemd/system/
- Edit as needed (change paths!)
- Run:
sudo systemctl start goesrecv sudo systemctl start goesproc
- Verify they're running:
sudo systemctl status goesrecv
/etc/systemd/system/
sudo systemctl start goesrecv
sudo systemctl start goesproc
sudo systemctl status goesrecv
#!/bin/sh | |
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a | |
set -e | |
PWD=`pwd` | |
DD=$PWD/downloads/ # Download Directory | |
function download { |
import Control.Applicative | |
import Control.Monad | |
import Data.Foldable (traverse_) | |
import Data.List | |
data Move = B | X | O deriving (Eq, Show) | |
-- things that can have moves applied to them | |
class (Eq a) => Movable a where | |
move :: Move -> a -> [a] |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
SMoshS - Stop/stop mosh via SMS!
This script allows you to start/stop mosh via text messages (SMS)! It connects to the SMS network via the excellent Twilio. After you buy a phone number from Twilio, any calls or SMSs will be POSTd to the URL of your choice. This script provides a webserver that will respond to those Twilio POSTs, so simply start it up, enter the correct URL into the Twilio control panel, and you're off!
import phosphorus | |
from phosphorus.irc import IRC | |
import sys | |
_, host, port, nick = sys.argv | |
def main(): | |
irc = IRC(host, port, nick) | |
yield phosphorus.fork(irc.run()) | |
yield phosphorus.until_elapsed(2) |
import multiprocessing | |
import itertools | |
import Queue | |
from signals import Signal | |
## | |
## first, some generic interfaces | |
## |
# Worlds are specified as keys in the pre-defined "render" dictionary | |
# | |
# all options about rendering a world go in a configuration dictionary as | |
# values of this render dict | |
render["world"] = { | |
"rendermodes": ["smooth-lighting", "smooth-night"], | |
"north-direction": ["upper-left"], | |
} |