Skip to content

Instantly share code, notes, and snippets.

@camelpunch
camelpunch / gpg-ssh
Last active September 12, 2017 12:21
#!/bin/bash
set -eu
gpg --card-status > /dev/null
killall ssh-agent gpg-agent
unset GPG_AGENT_INFO SSH_AGENT_PID SSH_AUTH_SOCK
gpg-agent --daemon --enable-ssh-support
@camelpunch
camelpunch / Dockerfile
Last active March 14, 2017 13:57
Cross-compile Haskell
FROM debian:jessie
RUN apt-get update && apt-get install -yy \
curl \
build-essential
RUN curl -sSL https://get.haskellstack.org/ | sh
RUN stack setup
COPY ./ project
ENV LC_ALL=C.UTF-8
RUN cd project && stack install
touch -t $(git log -n1 --format=%cd --date=format:%Y%m%d%H%M.%S ../README.md) ../README.md
#import "ViewController.h"
@import RMQClient;
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
amq-protocol$ ./bin/rspec -b spec
Running on 2.2.2
........................................................................................................................................................F.....................................................................................................................................................................................................................................................................
Failures:
1) AMQ::Protocol::Method.encode_body when the body fits perfectly in a single frame encodes a body into a single BodyFrame
Failure/Error: expect(body_frames.size).to eq(1)
expected: 1
describe "some group" do
example "example 1" do
expect(@triangle).to have(2).sides
end
describe "some sub group" do
it "has another example, using the 'it' alias" do
expect(@circle).to be_square
end
end
I keep myself logged in on GitHub :(.
http://xfinity.comcast.net/blogs/tv/files/2010/10/carrie-ann-inaba.jpg
http://en.wikipedia.org/wiki/File:Matthew_Broderick_portrait_2009.jpg
http://img.ehowcdn.com/article-new/ehow/images/a05/pa/c6/ten-kid-should-cell-phone-1.1-800x800.jpg
class DesignsController < ApplicationController
respond_to :json, :only => :create
respond_to :html, :json, :only => [:index, :unpublished]
end
Then /^I should see ([^"]+)$/ do |thing|
page.should have_css(selector_for(thing))
end
When /^(.*) within ([^:"]+)$/ do |step, parent|
with_scope(parent) { When step }
end