Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
"""Forked from https://raw.githubusercontent.com/Bunn/pi_monitor/master/pi-monitor.py""" | |
from dataclasses import dataclass, asdict | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import json | |
import re | |
import sys | |
import subprocess | |
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
[...] | |
return TemplateGenerator(yaml_template) | |
File "[...]/lib/python3.6/site-packages/troposphere/template_generator.py", line 63, in __init__ | |
self._get_resource_type_cls(v) | |
File "[...]/lib/python3.6/site-packages/troposphere/template_generator.py", line 162, in _convert_definition | |
return self._create_instance(expected_type, args, ref) | |
File "[...]/lib/python3.6/site-packages/troposphere/template_generator.py", line 265, in _create_instance | |
expected_type, kwargs[prop_name], prop_name) | |
File "[...]/lib/python3.6/site-packages/troposphere/template_generator.py", line 206, in _create_instance | |
return [self._create_instance(cls[0], v) for v in args] |
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
#!/usr/bin/env python3 | |
import json | |
import logging | |
import os | |
import sys | |
import urllib.error | |
import urllib.parse | |
import urllib.request |
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
#!/usr/bin/env python3 | |
import json | |
from troposphere.template_generator import TemplateGenerator | |
JSON_DATA = """\ | |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Example nested outputs template", |
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
export HOMEBREW_INSTALL_BADGE="🦍" | |
export HOMEBREW_PREFIX="$HOME" | |
export HOMEBREW_REPOSITORY="$HOME/Library/Homebrew" | |
test -d $HOMEBREW_REPOSITORY || git clone [email protected]:Homebrew/brew.git $HOMEBREW_REPOSITORY | |
# install homebrew for single user | |
# add the new homebrew bin directory to the path | |
if [ -z `echo $PATH | grep "$HOMEBREW_REPOSITORY"` ]; then | |
if [[ "$SHELL" == *"bash"* ]]; then |
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
.ONESHELL: | |
SHELL = /bin/bash | |
.SHELLFLAGS = -e | |
CLEAN_TARGETS = | |
TF = terraform | |
TF_DIR = .terraform | |
STATE_FILE = ${TF_DIR}/terraform.tfstate |
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
Host bitbucket.org | |
ControlMaster no | |
Host * | |
Compression yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-conn-%r@%h:%p.con | |
ControlPersist 30 | |
ForwardAgent yes | |
ServerAliveInterval 100 | |
IdentityFile ~/.ssh/id_rsa |
I hereby claim:
- I am thatgerber on github.
- I am chriswgerber (https://keybase.io/chriswgerber) on keybase.
- I have a public key ASBt9vcQq2pSlnBqpCokb9mUxOcYtEQgmBDjkms5aNHyugo
To claim this, I am signing this object:
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
<?php | |
/** | |
* Custom Region Taxonomy | |
*/ | |
if ( ! function_exists( 'epg_event_regions' ) ) { | |
// Register Custom Taxonomy | |
function epg_event_regions() { | |
$labels = array( |
NewerOlder