- GitHub Staff
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
%albumartist%/$if($ne(%albumartist%,),%album% $if(%originaldate%,\($left(%originaldate%,4)\),%originaldate%)/)$if($gt(%totaldiscs%,1),%discnumber%)$num(%tracknumber%,2) - %title% |
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
# Enable SSH, disable GUIs, set Memory Split to 16 | |
sudo raspi-config | |
sudo apt install vim | |
sudo apt purge libreoffice* wolfram-engine minecraft-pi sonic-pi | |
sudo apt clean | |
sudo apt autoremove | |
# Improve SD card performance | |
sudo vim /etc/fstab |
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 flask | |
import json | |
import requests | |
APP = flask.Flask(__name__) | |
def send_notification(description): | |
# endpoint = "https://www.notifymyandroid.com/publicapi/notify?" |
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 | |
CWD="/home/<USER>/Incoming/$2" | |
echo "Start post processing for: $CWD" >> /tmp/deluge.log | |
cd "$CWD" | |
/home/<USER>/src/unrarall/unrarall -s --clean=all "$CWD" 2>> /tmp/deluge.log | |
exiftool -all= -ext mp4 -ext m4v -ext avi -R "$CWD" |
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:xenial | |
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl docker.io vim | |
RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-xenial main" > /etc/apt/sources.list.d/google-cloud-sdk.list | |
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
RUN apt-get update && apt-get install -y google-cloud-sdk |
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
diff --git a/roles/configure/templates/bastion-cloud-config.yml.j2 b/roles/configure/templates/bastion-cloud-config.yml.j2 | |
index 28743fd..c227484 100644 | |
--- a/roles/configure/templates/bastion-cloud-config.yml.j2 | |
+++ b/roles/configure/templates/bastion-cloud-config.yml.j2 | |
@@ -49,7 +49,7 @@ write_files: | |
go get github.com/cloudflare/cfssl/cmd/cfssljson | |
sudo mv $GOPATH/bin/cfssljson /usr/local/bin | |
- wget https://storage.googleapis.com/kubernetes-release/release/v1.2.2/bin/linux/amd64/kubectl -O /tmp/kubectl | |
+ wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl -O /tmp/kubectl |
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
sudo gpasswd -a ec2-user docker |
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 setuptools | |
setuptools.setup( | |
name="setuppy-github-test", | |
version="0.0.1", | |
author="Josh Kearney", | |
author_email="[email protected]", | |
install_requires=[ | |
"python_planet_pda_common" |
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
1) SSH to access points | |
2) vi/tmp/system.cfg | |
3) change l2_isolation=enabled to disabled | |
4) syswrapper.sh apply-config | |
# https://community.ubnt.com/t5/UniFi-Wireless/Chromecast-on-guest-network/td-p/1229669 | |
6) add 192.168.144.13/32 and 239.255.255.250/32 to Allowed Subnets |
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 | |
PASSWORD=$(security 2>&1 >/dev/null find-generic-password -ga global:<name> | cut -c12-) | |
export PASSWORD=${PASSWORD%?} | |
echo $PASSWORD | tr -d "\n"| pbcopy && pbpaste |
NewerOlder