I hereby claim:
- I am skunkworker on github.
- I am johnbolliger (https://keybase.io/johnbolliger) on keybase.
- I have a public key ASDIEVOnq3l2azbai2nzpR-uDEXy1qMpkYHaD2s2FRhnGQo
To claim this, I am signing this object:
Make sure that you use the crt file given by your SSL provider. As exporting the certs through openssl can change the type from sha256 to the less secure sha1 and this should be avoided. | |
$ openssl pkcs12 -export -in NEW_CERT.crt -inkey PRIVATE.key -out NEW_KEYSTORE.p12 |
class VotesGroupSerializer < ActiveModel::Serializer | |
attributes :group_name | |
has_many :votes | |
end |
$(document).ready(function() { | |
$('#openBtn').click(function(){ | |
$('#myModal').modal({show:true}) | |
}); | |
$('.modal').on('hidden.bs.modal', function( event ) { | |
$(this).removeClass( 'fv-modal-stack' ); | |
$('body').data( 'fv_open_modals', $('body').data( 'fv_open_modals' ) - 1 ); | |
}); |
rails r 'File.write("./viz.html", Rails.application.routes.router.visualizer)'; | |
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"; | |
open "http://localhost:8080/viz.html" |
CHAPTERS=book/preamble.md \ | |
$(sort $(wildcard book/chapter-*.md)) | |
CONTENTS=book/title.txt \ | |
$(CHAPTERS) | |
ALL_FILES=$(CHAPTERS) \ | |
book/metadata.xml \ | |
book/title.txt \ | |
cover.png |
# MJML needs to get the fonts | |
def stub_google_fonts | |
stub_request(:get, "https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"). | |
with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'fonts.googleapis.com', 'User-Agent'=>'Ruby'}). | |
to_return(:status => 200, :body => "/* cyrillic-ext */ | |
@font-face { | |
font-family: 'Ubuntu'; | |
font-style: normal; | |
font-weight: 300; |
I hereby claim:
To claim this, I am signing this object:
# Chrome Extension Packer | |
# | |
# This removes .git, development files and other files specified and then packages up a chrome extension. | |
# By default the manifest.json that lives in the directory is removed (local development links etc). And replaced with the manifest.json.production file. | |
require 'find' | |
require 'fileutils' | |
require 'json' | |
extension_directory = "/chrome/" |
dist: trusty | |
before_script: | |
- wget http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip | |
- unzip chromedriver_linux64.zip | |
- sudo apt-get install libnss3 | |
- sudo apt-get --only-upgrade install google-chrome-stable | |
- sudo cp chromedriver /usr/local/bin/. | |
- sudo chmod +x /usr/local/bin/chromedriver | |
- export DISPLAY=:99.0 |
# How to click on a bootstrap check_box with capybara. | |
find(:css, 'label', text: 'Label text here').click |