Skip to content

Instantly share code, notes, and snippets.

View johnmichel's full-sized avatar
👻
☕️

John Michel johnmichel

👻
☕️
View GitHub Profile
@johnmichel
johnmichel / nginx.conf
Created May 19, 2020 14:34 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

* { border-radius: 404px 53px 404px 46px / 57px 153px 59px 153px !important; }
@johnmichel
johnmichel / index.js
Last active May 11, 2017 21:01
requirebin sketch
const R = require('ramda');
const S = require('sanctuary');
const getNavigationProp = function getNavigationProp(prop, key, value, flatNav) {
console.log('prop is', prop) // displayName
console.log('key is', key) // slug
console.log('value is', value) // pet-products
/*
return R.compose(
@johnmichel
johnmichel / karabiner.json
Last active April 27, 2017 18:36
My Karabiner Elements Config for a Varmilo VA87MN
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"devices": [
{
@johnmichel
johnmichel / throwDebugger.js
Last active July 11, 2017 15:06
throwDebugger is useful for tapping into a stream to check details about an event
// usage:
// .tap(event => throwDebugger(event))
// or
// function foo(event) {
// throwDebugger(event);
// // code that requires a closer look
// }
const throwDebugger = function throwDebugger(event) {
console.log('event is', event);
@johnmichel
johnmichel / .block
Last active July 3, 2016 22:51 — forked from mbostock/.block
Wilson’s Algorithm III
license: gpl-3.0
@johnmichel
johnmichel / _.md
Created November 24, 2014 22:24
2 level binding
@johnmichel
johnmichel / _.md
Created November 24, 2014 22:23
2 level binding
@johnmichel
johnmichel / _.md
Last active August 29, 2015 14:10
Tributary inlet