View .zshrc
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
# Opt out of homebrew analytics collection | |
export HOMEBREW_NO_ANALYTICS=1 | |
### COLORS ### | |
autoload -U colors && colors | |
### GIT CONFIGURATION ### | |
autoload -Uz vcs_info |
View .gpgrc
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
GPG_AGENT_SOCKET="$HOME/.gnupg/S.gpg-agent.ssh" | |
if [ ! -S $GPG_AGENT_SOCKET ]; then | |
gpg-agent --use-standard-socket --daemon >/dev/null 2>&1 | |
export GPG_TTY=$(tty) | |
fi | |
unset SSH_AGENT_PID | |
export SSH_AUTH_SOCK=$GPG_AGENT_SOCKET |
View uwsgi@.service
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
[Unit] | |
Description=%i uWSGI app | |
After=network.target | |
[Service] | |
ExecStart=/srv/http/%i/venv/bin/uwsgi --ini /srv/http/%i/uwsgi.ini --logto /var/log/uwsgi/%i.log --force-cwd /srv/http/%i --uid http --gid http -b 32768 --http-socket /tmp/%i.sock --vacuum | |
Restart=on-failure | |
KillSignal=SIGQUIT | |
Type=notify | |
StandardError=syslog |
View refresh.sh
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 | |
if [[ "$1" = "" ]]; then | |
echo "need to specify app as argument" | |
exit 1 | |
fi | |
app="$1" | |
pushd /srv/http |
View grafana-tor.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View gsuite.xml
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
<?xml version='1.0' encoding='UTF-8'?> | |
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> | |
<title>Mail Filters</title> | |
<id>tag:mail.google.com,2008:filters:1441150918069,1441152729189,1514931430096,3566681520295870698,4571699068684945648,z0000001568913719296*0569792241890883702</id> | |
<updated>2019-11-19T04:52:52Z</updated> | |
<entry> | |
<category term='filter'></category> | |
<title>Mail Filter</title> | |
<id>tag:mail.google.com,2008:filter:1441150918069</id> | |
<updated>2019-11-19T04:52:52Z</updated> |
View dashboard.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View blah.py
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
def __init__(self, config: Config, modules: List[str]): | |
kwargs = config.get('MYSQL_ENGINE_ARGS') | |
if not kwargs: | |
raise Exception('No MYSQL_ENGINE_ARGS set in setup_job_scheduler') | |
self.available_jobs: Dict[str, Any] = {} | |
# Import modules as necessary for the purpose of instantiating Jobs | |
for module_str in modules: | |
module = import_module(module_str) | |
if module is not None: |
View printer.sh
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 | |
PIN="26" | |
if [ ! -d "/sys/class/gpio/gpio$PIN" ]; then | |
echo $PIN > /sys/class/gpio/export; | |
fi | |
if [ "`cat /sys/class/gpio/gpio$PIN/direction`" != "out" ]; then | |
echo out > /sys/class/gpio/gpio$PIN/direction; |
View PKGBUILD
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
pkgbase=curaengine-old | |
pkgname=curaengine-old | |
pkgver=15.04.6 | |
pkgrel=1 | |
pkgdesc="A full software solution for 3D printing aimed at RepRaps and the Ultimaker. (the old one)" | |
provides=('curaengine') | |
conflicts=('curaengine') | |
url="http://blog.ultimaker.com/cura-user-manual/" | |
license=('AGPLv3') | |
arch=('i686' 'x86_64' 'armv7h') |
NewerOlder