Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<cnchi>
<editions>
<edition name="common" description="Packages common to all DE and base">
<packages>
<pkgname>acpid</pkgname>
<pkgname>alsa-utils</pkgname>
<pkgname>antergos-keyring</pkgname>
<pkgname>antergos-mirrorlist</pkgname>
<pkgname>antergos-midnight-timers</pkgname>
@jaketame
jaketame / nzbget.py
Last active May 29, 2018 20:26
Nzbget Pause Script
#!/usr/bin/python
import requests
#jsonrpclib-pelix
from jsonrpclib import jsonrpc
username = ''
password = ''
# site address
host = ''
@jaketame
jaketame / data-media.mount
Last active May 2, 2021 09:36
PlexDrive / rclone crypt / overlayfs service files
# Install this under /lib/systemd/system
# systemctl enable data-media.mount
# systemctl start data-media.mount
[Unit]
Description=Google Drive (overlay)
After=rclonecrypt.service
[Mount]
What=overlay
Where=/data/media
@jaketame
jaketame / plexdrive_build.sh
Last active September 27, 2021 11:56
Golang build for PlexDrive
mkdir /opt/code/ && cd /opt/code
git pull https://github.com/dweidenfeld/plexdrive.git
GOPATH=/opt/code/plexdrive/ && export GOPATH
go get -v
docker run --rm -e GOOS=linux -e GOARCH=amd64 -v $PWD:/usr/src/plexdrive/ -v $PWD/src:/go/src/ -w /usr/src/plexdrive/ golang:1.8 go build -v
@jaketame
jaketame / logging_subprocess.py
Created April 28, 2017 13:05
Python subprocess logging to logger from stdout/stderr
#!/usr/local/bin/python3
import logging, select, subprocess
LOG_FILE = "test.log"
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO,filename=LOG_FILE,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
def logging_call(popenargs, **kwargs):
process = subprocess.Popen(popenargs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)