Skip to content

Instantly share code, notes, and snippets.

Spencer Hakim spencerhakim

Block or report user

Report or block spencerhakim

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
View .bash_profile
function __better_git_ps1 {
local GIT_PS1=`__git_ps1 "%s"`
set -f
local GIT_PS1_ARR=($GIT_PS1)
set +f
if [ "$GIT_PS1" ]; then
if [ ${#GIT_PS1_ARR[0]} -ge 20 ]; then
GIT_PS1=`printf "%.20s... %s" \
spencerhakim / Sandman.cs
Last active Dec 23, 2015
Sandman - simple program to immediately put my monitors to sleep when I'm going to bed, and keep them off for a certain amount of time. Got tired of simply waiting for my screens to turn off by themselves (since I never actually put my desktop to sleep), only to be randomly woken up by my mouse shifting a pixel due to some sensor noise or someth…
View Sandman.cs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You can’t perform that action at this time.