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
#!/bin/bash | |
# Use this to convert a database from latin1 (or any other) encoding to utf8 enconding | |
# Written by [email protected]: http://www.ninjaconcept.com/ | |
# MySQL Hostname | |
DBHOST='localhost' | |
# MySQL Username | |
DBUSER='root' | |
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
de: | |
errors: | |
messages: | |
not_found: "Nicht gefunden" | |
already_confirmed: "ist bereits bestätigt" | |
not_locked: "war nicht gesperrt" | |
devise: | |
failure: | |
unauthenticated: 'Du musst dich zuerst anmelden.' |
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
# application_controller.rb | |
before_filter :default_hosts | |
# set dynamically to always correct paths and urls (dev, stage, testing) | |
def default_hosts | |
ActionController::Base.default_url_options[:host] = request.host_with_port | |
ActionMailer::Base.default_url_options[:host] = request.host_with_port | |
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
############################################################# | |
# Campfire | |
############################################################# | |
after :deploy, 'campfire:notify' | |
namespace :campfire do | |
require 'tinder' | |
load File.join(File.dirname(__FILE__), 'initializers/campfire_config.rb') |
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
#!/bin/bash | |
#set -x | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs | |
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
- ST2, bash, chrome: http://www.damln.com/log/setup/
OlderNewer