CLICK ME
yes, even hidden code blocks!
print("hello world!")| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| require 'simplecov' | |
| require 'simplecov-lcov' | |
| puts('Merging coverage results from parallel CircleCI tests containers into a single LCOV report...') | |
| results = [] | |
| Dir['/home/circleci/rspec/*.resultset.json'].each do |path| |
It's important to note that running this reset will drop any existing data you have in the application
heroku restartheroku pg:reset DATABASE (no need to change the DATABASE)heroku run rake db:migrateheroku run rake db:seed (if you have seed)One liner
CTRL+Q - Turns on flow-control (if you turned it off by mistake)CTRL+a - increment number:cw - toggle quickfix listCTRL+E - scroll window down (cursor stays)CTRL+Y - scroll window up (cursor stays):r - retrive (:r filename - loads file at cursor. :r !ls - loads ls at cur):x - exit (with save)| # | |
| # This first version should work on Mac OS X and Linux, but it spawns a process | |
| # | |
| # http://stackoverflow.com/questions/7220896/ | |
| # https://github.com/rdp/os/blob/master/lib/os.rb#L127 | |
| # http://www.ruby-doc.org/core-2.0/Process.html | |
| # | |
| # A better - but more complicated - way to achieve the same is documented here: | |
| # | |
| # https://build.betterup.com/tracking-a-processs-memory-usage-in-ruby/ |
| # abort if already under tmux | |
| [[ -n $TMUX_PANE ]] && return | |
| # zsh-specific includes | |
| zmodload -i zsh/datetime | |
| zmodload -i zsh/stat | |
| # place to store the chart | |
| RAINBARF_OUT=~/.rainbarf.out | |
| # update period, in seconds |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: