Skip to content

Instantly share code, notes, and snippets.

View heyarne's full-sized avatar

heyarne

View GitHub Profile
@heyarne
heyarne / bower.json
Last active August 29, 2015 13:56
Basic setup for using Curl.js to load commonjs modules; useful for testing modules written for browserify. Used modules can be installed with `bower install`
{
"name": "Curljs cjsm11 setup",
"private": true,
"dependencies": {
"chai": "~1.8.0",
"mocha": "~1.14.0",
"curl": "~0.8.8",
"backbone": "~1.1.0",
"zepto": "~1.1.2",
"lodash": "~2.4.1"
@heyarne
heyarne / overflow-cause-finder.js
Last active August 29, 2015 14:11
Find elements too wide for a viewport, causing horizontal scrollbars (jQuery necessary)
(function ($) {
var bodyWidth = $(document.body).outerWidth();
var $elems = $('body *').filter(function () {
var $this = $(this)
return $this.offset().left + $this.outerWidth(true) - parseInt($this.css('margin-left'), 10) > bodyWidth
})
if ($elems.length)
console.log($elems)
else
@heyarne
heyarne / index.js
Created July 21, 2016 10:34
requirebin sketch
var Chance = require('chance')
var chance = new Chance()
// how many rows should be generated?
const amount = 100
// define all of the required fields in the form [[ $title1, $type1 ], [ $title2, $type2, $args2 ] ... ]
// $typeN maps to one of the functions exposed by the [chance api](http://chancejs.com/) (for example 'street' or 'email')
const stencil = [
[ 'Firma', 'word' ],
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heyarne
heyarne / test-output.txt
Created December 12, 2017 10:18
fiona test output
============================= test session starts ==============================
platform darwin -- Python 2.7.10, pytest-3.3.1, py-1.5.2, pluggy-0.6.0
rootdir: /Users/heyarne/tmp/Fiona, inifile:
plugins: cov-2.5.1
collected 605 items
tests/test_bigint.py . [ 0%]
tests/test_bounds.py .... [ 0%]
tests/test_bytescollection.py FFFFFFFFFFsFFFFFFFFFFFFFFFFFFFFFFFFFFF. [ 7%]
tests/test_collection.py ............................................... [ 15%]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
server {
listen 80;
listen [::]:80;
server_name my.server.address;
# enforce https
return 301 https://$server_name$request_uri;
# index index.html;
}
server {

Keybase proof

I hereby claim:

  • I am heyarne on github.
  • I am heyarne (https://keybase.io/heyarne) on keybase.
  • I have a public key ASDvj02EXJrTlfilf9OLmjN9lMYO6Is93UU-gqkZeAr_hAo

To claim this, I am signing this object:

#!/usr/bin/env bash
LOG="/var/log/update-dyndns.log"
USER="DYNDNS2_USER"
PASS="DYNDNS2_PASS"
URL="DYNDNS2_ENDPOINT"
exec > >(tee -i ${LOG})
exec 2>&1
[Macaron] 2018-04-17 20:54:49: Started GET /index.html for :xed-out-ip-address:, :xed-out-ip-address:
[Macaron] 2018-04-17 20:54:49: Completed /index.html 404 Not Found in 8.763581ms
[Macaron] 2018-04-17 20:54:49: Started GET /vendor/assets/octicons/octicons.min.css for :xed-out-ip-address:, :xed-out-ip-address:
[Macaron] 2018-04-17 20:54:49: Started GET /vendor/plugins/cssrelpreload/cssrelpreload.min.js for :xed-out-ip-address:, :xed-out-ip-address:
[Macaron] [Static] Serving /vendor/plugins/cssrelpreload/cssrelpreload.min.js
[Macaron] 2018-04-17 20:54:49: Started GET /vendor/plugins/semantic/semantic.min.css for :xed-out-ip-address:, :xed-out-ip-address:
[Macaron] 2018-04-17 20:54:49: Completed /vendor/plugins/cssrelpreload/cssrelpreload.min.js 200 OK in 429.496µs
[Macaron] 2018-04-17 20:54:49: Started GET /css/index.css?v=38dfe6388acfa83c3486d41f22b08165 for :xed-out-ip-address:, :xed-out-ip-address:
[Macaron] [Static] Serving /vendor/assets/octicons/octicons.min.css
[Macaron] 2018-04-17 20:54:49: Complete