Skip to content

Instantly share code, notes, and snippets.

View yogsototh's full-sized avatar

Yann Esposito yogsototh

View GitHub Profile
@yogsototh
yogsototh / gist:2300481
Created April 4, 2012 11:34
brew mirror-check wget fail
brew mirror-check wget
==> Testing mirrors for wget
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.bz2
Warning: Failed to create the file
Warning: /Library/Caches/Homebrew/wget-1.13.4.tar.bz2: No such file or
Warning: directory
0,1%
curl: (23) Failed writing body (0 != 1183)
Error: uninitialized constant Formula::DownloadError
Please report this bug:
@yogsototh
yogsototh / gist:1670514
Created January 24, 2012 14:46
Solarized Readable bookmark
javascript:(function(){_readableOptions={'text_font':'Goergia,%20Palatino','text_font_monospace':'Inconsolata','text_font_header':'quote(Times%20New%20Roman),%20Times,%20serif','text_size':'20px','text_line_height':'1.5','box_width':'30em','color_text':'#657B83','color_background':'#FDF6E3','color_links':'#B58900','text_align':'justified','base':'web_readability','custom_css':'pre%20{%20%20%20%20background-color:%20#EEE8D5;%20%20%20%20color:%20#586E75;%20%20%20%20padding:%201em;%20%20%20%20overflow:%20auto;}'};if(document.getElementsByTagName('body').length>0);else{return;}if(window.$readable){if(window.$readable.bookmarkletTimer){return;}}else{window.$readable={};}window.$readable.bookmarkletTimer=true;window.$readable.options=_readableOptions;if(window.$readable.bookmarkletClicked){window.$readable.bookmarkletClicked();return;}_readableScript=document.createElement('script');_readableScript.setAttribute('src','http://readable-static.tastefulwords.com/target.js?rand='+encodeURIComponent(Math.random()));docum
@yogsototh
yogsototh / yesodfib.hs
Created October 4, 2011 15:05
Yesod cure the "Node.js is cancer"
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses,
TemplateHaskell, OverloadedStrings #-}
import Yesod
data YesodFib = YesodFib
mkYesod "YesodFib" [parseRoutes|
/ HomeR GET
|]
@yogsototh
yogsototh / reverseScrolling.ahk
Created August 12, 2011 11:07
Inverse Wheel movement on windows using HotKeys
; Reverse Scrolling Script by How-To Geek
;
; http://www.autohotkey.com/docs/Tutorial.htm
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
WheelUp::
Send {WheelDown}
@yogsototh
yogsototh / about.md
Created August 9, 2011 13:39 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@yogsototh
yogsototh / about.md
Created August 9, 2011 13:31 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
def gitmtime
# find file extension
filepath=@item.path.sub('/Scratch/','content/html/').sub(/\/$/,'')
['md','erb','haml'].each do |ext|
tmppath=%{#{filepath}.#{ext}}
if FileTest.exists?(tmppath)
filepath=tmppath
break
end
end