Skip to content

Instantly share code, notes, and snippets.

View wolfymaster's full-sized avatar
🐺

Paul Sherer wolfymaster

🐺
View GitHub Profile
@wolfymaster
wolfymaster / install_pyenv.sh
Created August 5, 2022 03:05
Install pyenv
# Install pyenv to manage python versions and create a virtualenv
#!/bin/bash
# clone pyenv repo
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# Add pyenv to .bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
@wolfymaster
wolfymaster / start.sh
Created August 18, 2021 02:47
Springboard-Postgres
# Quickly boot up a postgres container and create a database to use for testing student assessments
#!/bin/bash
# run postgres container
docker run -d --name postgres_sb -e POSTGRES_PASSWORD=password -p 5432:5432 postgres:latest
# wait for container to start
sleep 3
# Ask for db name
@wolfymaster
wolfymaster / AWS CodeCommit Config
Created March 5, 2019 15:31 — forked from justinpawela/config
AWS CodeCommit Multiple Account Config
# This file is: ~/.ssh/config
# You may have other (non-CodeCommit) SSH credentials stored in this
# config file – in addition to the CodeCommit settings shown below.
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file!
# Credentials for Account1
Host awscc-account1 # 'awscc-account1' is a name you pick
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region
@wolfymaster
wolfymaster / 0_reuse_code.js
Created November 21, 2016 15:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wolfymaster
wolfymaster / recursiveRename.ps1
Last active August 26, 2016 23:27
PowerShell file to recursively rename and edit images in a directory based on their image dimensions.
# This gets the correct path to the directory of execution
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Create variable from passed argument in command line
$filePath = $args[0]
# Get FullPath of file
$fullpath = [System.IO.Path]::GetFullPath(($filePath))