Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Evans bencevans

View GitHub Profile
@bencevans
bencevans / keybase.md
Created December 23, 2019 16:24
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am bencevans on github.
  • I am bencevans (https://keybase.io/bencevans) on keybase.
  • I have a public key ASCcacXpuZoLtEql7RBh6Qan9X3NjqBIF-WPotYbn8lFZAo

To claim this, I am signing this object:

@bencevans
bencevans / dabblet.css
Last active October 21, 2019 21:41
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
html, body {
font-family: 'Inconsolata', monospace;
max-width: 800px;
}
table {
@bencevans
bencevans / Makefile
Created November 5, 2018 17:58
GitHub Style Markdown -> PDF with Pandoc + Weasyprint
View Makefile
build:
pandoc writing.md --standalone \
--bibliography writing.bib --csl writing.csl \
-c https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.10.0/github-markdown.css \
-t html \
| sed '/<body>/c\<body class="markdown-body">' \
| weasyprint - output.pdf
@bencevans
bencevans / keybase.md
Created December 23, 2017 22:44
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am bencevans on github.
  • I am bencevans (https://keybase.io/bencevans) on keybase.
  • I have a public key ASBdQHTwQoYlNESpTFvtlpIvn5A_OsGx-F2T-3l7TyeK0wo

To claim this, I am signing this object:

@bencevans
bencevans / dabblet.css
Created February 25, 2017 12:12
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@bencevans
bencevans / dabblet.css
Created January 17, 2017 19:09
Search Bar
View dabblet.css
/**
* Search Bar
*/
body {
margin: 0;
}
.topbar {
height: 42px;
@bencevans
bencevans / dabblet.css
Created January 17, 2017 11:23
Search Bar
View dabblet.css
/**
* Search Bar
*/
body {
margin: 0;
}
.topbar {
height: 42px;
@bencevans
bencevans / dabblet.css
Last active December 9, 2016 12:23
Transit Popups
View dabblet.css
/**
* Transit Popups
*/
html, body {
margin: 0;
height: 100%;
font-family: Verdana;
font-size: 16px;
@bencevans
bencevans / repos.js
Created August 4, 2016 10:24
List Projects .js
View repos.js
// https://github.com/bencevans?tab=repositories
var repos = document.getElementsByClassName('repo-list-name')
var arr = Array.prototype.slice.call( repos )
var names = arr.map((r) => { return 'bencevans/' + r.innerText })
names.join('&')
@bencevans
bencevans / install-ivpn.sh
Created April 18, 2016 22:20
Install OpenVPN + iVPN Config Files.
View install-ivpn.sh
#!/bin/bash
echo IVPN Installer...
echo Ensuring wget is installed
which wget
if [[ $? == 1 ]]; then
echo Installing wget
sudo apt-get install -y -qq wget
fi