Skip to content

Instantly share code, notes, and snippets.

:shipit:
Magic, probably

Danny Hinshaw DannyHinshaw

:shipit:
Magic, probably
Block or report user

Report or block DannyHinshaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View screener-roadmap.md

Screener(er) and beyond

  • Mercury
  • Venus
  • Earth (Orbit/Moon)
  • Mars
  • Jupiter
  • Saturn
  • Uranus
  • Neptune
View troubles.go
// crypto.go
package crypto
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"encoding/hex"
"errors"
View simple-https-server.py
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout key.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import http.server
View franc.js
!function(b,a){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define([],b):(typeof window!=='undefined'?a=window:typeof global!=='undefined'?a=global:typeof self!=='undefined'?a=self:a=this,a.franc=b())}(function(){return function(){function a(b,c,e){function f(d,k){if(!c[d]){if(!b[d]){var i='function'==typeof require&&require;if(!k&&i)return i(d,!0);if(g)return g(d,!0);var j=new Error("Cannot find module '"+d+"'");throw j.code='MODULE_NOT_FOUND',j}var h=c[d]={exports:{}};b[d][0].call(h.exports,function(a){var c=b[d][1][a];return f(c||a)},h,h.exports,a,b,c,e)}return c[d].exports}for(var g='function'==typeof require&&require,d=0;d<e.length;d++)f(e[d]);return f}return a}()({1:[function(b,a,c){a.exports={Latin:{spa:' de|os |de | la|la | y | a |es |ón |ión|rec|ere|der| co|e l|el |en |ien|cho|ent|ech|ció|aci|o a|a p| el|a l|al |as |e d| en|na |ona|s d|da |nte| to|ad |ene|con| pr| su|tod| se|ho |los| pe|per|ers| lo|o d| ti|cia|n d|cio| es|ida|res|a t
@DannyHinshaw
DannyHinshaw / watch.sh
Created Sep 20, 2018
Watchman issues on Ubuntu with create-react-app ('ENOSPC: no space left on device')
View watch.sh
sudo sysctl -w fs.inotify.max_user_instances=1024
sudo sysctl -w fs.inotify.max_user_watches=12288
@DannyHinshaw
DannyHinshaw / docker-nuke.sh
Created May 8, 2018
For when docker is all messed up and you need a clean slate... run with caution.
View docker-nuke.sh
docker volume rm $(docker volume ls -q)
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls -q)
You can’t perform that action at this time.