Skip to content

Instantly share code, notes, and snippets.

View farazhussain's full-sized avatar

Faraz Hussain farazhussain

View GitHub Profile
@vreon
vreon / distractions.sh
Created March 18, 2011 01:16
Cheesy script to encourage productivity by blocking time sinks at the DNS level
#!/bin/bash
function usage {
echo "Usage: distractions [on/off]"
exit
}
if [ $# -eq 0 ]; then
usage
fi
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 19:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pajtai
pajtai / svn-to-git.md
Created October 12, 2012 16:12
3 steps for migrating from SVN to GIT

3 steps for migrating from SVN to GIT

assuming password protected svn repo with standard trunk, branches, tags setup

Step 1

svn2git http://svn.example.com/path/to/repo --username [USERNAME] --verbose
@mawenbao
mawenbao / Makefile
Created February 26, 2014 05:16
googletest simple example
# Makefile for gtest examples
GOOGLE_TEST_LIB = gtest
GOOGLE_TEST_INCLUDE = /usr/local/include
G++ = g++
G++_FLAGS = -c -Wall -I $(GOOGLE_TEST_INCLUDE)
LD_FLAGS = -L /usr/local/lib -l $(GOOGLE_TEST_LIB) -l pthread
OBJECTS = main.o string-compare.o
@mubeeniqbal
mubeeniqbal / i3status.conf
Last active April 23, 2024 11:39
Config file for i3status.
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
output_format = "i3bar"
@jensens
jensens / config
Created February 10, 2015 19:19
.i3/config
# jensens i3wm config
set $mainscreen LVDS1
set $sidescreen VGA1
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4