This file contains 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
OH: “Show me your postcode face” | |
OH: “@Floppy: Went to twitter to see what @pikesley had just OH tweeted. But he hadn’t. THIS HAS NEVER HAPPENED BEFORE.” | |
OH: “Maybe she’s just better at pretending” | |
OH: “We have Lego. This is in lieu of self-respect and dignity” | |
OH: "Sorry | |
OH: “This is more tweed research than I’ve ever done” | |
OH: "Ingested truth | |
OH: “Horribly depressing timeline of fuckery” | |
OH: “A good pun is its own reword” *punches @mrchrisadams* | |
OH: "They did a whole set of what sounded like Bon Jovi covers with a Dobro and a human beatboxer" |
This file contains 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
#!/usr/bin/env ruby | |
require 'httparty' | |
class Derp | |
include HTTParty | |
base_uri 'swapi.co/api' | |
def initialize(service, page) | |
@options = { query: {site: service, page: page} } |
This file contains 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
<div class='row'> | |
<div class='col-md-4'> | |
<div class='thumbnail'> | |
<div class='embed-responsive embed-responsive-16by9'> | |
<iframe class='embed-responsive-item' | |
src='YOUTUBE EMBED URL GOES HERE' | |
width='560' | |
height='315' | |
allowfullscreen> | |
</iframe> |
This file contains 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
The Ruby is terrible but it works, and Gource and ffmpeg can only be understood with the bamboo headphones on |
This file contains 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
I, [2015-02-13T14:54:44.657162 #259] INFO -- : Started POST "//runs" for 178.62.31.198 at 2015-02-13 14:54:44 +0000 | |
I, [2015-02-13T14:54:44.695706 #259] INFO -- : Processing by RunsController#run as XML | |
I, [2015-02-13T14:54:44.695870 #259] INFO -- : Parameters: {"bot_name"=>"make-it-stop", "run_id"=>"draft", "run_uid"=>"491", "run_type"=>"draft", "user_api_key"=>"d95542ef0af45a507af73798"} | |
I, [2015-02-13T14:54:44.734440 #259] INFO -- : Completed 200 OK in 38ms (ActiveRecord: 0.0ms) | |
I, [2015-02-13T14:54:44.769113 #241] INFO -- : Setting up /data/data/m/make-it-stop | |
I, [2015-02-13T14:54:44.769858 #241] INFO -- : Setting up /data/output/draft/m/make-it-stop/491 | |
I, [2015-02-13T14:54:44.770261 #241] INFO -- : Setting up /data/downloads/m/make-it-stop/491/d95542ef0af45a507af73798 | |
I, [2015-02-13T14:54:44.770729 #241] INFO -- : Cloning git@github.com:oa-bots/make-it-stop.git into /data/repo/m/make-it-stop | |
I, [2015-02-13T14:54:46.089082 #241] INFO -- : Creating container | |
I, [2015-02-13T14:54:46.090309 #241] |
This file contains 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
This is /home/pi/.config/lxsession/LXDE-pi/autostart | |
@~/runbrowser |
This file contains 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
rewrite ^/about/space$ http://theodi.org/space permanent; | |
rewrite ^/people$ http://theodi.org/team permanent; | |
rewrite ^/people/nrs$ http://theodi.org/team/nigel-shadbolt permanent; | |
rewrite ^/people/gavin$ http://theodi.org/team/gavin-starks permanent; | |
rewrite ^/people/jeni$ http://theodi.org/team/jeni-tennison permanent; | |
rewrite ^/team/dr-david-tarrant$ http://theodi.org/team/david-tarrant permanent; | |
rewrite ^/people/(.*)$ http://theodi.org/team/$1 permanent; | |
rewrite ^/team/board$ http://theodi.org/team permanent; | |
rewrite ^/team/executive$ http://theodi.org/team permanent; | |
rewrite ^/team/commercial$ http://theodi.org/team permanent; |
This file contains 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
[13:32] Sam: Good writeup of making a gem: http://xnoder.github.io/2015/08/12/rolling-gems/ | |
A code slinging, Linux administering, motorcycle riding cloud engineer in Africa. | |
[13:34] Stuart Harrison: Woah | |
[13:34] Stuart Harrison: Wait | |
[13:34] Stuart Harrison: So `bundle gem` allows you to specify a testing framework |
This file contains 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
require 'nokogiri' | |
require 'open-uri' | |
Nokogiri::HTML(open('http://genius.com/Taylor-swift-bad-blood-lyrics')).xpath("//div[contains(@class,'lyrics')]/p").map { |i| puts i } | |
This file contains 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
require 'yaml' | |
require 'json' | |
cassette = 'spec/vcr/Module_Class/some_cassette.yml' | |
body = (JSON.parse ((YAML.load File.read cassette)['http_interactions'][0]['response']['body']['string'])) |