Skip to content

Instantly share code, notes, and snippets.

View JustinJohnWilliams's full-sized avatar
:octocat:

Justin Williams JustinJohnWilliams

:octocat:
  • Concord
  • Dallas
View GitHub Profile
name: CI + CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
manual_approval:
@JustinJohnWilliams
JustinJohnWilliams / pipeline-base.yml
Last active March 23, 2023 23:30
gitlab pipeline
variables:
# When using dind, it's wise to use the overlayfs driver for improved performance.
DOCKER_DRIVER: overlay2
REPOSITORY_NAME: $ORGANIZATION/$CI_PROJECT_NAME
ECR_PROJECT_PATH: $ECR_URL/$ORGANIZATION/$CI_PROJECT_NAME
COMPOSE_STORAGE_ON_S3: concord-ci-build
DEPLOY_FILE_STORAGE_ON_S3: concord-ci-deploy
build:
stage: build
#!/bin/bash
function __aws-login-as {
local account="$1"
aws-logout
echo >&2 "Logging in for $account account..."
local access_key_id="$(pass "aws/$account/access_key_id")"
local secret_access_key="$(pass "aws/$account/secret_access_key")"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xMTc2NDcwNTkzIDAuMTI5NDExNzcx
OSAwLjE1Mjk0MTE4MjMAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
def tick_game args
args.outputs.background_color = [0,0,0]
args.grid.origin_center!
args.state.magnitude ||= 20
args.state.angle_of_stars ||= 0
args.state.stars ||= 750.map do
{
w: 10,
h: 10,
[user]
name = Justin Williams
email = justinjohnwilliams@gmail.com
signingkey = <yo momma>
[pull]
rebase = true
[alias]
exclude = !sh -c 'echo "$1" >> .git/info/exclude' -
lg = log --color --graph --abbrev-commit --pretty=format:'%C(magenta)%h%Creset -%C(yellow)%d%Creset %C(cyan)%s%Creset %Cgreen(%cr) %C(bold blue)<%an>%Creset'
commits = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'
# Add more scroll history in the buffer
set -g history-limit 50000
# Enable color support inside of tmux.
set -g default-terminal "screen-256color"
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1
@JustinJohnWilliams
JustinJohnWilliams / esctrl.ahk
Created April 16, 2020 17:00
esc ctrl remaps
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
@JustinJohnWilliams
JustinJohnWilliams / win.ahk
Last active February 22, 2021 22:03
Move windows by 1/3
;********************************************************************************
; Move Windows by 1/3
;********************************************************************************
MoveCycle(Add) {
static SizeCycle = 0
SizeCycle := Mod(SizeCycle + Add, 7)
if (SizeCycle < 0) {
SizeCycle := SizeCycle + 7
}
Start by pressing <esc>, that will put you in "command" mode. Now press "j".
See what happend? You're on this line now. "j" means down. Now press "5j".
if you see DASHED lines press "zR", otherwise ignore
if you see DASHED lines press "zR", otherwise ignore
What you did just there is "move down 5". Press "j"
If you mess your cursor position during this tutorial press "gg" to take you back to the top, try that now, next time press "j"
Time to follow the ascii road. press "j", then press the key that's highlighted by the blinking cursor
j <---- press "j" because j is curently under your cursor