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

@johnmichel
johnmichel / .block
Last active July 3, 2016 22:51 — forked from mbostock/.block
Wilson’s Algorithm III
license: gpl-3.0
//-------------------------------------------------------------------------
// UI
//-------------------------------------------------------------------------
// Greens
$turquoise: #1ABC9C
$green-sea: #16A085
$emerald: #2ECC71
$nephritis: #27AE60
@johnmichel
johnmichel / LICENSE.txt
Created June 6, 2011 14:07 — forked from fgnass/LICENSE.txt
display a loading spinner
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Felix Gnass <https://github.com/fgnass>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#!/usr/bin/ruby -w
require 'rubygems'
require 'net/http'
require 'rexml/document'
include REXML
API_KEY = 'KEY GOES HERE'
LASTFM_USER = 'USERNAME GOES HERE'
(function ($) {
$.event.special.textchange = {
setup: function (data, namespaces) {
$(this).bind('keyup', $.event.special.textchange.handler);
$(this).bind('cut paste input', $.event.special.textchange.delayedHandler);
},
teardown: function (namespaces) {
// jquery invert plugin
// by paul irish
// some (bad) code from this css color inverter
// http://plugins.jquery.com/project/invert-color
// some better code via Opera to inverse images via canvas
// http://dev.opera.com/articles/view/html-5-canvas-the-basics/#insertingimages
// and some imagesLoaded stuff from me
// http://gist.github.com/268257
$('#pictures').hover(function() {
$('div.overlay-background, div.overlay').slideDown('slow', function() {
//Animation Complete
});
});