Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
#!/usr/bin/python
import psycopg2
import sys
import time
host = '192.168.1.40'
dbname = 'my_db'
user = 'my_pg_user'
password = 'my_pg_user_pass'
port = 5432
import sys
import os
import json
import time
if __name__ == '__main__':
print('Welcome to Pynab.')
print('-----------------')
print()
print('Please ensure that you have copied and renamed config_sample.py to config.py before proceeding.')
diorite-git]$ makepkg -s
==> Making package: diorite-git 2015.01.19.888cb5f-4 (Thu 6 Aug 15:42:18 BST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning diorite-git git repo...
Cloning into bare repository '/home/alexanderk/tmp/diorite-git/diorite-git'...
FROM l3iggs/archlinux-aur
USER root
RUN pacman -Syu --noconfirm
USER docker
RUN packer -S --noconfirm snapraid
VOLUME /mnt
## Plex
docker run -d \
--name plex \
--net=host \
-e PUID=1001 -e PGID=1001 \
-v /opt/appdata/plex:/config \
-v /mnt/storage/:/data \
linuxserver/plex
## NZBGet
@ironicbadger
ironicbadger / snapraid.conf
Created December 14, 2015 14:12
snapraid.conf
# Example configuration for snapraid
# Defines the file to use as parity storage
# It must NOT be in a data disk
# Format: "parity FILE_PATH"
parity /mnt/parity1/snapraid.parity
# Defines the files to use as content list
# You can use multiple specification to store more copies
# You must have least one copy for each parity file plus one. Some more don't hurt
FROM ubuntu
MAINTAINER IronicBadger <ironicbadger@linuxserver.io>
# Install MHDDFS compile pre-reqs for 14.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
libattr1-dev \
libglib2.0-dev \
#!/bin/bash
rsync=/usr/bin/rsync
ssh=/usr/bin/ssh
sshkey=/home/alex/.ssh/id_rsa.pub
omega_user=root
omega_host=omega
omega_backup_path=/volume1/omega/backups
epsilon_storage=/mnt/storage
@ironicbadger
ironicbadger / dcreate
Created January 11, 2016 17:09
dcreate
#!/bin/bash
# Replaces a container with an upgraded version from Docker Hub and recreates
# using arguments supplied via /opt/docker.list
CONTAINER_NAME="$@"
LIST="docker.list"
# check docker.list exists, exit if not
{
if [ ! -f $LIST ]; then
#!/bin/bash
# Replaces a container with an upgraded version from Docker Hub and recreates
# using arguments supplied via /opt/docker.list
CONTAINER_NAME="$@"
LIST="docker.list"
# check docker.list exists, exit if not
{
if [ ! -f $LIST ]; then