Skip to content

Instantly share code, notes, and snippets.

@elcepi
elcepi / cgminer
Last active December 23, 2015 18:49
My cgminer init.d script using tmux
#! /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
@elcepi
elcepi / cgminer
Created December 11, 2013 04:57
cgminer init script start-stop-daemon
#! /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 / podcast.py
Last active January 9, 2021 21:23
Podcast spyder
#!/usr/bin/env python3
import urllib.request
import xml.etree.ElementTree as ET
import os
import sys
import datetime
#import re
try:
@elcepi
elcepi / updatepip
Last active March 11, 2021 17:50
Upgrade pip and b2 via anacron
#!/bin/sh
/usr/bin/pip3 install b2 youtube-dl --upgrade
@elcepi
elcepi / split.zsh
Created October 6, 2021 04:43
Split a largeaudiofile (audiobook) in parts (chapters) using user defined chapter names and times and ffmeg
#!/bin/zsh
start="00:00:00"
atimes=(
"00:05:20"
"00:07:23"
"00:08:08"
"00:09:14"
"00:10:14"