You should be able to drop this into your Cucumber 'hooks' directory, and the magic video-record-on-failure will kick in.
On Mac, this needs https://gist.github.com/sleekweasel/1aee7b339f3f6319dda0 too.
# $ crx `pwd` | |
function crx() { | |
~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=$@ --pack-extension-key=$@/key.pem | |
} |
h = { | |
'a' => :a_value, | |
'b' => nil, | |
'c' => false | |
} | |
h.fetch('a', :default_value) #=> :a_value | |
h.fetch('b', :default_value) #=> nil | |
h.fetch('c', :default_value) #=> false | |
h.fetch('d', :default_value) #=> :default_value |
You should be able to drop this into your Cucumber 'hooks' directory, and the magic video-record-on-failure will kick in.
On Mac, this needs https://gist.github.com/sleekweasel/1aee7b339f3f6319dda0 too.
#!/usr/bin/env ruby | |
print "What is the URL of your Apple Downloads resource?\nURL:" | |
url = gets.strip | |
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: " | |
token = gets.strip | |
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads" |
# Background: JRuby installs on Travis is painfully slow. The version which is preinstalled is very old. Here are some GitHub | |
# issues about it: | |
# | |
# https://github.com/travis-ci/docs-travis-ci-com/pull/743 | |
# https://github.com/travis-ci/travis-rubies/issues/22 | |
# https://github.com/travis-ci/travis-ci/issues/6892 | |
# https://github.com/travis-ci/packer-templates/issues/391 | |
# | |
# Since the upstream issue is still unresolved, and a JRuby install takes anywhere from 100 to 200 seconds (!), we decided to | |
# implement this workaround. With this in place, the JRuby install takes about 10 seconds. |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade | |
ln -s "/mnt/c/Users/Daniel/Documents/homeflow" ~/homeflow | |
ln -s "/mnt/c/Users/Daniel/Documents" ~/documents | |
mkdir .ssh | |
cp documents/id* .ssh/ | |
sudo chmod 600 .ssh/* | |
cd homeflow/attis | |
git pull |
image: Visual Studio 2017 | |
environment: | |
ffmpeg_download: https://ffmpeg.zeranoe.com/builds/ | |
matrix: | |
- platform: x64 | |
nodejs_version: LTS | |
ffmpeg_version: 3.4.1 | |
ffmpeg_platform: win64 |