Skip to content

Instantly share code, notes, and snippets.

View czobrisky's full-sized avatar

Chad Zobrisky czobrisky

View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
#This is a Vagrantfile to build a box and checkout Apache Nifi
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.provider :virtualbox do |vb|
@czobrisky
czobrisky / .gitconfig
Last active July 14, 2021 17:55
git config aliases
[branch]
autosetuprebase = always
[alias]
#one line log
l = log --pretty=format"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
#get current branch name, used later in other aliases
branch-name = !git rev-parse --abbrev-ref HEAD
publish = !git push -u origin $(git branch-name)
update = !git co master && git pull origin master
@czobrisky
czobrisky / hots-free-hero-rotation.py
Last active July 1, 2016 16:49
Get the free hero rotation for the current week from the battle.net forums post.
#!/usr/local/bin/python2.7
import requests
from bs4 import BeautifulSoup
#grab the free hero rotation page
heroPage = requests.get('http://us.battle.net/heroes/en/forum/topic/17936383460')
#soupify it
soup = BeautifulSoup(''.join(heroPage),'html.parser')