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
# lib/tasks/kill_postgres_connections.rake | |
desc "Kills postgres connections" | |
task :kill_postgres_connections => :environment do | |
yml_file = Rails.root.join('config/database.yml') | |
db_settings = YAML::load(File.open(yml_file))[Rails.env] | |
db_name = db_settings['database'] | |
sh = <<EOF | |
ps -e | | |
grep postgres: | | |
grep #{db_name} | |
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
Failures: | |
1) Appearance Choosing template panel | |
Failure/Error: page.find("div#settings-panel").should_not be_visible | |
expected visible? to return false, got true | |
# ./spec/acceptance/admin/appearance_spec.rb:42:in `block (2 levels) in <top (required)>' | |
2) Appearance Choosing settings panel | |
Failure/Error: page.find("div#template-panel").should_not be_visible | |
expected visible? to return false, got true |
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
div.gist-file .line{border:none} | |
.gist{font-size:small;line-height:1} | |
pre{background:#F3F3F7;border:1px solid #DEDEE3;font-family:Consolas, Monaco, "Courier New", Courier, monospace;font-size:12px;font-weight:inherit;line-height:1.3em;margin-bottom:22px;overflow:auto;padding:11px} | |
code,pre{color:#000;font-family:Consolas, Monaco, "Courier New", Courier, monospace} |
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
# c == ctrl | |
# Note capital letters marks the use of shift. | |
# ! will force your command. | |
# Navigation | |
h Moves left. | |
j Moves down. | |
k Moves up. | |
l Moves right. | |
H Moves the cursor to the top of the screen. |
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/ # This is kept for legacy purposes | |
+ bundle/ # Pathogen loads your bundles from here | |
+ snippets/ # Here snipmate snippets go | |
- gvimrc # Settings for the gvim only (mvim) | |
- vimrc # Settings for global vim | |
- bootstrap.sh # Will copy your gvimrc and vimrc to your homedir, and backup your old files to .old |
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
ssh [email protected] | |
mkdir my_project.git | |
cd my_project.git | |
git init --bare | |
git-update-server-info # If planning to serve via HTTP | |
exit | |
#--- | |
cd my_project |
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
# include these into your .bashrc | |
alias mysqlstart='sudo port load mysql5-server' | |
alias mysqlstop='sudo port unload mysql5-server' | |
alias apacherestart='sudo /opt/local/apache2/bin/apachectl -k restart' |
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
# You need to edit php.ini to point it to the right mysqld.sock | |
sudo vim /opt/local/etc/php5/php.ini | |
mysqli.default_socket =/opt/local/var/run/mysql5/mysqld.sock | |
# After which you can run the script below to complete your installation | |
/opt/local/lib/mysql5/bin/mysql_secure_installation |
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
# Will install a mamp stack | |
sudo port install apache2 php5 | |
sudo port install mysql5-server php5-mysql php5-mcrypt |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.2.1</version> | |
<configuration> | |
<autoVersionSubmodules>true</autoVersionSubmodules> | |
<preparationGoals>grails:set-version scm:checkin clean install</preparationGoals> | |
<completionGoals>grails:set-version scm:checkin</completionGoals> | |
<goals>scm:checkin</goals> |
NewerOlder