Skip to content

Instantly share code, notes, and snippets.

Chad Zobrisky czobrisky

View GitHub Profile
czobrisky /
Last active Jul 1, 2016
Get the free hero rotation for the current week from the forums post.
import requests
from bs4 import BeautifulSoup
#grab the free hero rotation page
heroPage = requests.get('')
#soupify it
soup = BeautifulSoup(''.join(heroPage),'html.parser')
czobrisky / .gitconfig
Last active Aug 15, 2016
git config aliases
View .gitconfig
autosetuprebase = always
#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| = "ubuntu/trusty64" :forwarded_port, guest: 8080, host: 8080
config.vm.provider :virtualbox do |vb|
You can’t perform that action at this time.