This file contains hidden or 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 selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.common.exceptions import NoSuchElementException | |
from urllib.parse import urlparse | |
import getpass |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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", |
This file contains hidden or 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> |
This file contains hidden or 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", |
This file contains hidden or 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: |
This file contains hidden or 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; |
NewerOlder