This file contains hidden or 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
# Description: | |
# Get a random quote from The Big Lebowski. | |
# | |
# Dependencies: | |
# "htmlparser": "1.7.6" | |
# "soupselect": "0.2.0" | |
# "underscore": "1.3.3" | |
# "underscore.string": "2.3.0" | |
_ = require("underscore") |
This file contains hidden or 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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
126.com | |
150ml.com | |
15meg4free.com |
This file contains hidden or 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
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains hidden or 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
module PAS | |
RedisConfig = File.join(Rails.root, "config", "redis.yml") | |
def self.redis | |
return @redis if @redis | |
@redis = Redis.new(YAML::load(File.open(RedisConfig))) | |
end | |
def self.redis=(redis) | |
@redis = redis |
This file contains hidden or 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
`brew install redis` | |
`sudo mate /Library/LaunchDaemons/org.redis.redis-server.plist` | |
...enter content... | |
`sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist` | |
`sudo launchctl start org.redis.redis-server` |