Skip to content

Instantly share code, notes, and snippets.

View jscheid's full-sized avatar

Julian Scheid jscheid

View GitHub Profile
@jscheid
jscheid / html-webpack-sri-test.patch
Last active June 11, 2016 00:31
html-webpack-plugin/webpack-subresource-integrity test case example
diff --git a/package.json b/package.json
index 7fba20f..0ba9d1e 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "Webpack plugin for ensuring subresource integrity",
"main": "index",
"scripts": {
- "test": "karma start --single-run",
+ "test": "karma start --single-run && mocha test/test-webpack.js",

Keybase proof

I hereby claim:

  • I am jscheid on github.
  • I am jscheid (https://keybase.io/jscheid) on keybase.
  • I have a public key whose fingerprint is 7198 317A 9966 BC30 7B89 AFF5 64D5 AD8F 4233 4B48

To claim this, I am signing this object:

bar: 'bar'
foo_json: '{{ foo | to_json }}'
@jscheid
jscheid / hosts.yml
Created November 29, 2014 13:02
Can't use extra vars in host vars with to_json in 1.8
[dummy]
127.0.0.1 somevar='{{ foo | to_json }}'
diff --git a/roles/debops.rails_deploy/tasks/system.yml b/roles/debops.rails_deploy/tasks/system.yml
index 08959e0..0017e7d 100644
--- a/roles/debops.rails_deploy/tasks/system.yml
+++ b/roles/debops.rails_deploy/tasks/system.yml
@@ -2,12 +2,19 @@
- name: Install app packages
apt: pkg={{ item }} state=latest install_recommends=False
- with_items: rails_deploy_packages
+ with_items: rails_deploy_packages + [ 'git' ]
irb(main):003:0> RUBY_VERSION
=> "1.9.3"
irb(main):004:0> RUBY_PATCHLEVEL
=> 545
irb(main):005:0> r, w = IO.pipe 'ASCII-8BIT', 'ASCII-8BIT'
=> [#<IO:fd 13>, #<IO:fd 14>]
irb(main):006:0> w.external_encoding
=> #<Encoding:UTF-8>
irb(main):007:0>