This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |