-
Creating a launchd Property List File
Create a launchd property list file, and paste the followin snippet at
/Library/LaunchDaemons/limit.maxfiles.plist
.<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
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
code | title | |
---|---|---|
111110 | Soybean Farming | |
111120 | Oilseed (except Soybean) Farming | |
111130 | Dry Pea and Bean Farming | |
111140 | Wheat Farming | |
111150 | Corn Farming | |
111160 | Rice Farming | |
111191 | Oilseed and Grain Combination Farming | |
111199 | All Other Grain Farming | |
111211 | Potato Farming |
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
/* Tested on PostgreSQL 9.6 */ | |
CREATE OR REPLACE FUNCTION iso_8601_timestamp(datetime TIMESTAMP WITH TIME ZONE) | |
RETURNS VARCHAR AS $$ | |
BEGIN | |
RETURN to_char(datetime::TIMESTAMPTZ AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"'); | |
END; | |
$$ | |
LANGUAGE PLPGSQL; |
I hereby claim:
- I am drydevelopment on github.
- I am dyoder (https://keybase.io/dyoder) on keybase.
- I have a public key whose fingerprint is 5E4A F507 C554 9FEF 68C4 0224 62D3 5EC7 847F E4C3
To claim this, I am signing this object:
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
# The resque-scheduler process would not respond to `kill -s QUIT [pid]`, and | |
# after a long time diagnosing the problem I found that the source of the problem | |
# was Newrelic. YAY! Disabling newrelic | |
task :disable_newrelic do | |
set :bundle_cmd, "NEWRELIC_ENABLE=false #{bundle_cmd}" | |
end | |
before "resque:start", "disable_newrelic" | |
before "resque:scheduler:start", "disable_newrelic" |
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
/** | |
* Override window.setInterval to auto-call the function argument | |
* and bypass the delay to keep tests snappy. | |
*/ | |
window.setInterval = function(func, delay) { | |
func.call(); | |
}; |
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
jasmine.ConsoleReporter = function(showColors) | |
{ | |
if (!showColors) | |
showColors = true | |
var ansi = { | |
green: '\033[32m', | |
red: '\033[31m', | |
yellow: '\033[33m', |
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
module Within3 | |
module Setup | |
module RVM | |
def self.install | |
puts "Installing RVM..." | |
exec "curl -s https://rvm.beginrescueend.com/install/rvm | bash" | |
puts "RVM installed!" | |
end | |
end | |
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
install_everything(){ | |
install_homebrew | |
install_git | |
install_imagemagick | |
install_memcached | |
install_sphinx | |
install_rvm | |
# install_mysql # Install from http://dev.mysql.com/downloads/mysql/5.1.html | |
# install_passenger | |
install_big_red |
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
Using RSpec | |
Preloading Rails environment | |
Loading Spork.prefork block... | |
No server is running | |
Running specs locally: | |
Spork is ready and listening on 8989! |
NewerOlder