Skip to content

Instantly share code, notes, and snippets.

View devbyaccident's full-sized avatar
💭
I do a lot of stuff.

Chris Blackden devbyaccident

💭
I do a lot of stuff.
View GitHub Profile
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@devbyaccident
devbyaccident / ligatures.ps1
Created June 5, 2020 12:05
Print ligatures
$data = @(
'|||>',
'<|||',
'<==>',
'<!--',
'####',
'~~>',
'***',
'||=',
'||>',
@devbyaccident
devbyaccident / settings.json
Last active May 30, 2021 10:14
My Windows Terminal Settings
// This file was initially generated by Windows Terminal (Preview) 1.0.1402.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
---
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
@devbyaccident
devbyaccident / init.sh
Last active October 21, 2019 03:48
Setup Docker Compose and Golang on AWS Linux
#!/bin/bash
#Download pip and upgrade AWSCLI
curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install awscli --upgrade
# Init
sudo yum update -y
sudo yum install -y telnet
@devbyaccident
devbyaccident / incrementVersion.py
Created April 19, 2019 00:59
For incrementing k8s deployment manifests
# Using ruamel yaml for the formatting options
# https://yaml.readthedocs.io/en/latest/overview
# pip install ryd
import ruamel.yaml
yaml = ruamel.yaml.YAML()
# Functions we will use
def yamlLoader(path):
with open(path, "r") as fileObj: