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 -x | |
# This should be your "script/ci" checked into version control, and then wired as your sole build step in Jenkins. | |
# | |
# Simplifying Assumptions: | |
# | |
# * You build all branches | |
# * You want to deploy all branches. | |
# * You wired up an SSH key to your CI server appropriately so it can talk to your deployment target(s) via Cap |
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 FlashHelper | |
# Output a series of divs with the class being the flash type, and the content being the flash message | |
def render_flashes | |
flash.inject(String.new.html_safe) do |html, (key, value)| | |
content_tag(:div, value, :class => key) | |
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
#!/bin/bash | |
export DISPLAY=":$(ps -ef|grep '.*nxagent.*-[D].*' | cut -d':' -f5).0" | |
xhost +SI:localuser:pair |
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
Whois Server Version 2.0 | |
Domain names in the .com and .net domains can now be registered | |
with many different competing registrars. Go to http://www.internic.net | |
for detailed information. | |
Domain Name: CODECITE.COM | |
Registrar: DOTSTER, INC. | |
Whois Server: whois.dotster.com | |
Referral URL: http://www.dotster.com |
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
# make sure you ignore this file | |
.rvmrc_override |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqWQntHW/fOBViCrIoNSp9YqEs0bUyJdLyBgTvXwwu4GaGt+7JVxxTOfLN6QWXJsVoMPpn8iR3a67H78SImmy8gfxI2BZKf+76+24TiwG/j+8ODuE/Hpl78ptU28TosUcL5FGszEn2FuBO4SS6jVUa9zr8KztU8CNBcVcX5GIumS85H2Xk9TJLiyUpVyEyILTuSfrBDgM8gvsZG60xQNVIjVzXqHRVIG+vZvEXTX9ooiDVcgXyACD7iloHCvAOliOTBlfvRQ/QbOkh/7g2mb4L4CJyFzEM7elWYt9+gsgQ1KkP1Epg9Lq8hrNqep5QOin2px9z87hghhKlonSNdoj7 rsanheim@pema.local |
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
root@ci:/etc/init.d# cat Xvfb | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: Xvfb | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: | |
# X-Start-Before: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: |
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
# when you can't use --trace for whatever reason... | |
desc "Turn on trace during the rake call chain" | |
task :turn_on_trace do | |
Rake.application.options.trace = true | |
end | |
# then in your dependency chain put that task first | |
task :foo => [:turn_on_trace, :one, :two, :etc] |
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
Spork.prefork do | |
require "rails/application" | |
# Prevent Devise from loading the User model super early with it's route hacks for Rails 3.1 rc4 | |
# see also: https://github.com/timcharper/spork/wiki/Spork.trap_method-Jujutsu | |
Spork.trap_method(Rails::Application, :reload_routes!) | |
Spork.trap_method(Rails::Application::RoutesReloader, :reload!) | |
# rest of your prefork here... | |
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
^C^C^C[pallet (master)(-solo-)⚡] mvn install -e -U | |
+ Error stacktraces are turned on. | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building pallet | |
[INFO] task-segment: [install] | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom |