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
/opt/boxen/repo/bin/librarian-puppet install --path=/opt/boxen/repo/shared --verbose | |
[Librarian] Ruby Version: 2.0.0 | |
[Librarian] Ruby Platform: universal.x86_64-darwin13 | |
[Librarian] Rubygems Version: 2.0.3 | |
[Librarian] Librarian Version: 0.0.24 | |
[Librarian] Librarian Adapter: puppet | |
[Librarian] Project: /opt/boxen/repo | |
[Librarian] Specfile: Puppetfile | |
[Librarian] Lockfile: Puppetfile.lock | |
[Librarian] Git: /opt/boxen/homebrew/bin/git |
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
upstream blog_unicorn { | |
server unix:/home/vagrant/tmp/sockets/blog_unicorn.sock fail_timeout=0; | |
} | |
upstream redirector_unicorn { | |
server unix:/home/vagrant/tmp/sockets/redirector_unicorn.sock fail_timeout=0; | |
} | |
server { | |
server_name example.com; | |
listen 80; ## listen for ipv4; this line is default and implied |
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
eteotti:~/lab/rich_text_editor/raptor/raptor-build (master) |$ sudo ./bin/update | |
No log handling enabled - using stderr logging | |
Created directory: /var/db/net-snmp | |
Created directory: /var/db/net-snmp/mib_indexes | |
<a href='..'>..</a><br/><a href='README.md'>README.md</a><br/><a href='bin'>bin</a><br/><a href='build'>build</a><br/><a href='package.json'>package.json</a><br/><a href='scripts'>scripts</a><br/>sh: /Users/eteotti/lab/rich_text_editor/raptor/raptor-build/bin/build: Permission denied |
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 Styleguide | |
class BaseTag < Mustache | |
def initialize(parameters={}) | |
@parameters = parameters | |
end | |
def self.base_path | |
"#{Styleguide::Engine.root}/app/assets/mustache/ui_component" | |
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
module Styleguide | |
class BaseTag < Mustache | |
def initialize(parameters={}) | |
@parameters = parameters | |
end | |
def self.base_path | |
"#{Styleguide::Engine.root}/app/assets/mustache/ui_component" | |
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
## Determine if it's a flaky test | |
If the test *consistently* fails locally it's not a flaky test and you should not commit to master. Period. | |
If the test *consistently* fails only on our CI build, you must ssh on the CI box: | |
``` | |
ssh yourCIserver | |
``` | |
then: |
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
require 'yaml' | |
class Company | |
attr_accessor :name, :street, :town, :state, :postcode, :phone, :website, :fax, :categories | |
end | |
y = File.open( "companies.yaml" ) | |
counter = 0 | |
yp = YAML::load_documents( y ) { |doc| |
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 | |
db_name=$1 | |
date_time=`date +%Y%m%d_%H%M_%S_` | |
file_name=${date_time}${db_name}.sql | |
echo "Dumping the database ${db_name} in ${file_name}..." | |
mysqldump5 pregnancy_directory_development --user=root > ${file_name} | |
echo "Sayonara" |
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 | |
db_name=$1 | |
date_time=`date +%Y%m%d_%H%M_%S` | |
file_name=${db_name}_${date_time}.sql | |
echo "Dumping the database ${db_name} in ${file_name}..." | |
mysqldump5 ${db_name} --user=root > ${file_name} | |
echo "Sayonara" |
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 | |
db_name=$1 | |
db_dump_file=$2 | |
echo "Dropping the database ${db_name}..." | |
mysqladmin5 drop ${db_name} --user=root | |
echo "Creating the database ${db_name}..." | |
mysqladmin5 create ${db_name} --user=root | |
echo "Restore structure and data from ${db_dump_file}" |
OlderNewer