Skip to content

Instantly share code, notes, and snippets.

@rdesfo
rdesfo / intel_ips.txt
Created August 3, 2013 19:25
intel ips 0000:00:1f.6: ME failed to update for more than 1s, likely hung
There is a work around
1. add intel_ips to the blacklist
blacklist intel_ips ==> to /etc/modprobe.d/blacklist.conf
2. add i915 and intel_ips to /etc/modules
i915/nintel_ips ==> to /etc/modules
http://crunchbang.org/forums/viewtopic.php?id=26105
@rdesfo
rdesfo / gist:6140379
Created August 2, 2013 14:41
pandoc error
pandoc: error while loading shared libraries: libbibutils.so.2: cannot open shared object file: No such file or directory
@rdesfo
rdesfo / gist:5625466
Created May 22, 2013 05:40
How to start working on GHC?
Download the GHC sources (git clone ...)
Run sync-all get. Presumably, this is a script to run multiple git commands for different repositories, as GHC consists of multiple ones.
Change whatever files I want changed.
Compile, run testsuite.
Commit, then somehow issue a pull request.
http://www.reddit.com/r/haskell/comments/1efw5l/how_to_start_working_on_ghc/
@rdesfo
rdesfo / gist:5625451
Created May 22, 2013 05:35
git recap
Recap
1. Initialize
$ git init
2. Add Changes
$ git add .
3. Committing a change
$ git commit -m "Some message"
Typically the monadic IO goes like this:
RunReset
main :: IO ()
main = putStrLn =<< getContents
@rdesfo
rdesfo / HappstackHeist.hs
Created May 7, 2013 16:38
happstack heist example
module Main where
import Control.Applicative ((<$>))
import Control.Monad (msum)
import qualified Data.Text as T
import Happstack.Server (dir, nullConf, nullDir, simpleHTTP, seeOther, toResponse)
import Happstack.Server.Heist (heistServe, initHeistCompiled)
import Heist (getParamNode)
import Heist.Compiled (Splice, yieldRuntimeText)
import qualified Text.XmlHtml as X
@rdesfo
rdesfo / gist:5465375
Created April 26, 2013 06:31
biostats boot camp wk 1 lecture
pexp(6, 1/5, lower.tail=FALSE)
# approximate exponential quantiles
qexp(.25, 1/5)
@rdesfo
rdesfo / fay error
Created November 19, 2012 10:06
fay error
fay-0.9.2.0 depends on uniplate-1.6.7 which failed to install.
language-ecmascript-0.10 depends on uniplate-1.6.7 which failed to install.
uniplate-1.6.7 failed during the building phase. The exception was:
ExitFailure 1
@rdesfo
rdesfo / background.rb
Created April 23, 2012 01:55
shoes_background
require 'shoes'
Shoes.app do
background "#DFA"
para "Welcome to Shoes"
end
@rdesfo
rdesfo / gist:2154113
Created March 21, 2012 23:25
bundle exec guard error
saasbook@saasbook:~/projects/tasks/app$ bundle exec guard
Guard uses NotifySend to send notifications.
Guard is now watching at '/home/saasbook/projects/tasks/app'
Guard::RSpec is running, with RSpec 2!
Running all specs
/home/saasbook/projects/tasks/minitest/ruby/1.9.1/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load': no such file to load -- /home/saasbook/projects/tasks/app/spec (LoadError)
from /home/saasbook/projects/tasks/minitest/ruby/1.9.1/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `block in load_spec_files'
from /home/saasbook/projects/tasks/minitest/ruby/1.9.1/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `map'
from /home/saasbook/projects/tasks/minitest/ruby/1.9.1/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load_spec_files'
from /home/saasbook/projects/tasks/minitest/ruby/1.9.1/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:22:in `run'