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
# Source: https://github.com/rspec/rspec-rails/issues/1353#issuecomment-93173691 | |
# Add to spec/spec_helper.rb | |
puts "rspec pid: #{Process.pid}" | |
trap 'USR1' do | |
threads = Thread.list | |
puts |
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
// Sort json by object keys | |
function sortObject(object){ | |
var sortedObj = {}, | |
keys = Object.keys(object); | |
keys.sort(function(key1, key2){ | |
key1 = key1.toLowerCase(), key2 = key2.toLowerCase(); | |
if(key1 < key2) return -1; | |
if(key1 > key2) return 1; |
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
DOCKER_OPTS="--storage-driver overlay --exec-opt native.cgroupdriver=cgroupfs" |
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
python -m SimpleHTTPServer |
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
git log vish ^master --no-merges | |
* SWF support | |
* f6c529f875fe6096960f5e04fda1e55ec008b42c it works? | |
* d41a87b3b114f87717e4e248fce96b95bfe55c0e new form | |
* bb6eae831e033231bc57996d532ae0a1c9858ba3 it works? | |
* 161a9a91cf6ebd95cb9ac534506e8de6e884bd24 office document | |
* f6a0d47c18aa9ec493a0d7bce19cd643eb4a0a8d thumbnail styles for vish | |
* b529972d8a5bbdbbf24a18070b17a9fd17778e61 Create post_activity after draft only | |
* 7e0b5951311b2fa84cced8ca310054e0b65f760b and destroy??? |
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
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls" rvm install 1.8.7 |
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
DEBUG_RESOLVER=true bundle |
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
create database db_name; | |
grant all privileges on db_name.* to user_name@localhost identified by 'password'; |
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
# Quick script used to import social_stream-* tags to social_stream's repository | |
Dir["*tags"].inject({}) { |res, f| | |
res[f[0..-6]] = File.read(f).split("\n") | |
res | |
}.each_pair{ |repo, tags| | |
tags.each { |tag| | |
commit = `cd ../social_stream-#{ repo } && git show #{ tag }`.split("\n"). | |
select{ |l| l =~ /^commit/ }. | |
first. | |
gsub("commit ", "") |
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
--- a/ext/openssl/ossl_ssl.c | |
+++ b/ext/openssl/ossl_ssl.c | |
@@ -101,9 +101,11 @@ | |
OSSL_SSL_METHOD_ENTRY(TLSv1), | |
OSSL_SSL_METHOD_ENTRY(TLSv1_server), | |
OSSL_SSL_METHOD_ENTRY(TLSv1_client), | |
+/* | |
OSSL_SSL_METHOD_ENTRY(SSLv2), | |
OSSL_SSL_METHOD_ENTRY(SSLv2_server), | |
OSSL_SSL_METHOD_ENTRY(SSLv2_client), |
NewerOlder