This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM l3iggs/archlinux-aur | |
USER root | |
RUN pacman -Syu --noconfirm | |
USER docker | |
RUN packer -S --noconfirm snapraid | |
VOLUME /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer