Skip to content

Instantly share code, notes, and snippets.

sudo build

Soheil Rashidi soheilpro

sudo build
Block or report user

Report or block soheilpro

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
jay3sh /
Created Mar 30, 2016
Guard My Macbook When I'm Away
# When you are working on your macbook sitting in cafe and you have to go pee,
# you need some way to guard you machine.
# Start this script, remove any earphones, and go do the job.
# The assumption is the thief will close the lid of the laptop before taking it away.
# This script detects the closing of the lid and plays some loud audio that will
# likely distract the thief and/or grab attention of nearby people, making the
LeCoupa / nodejs-cheatsheet.js
Last active Oct 13, 2019
Complete Node.js CheatSheet --> UPDATED VERSION -->
View nodejs-cheatsheet.js
/* *******************************************************************************************
* ******************************************************************************************* */
// 0. Synopsis.
harith /
Last active Nov 8, 2018
Utilities to let you easily reach frequently visited but deeply nested directories.
# Utilities for quickly accessing frequently used directories in bash.
# Usage:
# $ cd /path/to/project/src/
# $ mark code # Will create a new shortcut.
# # Becomes interactive if a shortcut already exists
# # m is an alias for mark. You can also `m code`
# $ code # From now on, running this anywhere in the shell
# # will put you in /path/to/project/src/code
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

sfider / LOOProfiling.h
Created Jul 8, 2012
Objective-C macro for measuring execution time of block of code.
View LOOProfiling.h
// LOOProfiling.h
// Created by Marcin Swiderski on 4/12/12.
// Copyright (c) 2012 Marcin Swiderski. All rights reserved.
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
caseyohara / reserved_usernames.rb
Created Dec 9, 2011
A list of reserved usernames to avoid vanity URL collision with resource paths
View reserved_usernames.rb
# A list of possible usernames to reserve to avoid
# vanity URL collision with resource paths
# It is a merged list of the recommendations from this Quora discussion:
# Country TLDs found here:
# Languages found here:
View git-vbranch
# Copyright (c) 2010, Nicolas Pouillard
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
You can’t perform that action at this time.