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
using System;
using System.Text;
using System.Threading;
class Program
{
static void Main()
{
Console.OutputEncoding = Encoding.UTF8; // Ensure proper encoding for ANSI colors
Console.CursorVisible = false; // Hide the cursor for better visual effect
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 = [email protected]
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
}