View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
#!/usr/bin/env ruby | |
require 'base64' | |
require 'rack/mime' | |
if ARGV.empty? | |
puts "usage: #{File.basename($0)} [glob ...]" | |
exit 0 | |
end |
#!/usr/bin/env ruby | |
begin | |
require 'closure-compiler' | |
rescue LoadError => e | |
puts e.message | |
puts "to fix: gem install 'closure-compiler'" | |
exit 1 | |
end |
View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
Moved to https://github.com/pmeinhardt/style
# RASPBIAN JESSIE LITE | |
# | |
# Version: May 2016 | |
# Release date: 2016-05-27 | |
# Kernel version: 4.4 | |
# | |
# https://www.raspberrypi.org/downloads/raspbian/ | |
# boot and login (default username: pi, password: raspberry) |
# For more options and information see | |
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | |
# Some settings may impact device functionality. See link above for details | |
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
#disable_overscan=1 |
# features/support/session.rb | |
# Sign-in users directly, without going through the sign-in form each time. | |
# | |
# Including the Warden::Test::Helpers in the cucumber world, allows us | |
# to call login_as(user, opts = {}) and logout(*scopes) in cucumber steps. | |
# | |
# http://git.io/h1NRxQ | |
Before do |scenario| |
# Tested on a Raspberry Pi 3 running Raspbian Jessie Lite (2016-05-27,, kernel 4.4) | |
# – http://computers.tutsplus.com/tutorials/using-a-raspberry-pi-as-an-airplay-receiver--mac-54316 | |
# install dependencies | |
sudo apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl libmodule-build-perl libasound2-dev libao-dev pulseaudio libpulse-dev avahi-utils libavahi-client-dev | |
# configure and build | |
git clone https://github.com/abrasive/shairport.git | |
cd shairport | |
./configure |
Docker setup and running a (language-specific) Travis-CI docker image:
# install docker tools (e.g. via homebrew)
brew install docker docker-machine
# create a docker machine (https://docs.docker.com/machine/)
docker-machine create --driver virtualbox default
# set up your shell session for docker
# Example code for connecting to OpenSSH ssh-agent and retrieving key information, | |
# quickly hacked together so please excuse bad naming and style etc. | |
# | |
# This is just intended to provide a starting point | |
# | |
# http://api.libssh.org/rfc/PROTOCOL.agent | |
# https://github.com/paramiko/paramiko/blob/master/paramiko/agent.py | |
# Message constants | |
ssh2_agentc_request_identities = 11 |