Skip to content

Instantly share code, notes, and snippets.

View arunkumar-patange's full-sized avatar
🐢
I may be slow to respond.

arunkumar-patange

🐢
I may be slow to respond.
View GitHub Profile
@arunkumar-patange
arunkumar-patange / git-test.py
Last active April 1, 2016 06:37
Check PR for specs
#
#
# Github API wrapper
#
#
import sh
from pygithub3 import Github
#!/bin/bash
brew install dnsmasq
cp $(brew list dnsmasq | grep /dnsmasq.conf.example$) /usr/local/etc/dnsmasq.conf
sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
echo "address=/<domain>/<ip-address>" >> /usr/local/etc/dnsmasq.conf
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq
sudo mkdir -p /etc/resolver
sudo tee /etc/resolver/<domain> >/dev/null <<EOF
Book*
Book me a flight
from? -> Book me a flight from?
Book me a flight from?
to? -> Book me a flight from? to?
Book me a flight from? to?
leaving? -> Book me a flight from? to? leaving?
Book me a flight from? to? leaving?
tonight -> END
END