This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# patch for make ruby error | |
# % rbenv install 1.8.7-p375 | |
# ... | |
# ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function) | |
# ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once | |
# ossl_pkey_ec.c:815: error: for each function it appears in.) | |
# make[1]: *** [ossl_pkey_ec.o] error 1 | |
# ... | |
# | |
# refs: http://forums.cpanel.net/f5/case-84173-error-installing-ruby-377831.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find .-name .DS_Store -print0 | xargs -0 git-rm --ignore-unmatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e '(0..23).cycle{|f|print "\r"+[128336+f].pack("U")+" ";sleep 0.2}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yell' | |
require 'toadhopper' | |
class AirbrakeAdapter < Yell::Adapters::Base | |
setup do |options| | |
@env = options[:environment] | |
@airbrake = Toadhopper(options[:api_key]) | |
end | |
write do |event| | |
if event.message.respond_to?(:backtrace) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubygems" | |
require "haml" | |
class MethodMissingString < String | |
def method_missing(m, *args, &block) | |
args = args.collect do |arg| | |
arg.is_a?(MethodMissingString) ? arg : "\"#{arg}\"" | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// Usage: | |
// | |
// <script src='http://pressly.com/redirect.js' type='text/javascript'></script> | |
// <script>Pressly.redirect("http://tablet.domain.com");</script> | |
// | |
/* >> Generated code from Issue Config */ | |
// Supported devices to redirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p:hover:after { | |
content: attr(data-small); | |
display: block; | |
border: 1px solid red; | |
position:absolute; | |
bottom: 0; | |
right: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p:hover:after { | |
content: attr(data-small); | |
display: block; | |
border: 1px solid red; | |
position:absolute; | |
bottom: 0; | |
right: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Font Techniques */ | |
body { | |
background: white; | |
} | |
p { | |
text-align: center; | |
box-shadow: inset 0px 0px 5px rgba(0,0,0,0.3); | |
margin: 10px auto; |