Skip to content

Instantly share code, notes, and snippets.

View jasonamyers's full-sized avatar

Jason Myers jasonamyers

View GitHub Profile
@jasonamyers
jasonamyers / built.py
Created April 26, 2019 01:58
Built Sponsor toy
import turtle
from random import randint, randrange
import tkinter as _
_.ROUND = _.BUTT
SCALE = 5
turtle.speed(0)
turtle.colormode(255)
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@jasonamyers
jasonamyers / 1-Overview.md
Last active June 6, 2018 16:37
Git Power Up May

Diff so fancy

Chunking

  • tree -L 2
  • git add -p
y - stage this hunk
n - do not stage this hunk
q - quit; do not stage this hunk or any of the remaining ones

Keybase proof

I hereby claim:

  • I am jasonamyers on github.
  • I am jasonamyers (https://keybase.io/jasonamyers) on keybase.
  • I have a public key ASD59aC64NVGA_uuAfIgDzccaWGKG9fpBWTl_ywUuUuMDAo

To claim this, I am signing this object:

@jasonamyers
jasonamyers / gist:ba68394e31dff2be67a53a8fa5922f44
Created August 25, 2017 14:44 — forked from mdisec/gist:b0d44cc14e4c4c10cd64
Kibana with Nginx Reverse Proxy + SSL + HTTP Auth
# Nginx proxy for Elasticsearch + Kibana
#
# In this setup, we are password protecting the saving of dashboards. You may
# wish to extend the password protection to all paths.
#
# Even though these paths are being called as the result of an ajax request, the
# browser will prompt for a username/password on the first request
#
# If you use this, you'll want to point config.js at http://FQDN:443/ instead of
# http://FQDN:9200
@jasonamyers
jasonamyers / .pre-commit-config.yaml
Last active August 22, 2017 00:56
My default pre-commit configuration
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.9.2
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: flake8
@jasonamyers
jasonamyers / blue-green ecs
Created May 16, 2017 14:53
Jenkins deploy stage blue-green ecs
52 stage('Deploy') {
53 sh """#!/bin/bash -x
54 export PATH=\${HOME}/bin:\${PATH}
55 export AWS_DEFAULT_REGION=${REGION}
56 [[ -d \${HOME}/bin ]] || mkdir \${HOME}/bin
57 [[ -e \${HOME}/bin/ecs-deploy.sh ]] || ( curl --silent -L https://raw.githubusercontent.com/silinternational/ecs-deploy/develop/ecs-deploy >\${HOME}/bin/ecs-deploy.sh && chmod +x \${HOME}/bin/ecs-deploy.sh )
58
59 PREVIOUS_TASK_DEF_ARN=\$(aws ecs describe-services --services $ECS_SERVICE --cluster $ECS_CLUSTER | jq -r '.services[0].taskDefinition')
60 ecs-deploy.sh -c $ECS_CLUSTER -n $ECS_SERVICE -i ${AWS_ACCTID}.dkr.ecr.${REGION}.amazonaws.com/${ECS_SERVICE}:latest
61 NEW_TASK_DEF_ARN=\$(aws ecs describe-services --services $ECS_SERVICE --cluster $ECS_CLUSTER | jq -r '.services[0].taskDefinition')
[jasonamyers:~/dotfiles] master 3s ± brew list
ack ctags jemalloc libuv neovim packer postgresql redis tfenv zsh
autoconf gdbm jq libvterm node@4 pcre python ruby unibilium
automake gettext libtermkey libyaml oniguruma perl python3 sqlite vim
cmake go libtool msgpack openssl pkg-config readline terraform xz
[jasonamyers:~/dotfiles] master ± brew cask list
1password dashlane dropbox iterm2 omnigraffle paw screenhero spectacle spotify vagrant virtualbox
@jasonamyers
jasonamyers / service-checklist.md
Last active May 30, 2023 07:12 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
Barcamp - Oct 15th (8-5) barcampnashville.org
PyTN CFP - Oct 1st
PyNash Organizers - Please!