Skip to content

Instantly share code, notes, and snippets.

View ashemedai's full-sized avatar
😃
The enemy of art is the absence of limitations

Jeroen Ruigrok van der Werven ashemedai

😃
The enemy of art is the absence of limitations
View GitHub Profile
@ashemedai
ashemedai / cfnscan.py
Created July 28, 2023 07:51
cfn-lint helper script
#!/usr/bin/env python3
import json
from pathlib import Path
import re
import sys
DEBUG = True
VALUE_TYPES_PATH = Path("03_value_types")
@ashemedai
ashemedai / get-cert.ps1
Last active July 19, 2023 14:17
PowerShell script to fetch enterprise security MitM proxy root certificate for use in WSL2
# Run within WSL2 as: pwsh.exe -File get-cert.ps1
#
# PowerShell 7.3 wraps .NET 7
# 1 is for line breaks at column 76 - https://learn.microsoft.com/en-us/dotnet/api/system.base64formattingoptions?view=net-7.0
$Base64FormattingOptions = 1
# Put the common name (CN) here, typically in the form of '[company name] Root CA'
$SubjectCN = "[company name] Root CA"
$Name = $SubjectCN -replace '[\W]', '_'
@ashemedai
ashemedai / update-go.sh
Last active May 8, 2024 12:23
go fetch and install script
#!/bin/sh
if [ -z ${1} ]; then
echo "Enter go release number"
read VERSION
else
VERSION=${1}
fi
ARCHIVE="go${VERSION}.linux-amd64.tar.gz"
@ashemedai
ashemedai / update-nvim.sh
Last active May 8, 2024 12:32
neovim fetch and install script
#!/bin/sh
if [ -z "${1}" ]; then
echo "Enter nvim release number"
read VERSION
else
VERSION=${1}
fi
ARCHIVE="nvim-linux64.tar.gz"
@ashemedai
ashemedai / awssamcli.sh
Created November 28, 2022 08:45
AWS SAM CLI installer/update script
#!/bin/sh
AWSSAMCLI_DIST="awssamcli.zip"
LOCAL_BIN_DIR="${HOME}/.local/bin"
LOCAL_SHARE_DIR="${HOME}/.local/share/sam"
if [ -z "$(which curl)" ] || [ -z "$(which unzip)" ]; then
echo "Please make sure curl and unzip are installed"
exit 1
fi
@ashemedai
ashemedai / awscli.sh
Last active November 24, 2022 12:21
AWS CLI v2 installer/update script
#!/bin/sh
AWSCLI_DIST="awscliv2.zip"
LOCAL_BIN_DIR="${HOME}/.local/bin"
LOCAL_SHARE_DIR="${HOME}/.local/share/aws"
V2_SHARE_DIR="${LOCAL_SHARE_DIR}/v2"
if [ -z "$(which curl)" ] || [ -z "$(which unzip)" ]; then
echo "Please make sure curl and unzip are installed"
exit 1