This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |