View bumpme
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
Wed Sep 28 22:21:18 UTC 2016 |
View test.sh
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
exit_code=0 | |
echo ">>> Testing main app" | |
if [ -z "$(which bundle)" ]; then | |
gem install bundler | |
fi | |
bundle install | grep Installing | |
bundle exec rspec | |
exit_code+=$? |
View build.sh
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 | |
# BEFORE RUNNING: remember to "cp .env-example .env" in order for the tests | |
# to pick up the required environment variables! | |
unset BUNDLE_GEMFILE | |
result=0 | |
if [ "$CI" == "true" ]; then | |
BUNDLE_PATH="$HOME/vendor/bundle" |
View how_to_report_flaky_test
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: |
View bue
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 | |
# BUNDLE UPDATE ENHANCER | |
# Preconditions: | |
# all components must have a Gemfile | |
# all components must use RVM and have a .ruby-version and .ruby-gemset | |
if [ $# -eq 0 ]; then | |
echo "💔 No arguments supplied!" | |
echo "You must provide the name of the gem you want to update in your main app and all your components." |
View ruby_styleguide_wrapper.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
module Styleguide | |
class BaseTag < Mustache | |
def initialize(parameters={}) | |
@parameters = parameters | |
end | |
def self.base_path | |
"#{Styleguide::Engine.root}/app/assets/mustache/ui_component" | |
end |
View gist:4bc8377e4f54c28a3320
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 |
View gist:3b21d1e03a391570038f
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 |
View gist:367027f38aff3523de67
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 |
View gist:9663729
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 |
NewerOlder