Skip to content

Instantly share code, notes, and snippets.


Hasnain Bukhari BukhariH

Block or report user

Report or block BukhariH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Lewiscowles1986 / adapter-passthrough
Last active Mar 11, 2019
Allows passthrough for bridges, wireless access-point's and range extenders
View adapter-passthrough
if [ "$EUID" -ne 0 ]
then echo "Must be root"
# Allow overriding from eth0 by passing in a single argument
Lewiscowles1986 /
Last active Dec 12, 2019
Raspberry Pi 3 access-point-setup
# This version uses September 2017 august stretch image, please use this image
if [ "$EUID" -ne 0 ]
then echo "Must be root"
gtallen1187 /
Created Nov 2, 2015
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.


View gist:5fc18c659814c078378d
package main
import (
kevin-smets /
Last active Jan 26, 2020
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)





chrisdarroch / idea
Created Oct 17, 2013
Open a project in IntelliJ IDEA from your command line!
View idea
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
zobar / gist:1499822
Created Dec 20, 2011
Running a Cinch IRC bot on Heroku
View gist:1499822
  1. Add Heroku to your Gemfile and bundle install.
  2. Create your Heroku app. This will only work with their (currently-beta) 'cedar' stack, so you have to heroku create --stack=cedar.
  3. Create a Procfile for your bot. This tells Heroku how to run your worker. In our case, the bot is bot.rb, so the only line in the Procfile is cinch: bundle exec ./bot.rb
  4. Commit and push to Heroku.
  5. You do not want a Web worker running, so heroku scale web=0 cinch=1. This also sets up your deployments to restart the bot.
You can’t perform that action at this time.