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
module FactoryGirl | |
module Doctor | |
module FloatDuration | |
refine Float do | |
def duration | |
t = self | |
format("%02d:%02d.%03d", t / 60, t % 60, t.modulo(1) * 1000) | |
end | |
end | |
end |
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
•100% [I] ➜ rvm get master && rvm list known | |
Downloading https://get.rvm.io | |
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc | |
Verifying /Users/jpowell/.rvm/archives/rvm-installer.asc | |
gpg: Signature made Sat Sep 9 15:49:18 2017 EDT | |
gpg: using RSA key E206C29FBF04FF17 | |
gpg: Good signature from "Michal Papis (RVM signing) <[email protected]>" [unknown] | |
gpg: Note: This key has expired! | |
Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3 | |
Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17 |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: example | |
namespace: default | |
data: | |
APPLICATION_HOST: example.com | |
LANG: en_US.UTF-8 | |
PIDFILE: /tmp/server.pid | |
PORT: "3000" |
If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:
echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes
I suggest you edit your /etc/rc.local
file to make this change persistant across reboots.
sudo nano /etc/rc.local
├── bin
│ └── console
├── config
│ └── evil_martians_api.yml
├── lib
│ ├── evil_martians_api
│ │ ├── api
│ │ │ └── developers.rb
│ │ ├── client
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
# frozen_string_literal: true | |
# A VCR trick to include preparation and cleanup phases for external services | |
# directly within the test files (the phases run ONLY when recording cassettes): | |
# | |
# RSpec.describe EvilMartiansAPI::Client, vcr: true do | |
# let(:client) { described_class.new } | |
# | |
# let(:developer_team_number) { 42 } | |
# |
OlderNewer