Skip to content

Instantly share code, notes, and snippets.

Chad Zobrisky czobrisky

View GitHub Profile
@czobrisky
czobrisky / hots-free-hero-rotation.py
Last active Jul 1, 2016
Get the free hero rotation for the current week from the battle.net forums post.
View hots-free-hero-rotation.py
#!/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')
@czobrisky
czobrisky / .gitconfig
Last active Aug 15, 2016
git config aliases
View .gitconfig
[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
View Vagrantfile
# -*- 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|
You can’t perform that action at this time.