Skip to content

Instantly share code, notes, and snippets.

View randypitcherii's full-sized avatar
🌞

Randy 🌞 randypitcherii

🌞
View GitHub Profile
@randypitcherii
randypitcherii / .bashrc
Last active August 12, 2018 20:56
Shell Customization Post - LS
# colorize / verticalize ls
alias ls='ls -G1'
# cd shortcuts
alias te='cd ~/projects/tempus-edge'
alias tde='cd ~/projects/TempusDevEnvironment'
alias hloom='cd ~/projects/Heirloom'
alias ..='cd ..'
@randypitcherii
randypitcherii / .bashrc
Last active August 12, 2018 21:12
Shell Customization - Docker and k8s
# k8s shortcuts
alias kbaws='kubectl --kubeconfig ~/.kube/aws.secure.kubeconfig'
alias kbmin='kubectl --kubeconfig ~/.kube/minikube.kubeconfig'
# docker shortcuts
alias drun='docker run -it --rm'
alias drm='docker rm -f'
alias drmi='docker rmi'
alias dps="docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' -a"
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:23
Shell Customization - GIT
# git shortcuts
alias branch='git branch'
alias gs='git status'
alias gcam='git commit -am'
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:27
Shell Customization - Golang
# Golang setup
export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/lib/go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/applications/mqtt-client-go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/protobuf-definitions/go-protobuf-output"
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:35
Shell Customization - Python
# pycache cleaner
export PYTHONDONTWRITEBYTECODE=1
pyclean () {
find . -regex '.*\(__pycache__\|\.py[co]\)' | xargs rm -rf
}
@randypitcherii
randypitcherii / .bashrc
Created August 12, 2018 21:40
Shell Customization - SSH
# ssh shortcuts
alias acerShell='ssh randy@192.168.1.9 -p 3141'
alias awsIofogShell='ssh ubuntu@13.59.38.225'
@randypitcherii
randypitcherii / aws_s3_rates.md
Last active August 20, 2018 18:10
Table of s3 rates for blog post embedding.
Storage Tier Storage Cost (monthly per Gigabyte) Read Cost (per 1K requests + per Gigabyte read) Write Cost (per 1K requests)
S3 Standard $0.023 $0.0004 + $0.0007 $0.005
S3 IA $0.0125 $0.001 + $0.01 $0.01
S3 IA One Zone $0.01 $0.001 + $0.01 $0.01
Glacier Standard $0.004 $0.05 + $0.01 $0.05
@randypitcherii
randypitcherii / javascript.json
Created October 16, 2018 20:09
VS Code javascript snippet for bootstrapping a new react component
{
"New Component": {
"prefix": "newComponent",
"body": [
"import React, { Component } from 'react';",
"",
"import { withStyles } from '@material-ui/core/styles';",
"",
"const styles = {",
"\t//customStyle: {",
@randypitcherii
randypitcherii / .bash_profile
Last active April 29, 2019 15:50
Dot files on mac
# Shorten Bash Prompt
PS1='$ '
# Env Vars
export JAVA_HOME=$(/usr/libexec/java_home)
export GREP_OPTIONS="--color=auto"
# Init jenv
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
@randypitcherii
randypitcherii / hashmap-codeDevFlow.md
Last active November 9, 2018 23:00
Introduction to the Hashmap software development flow and a simple PM-level glossary of terms

Hashmap Software Development Flow

This document explains the general workflow used at Hashmap for software projects on github.

Please feel free to reach out if you'd like me to change any of this.

Github Terms

First, let's discuss some git / github terms that are often confusing.

  • git -> a version control software. This software is what allows developers on different machines to collaborate on the same code base in a really efficient way.
  • github -> github is a website that hosts git repositories. It has a ton of social / communication / PM features that make it a nice way to collaborate on software projects.