Skip to content

Instantly share code, notes, and snippets.

View seesleestak's full-sized avatar

Calvin Cieslak seesleestak

View GitHub Profile

Keybase proof

I hereby claim:

  • I am seesleestak on github.
  • I am calvincieslak (https://keybase.io/calvincieslak) on keybase.
  • I have a public key ASDrHDLSGJdfsJq7VhvL8svDdEYZz8HszwDkWv9Roy9cVQo

To claim this, I am signing this object:

@seesleestak
seesleestak / branch-prefix.sh
Created December 1, 2019 14:52
Prefix the commit message with the current branch
# !/bin/bash
CURR_BRANCH=$(git symbolic-ref HEAD --short)
BLACKLIST=("master" "develop")
if [[ -n $CURR_BRANCH ]]; then
if [[ $(echo "${BLACKLIST[@]}" | grep --word-regexp "$CURR_BRANCH") ]]; then
git commit -m $1 "${@:2}"
else
git commit -m "$CURR_BRANCH: $1" "${@:2}"
fi
@seesleestak
seesleestak / clone-all-repos.sh
Created May 21, 2019 00:31
Bash script to clone all team repos from Bitbucket API
#!/bin/bash
USER="username"
PASS="password"
TEAM_NAME="teamName"
# Getting 10 pages of Bitbucket API response
for i in {1..10}; do
curl --user $USER:$PASS "https://api.bitbucket.org/2.0/repositories/$TEAM_NAME?page=$i" >> /tmp/repos
done
@seesleestak
seesleestak / install.sh
Last active July 26, 2018 16:26
Init new Arch install
# !/bin/sh
# Install a whole bunch of programs
sudo pacman -S \
chromium \
dunst \
feh \
git \
gvim \
i3 \
imagemagick \
@seesleestak
seesleestak / seconds.md
Created February 17, 2018 16:37
Convert time in git log timestamp to seconds vim macro

Description

Vim macro to take something like this:

Sun Feb 11 13:37:58 2018 -0800

And append the time as seconds at the end

Sun Feb 11 13:37:58 2018 -0800 49078
@seesleestak
seesleestak / osx_brew_cask_installs.sh
Last active March 17, 2018 17:40 — forked from billyxs/osx_brew_cask_installs.sh
Install Homebrew, Cask, and necessary apps for Mac OSX
#!/bin/sh
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install exa
brew install wget
brew install orientdb
brew install mongo
brew install go