Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Hasnain Bukhari BukhariH

🎯
Focusing
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
Lewiscowles1986 / adapter-passthrough
Last active Mar 11, 2019
Allows passthrough for bridges, wireless access-point's and range extenders
View adapter-passthrough
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
ADAPTER="eth0"
# Allow overriding from eth0 by passing in a single argument
@Lewiscowles1986
Lewiscowles1986 / rPi3-ap-setup.sh
Last active Dec 3, 2019
Raspberry Pi 3 access-point-setup
View rPi3-ap-setup.sh
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
@gtallen1187
gtallen1187 / slope_vs_starting.md
Created Nov 2, 2015
A little bit of slope makes up for a lot of y-intercept
View slope_vs_starting.md

"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.

[Laughter]

View gist:5fc18c659814c078378d
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Dec 6, 2019
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@chrisdarroch
chrisdarroch / idea
Created Oct 17, 2013
Open a project in IntelliJ IDEA from your command line!
View idea
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# 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
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.