Skip to content

Instantly share code, notes, and snippets.

@elcepi
elcepi / updatepip
Last active Mar 11, 2021
Upgrade pip and b2 via anacron
View updatepip
#!/bin/sh
/usr/bin/pip3 install b2 youtube-dl --upgrade
@elcepi
elcepi / podcast.py
Last active Jan 9, 2021
Podcast spyder
View podcast.py
#!/usr/bin/env python3
import urllib.request
import xml.etree.ElementTree as ET
import os
import sys
import datetime
#import re
try:
@elcepi
elcepi / cgminer
Created Dec 11, 2013
cgminer init script start-stop-daemon
View cgminer
#! /bin/sh
### BEGIN INIT INFO
# Provides: cgminer
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@elcepi
elcepi / cgminer
Last active Dec 23, 2015
My cgminer init.d script using tmux
View cgminer
#! /bin/sh
### BEGIN INIT INFO
# Provides: cgminer
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts cgminer
# Description: Start script for cgminer
### END INIT INFO