- Kent Beck: "A man cannot be comfortable without his own approval" - Mark Twain *
- DHH @ 00:26:00: Rails API and Action Cable
- Tenderlove: Just watch
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
# example: replacing :mocha with :rspec as mock framework | |
find . -name '*_spec.rb' -exec sed -i.old -e 's/returns/and_return/' {} \; | |
find . -name '*_spec.rb' -exec sed -i.old -e 's/expects/should_receive/' {} \; | |
find . -name '*_spec.rb' -exec sed -i.old -e 's/stubs/stub/' {} \; | |
find . -name '*.old' -exec rm {} \; |
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
# flags orphaned from forum topics (discussions) | |
Flag.joins("LEFT OUTER JOIN forum_topics ON flags.flaggable_id = forum_topics.id").where('forum_topics.id IS NULL').where(flaggable_type: 'ForumTopic') | |
# flags orphaned from comments | |
Flag.joins("LEFT OUTER JOIN comments ON flags.flaggable_id = comments.id").where('comments.id IS NULL').where(flaggable_type: 'Comment') |
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
# I18n::Backend::Transliterator::HashTransliterator::DEFAULT_APPROXIMATIONS.to_yaml | |
--- | |
À: A | |
Á: A | |
Â: A | |
Ã: A | |
Ä: A | |
Å: A | |
Æ: AE | |
Ç: C |
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
lsnginx() { | |
ps -A -o pid,command | grep '[n]ginx' | |
} | |
startnginx() { | |
sudo nginx -c /web/platform/config/nginx/nginx.conf | |
} | |
startnginxssl() { | |
sudo nginx -c /web/platform/config/nginx/nginx.ssl.conf |
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
test: | |
solr: | |
hostname: localhost | |
port: 9008 | |
log_level: WARNING | |
solr_home: solr | |
development: | |
solr: | |
hostname: localhost |
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
SELECT CONCAT(table_schema, '.', table_name), | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, | |
ROUND(index_length / data_length, 2) idxfrac | |
FROM information_schema.TABLES | |
ORDER BY data_length + index_length DESC | |
LIMIT 10; |
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 'erb' | |
puts "Generating nginx config..." | |
app_root = Dir.getwd | |
app_name = File.basename(app_root) | |
public_path = File.join(app_root, 'public') |
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
$ npm install --save-dev ember-cli@0.2.3 | |
> ws@0.5.0 install /Users/ross/dev/challengepost/bridge/node_modules/ember-cli/node_modules/testem/node_modules/socket.io/node_modules/engine.io/node_modules/ws | |
> (node-gyp rebuild 2> builderror.log) || (exit 0) | |
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o | |
SOLINK_MODULE(target) Release/bufferutil.node | |
SOLINK_MODULE(target) Release/bufferutil.node: Finished | |
CXX(target) Release/obj.target/validation/src/validation.o | |
SOLINK_MODULE(target) Release/validation.node |
AWS OpsWorks features an integrated management experience for the entire application lifecycle including resource provisioning, configuration management, application deployment, monitoring, and access control. It will work with applications of any level of complexity and is independent of any particular architectural pattern.
- Configure instances
- Automate provisioning
OlderNewer