- Is email setup properly
- New relic setup to recieve errors, performance stats, availability check.
- Exception mailer wired up for exceptions
- Wire up a settings library ( https://github.com/viatropos/cockpit or https://github.com/wycats/moneta or a simple settings file )
- Wireup a few basic initializers containing extension methods for Strings, Time etc,. (create a gem for this?)
- Setup capistrano
- Setup foreman (with upstart export templates)
- Setup logrotate for the production.log
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
| #!/bin/bash | |
| #script to install all the required software | |
| #update the system | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade -y | |
| sudo apt-get upgrade -y | |
| #install required software | |
| sudo apt-get install vim-gnome curl git-core bison build-essential zlib1g-dev libssl-dev libreadline6-dev libxml2-dev autoconf libxslt1-dev ctags gitk git-gui -y |
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 dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-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
| # USAGE: Hash.from_xml:(YOUR_XML_STRING) | |
| require 'nokogiri' | |
| # modified from http://stackoverflow.com/questions/1230741/convert-a-nokogiri-document-to-a-ruby-hash/1231297#1231297 | |
| class Hash | |
| class << self | |
| def from_xml(xml_io) | |
| begin | |
| result = Nokogiri::XML(xml_io) | |
| return { result.root.name.to_sym => xml_node_to_hash(result.root)} |
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
| /* Prelude.cs : What happens when a haskell programmer learns C#. | |
| Copyright (c) 2011 Clark Gaebel | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the "Software"), | |
| to deal in the Software without restriction, including without limitation | |
| the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| and/or sell copies of the Software, and to permit persons to whom the | |
| Software is furnished to do so, subject to the following conditions: |
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
| PROJECT_PARENT_DIRS[0]="$HOME/code" | |
| for PARENT_DIR in ${PROJECT_PARENT_DIRS[@]} ; do | |
| if [ -d "$PARENT_DIR" ]; then | |
| for PROJECT_DIR in $(/bin/ls $PARENT_DIR); do | |
| if [ ! -z `which $PROJECT_DIR` ]; then | |
| continue # don't set alias if there is something already a command on the path with the same name | |
| fi | |
| if [ -d "$PARENT_DIR/$PROJECT_DIR" ]; then | |
| alias "$PROJECT_DIR"="cd $PARENT_DIR/$PROJECT_DIR" |
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
| defaults: &defaults | |
| default_from: [email protected] | |
| cdn: false | |
| development: | |
| <<: *defaults | |
| test: | |
| <<: *defaults |
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
| #!/bin/bash | |
| # Define tmpfile | |
| tmpfile=/tmp/mirrorlisttmp | |
| # Determine architecture type | |
| archtype=$(uname -m) | |
| # Get latest mirror list and save to tmpfile | |
| wget -O $tmpfile "http://www.archlinux.org/mirrorlist/?country=United+States&protocol=ftp&protocol= \ |
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
| worker: QUEUE=* bundle exec rake environment resque:work | |
| scheduler: bundle exec rake environment resque:scheduler |
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
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |