Skip to content

Instantly share code, notes, and snippets.

View docwhat's full-sized avatar

Christian Höltje docwhat

View GitHub Profile
@docwhat
docwhat / async-requires1.js
Created March 23, 2018 23:01
Debugging Gist slowness
This file has been truncated, but you can view the full file.
// prefer default export if available
const preferDefault = m => m && m.default || m
exports.components = {
"component---src-templates-post-js": require("gatsby-module-loader?name=component---src-templates-post-js!/Users/docwhat/Play/WebSites/docwhat/src/templates/post.js"),
"component---src-templates-page-js": require("gatsby-module-loader?name=component---src-templates-page-js!/Users/docwhat/Play/WebSites/docwhat/src/templates/page.js"),
"component---cache-dev-404-page-js": require("gatsby-module-loader?name=component---cache-dev-404-page-js!/Users/docwhat/Play/WebSites/docwhat/.cache/dev-404-page.js"),
"component---src-pages-all-js": require("gatsby-module-loader?name=component---src-pages-all-js!/Users/docwhat/Play/WebSites/docwhat/src/pages/all.js"),
"component---src-pages-index-js": require("gatsby-module-loader?name=component---src-pages-index-js!/Users/docwhat/Play/WebSites/docwhat/src/pages/index.js"),
"component---src-pages-pi-index-js": require("gatsby-module-loader?name=component---sr
@docwhat
docwhat / nerd-firacode-font.css
Last active October 13, 2018 18:10 — forked from danielfullmer/nerd-font.css
blinksh font configuration file
@font-face {
font-family: 'Nerd FiraCode Retina';
src: local('Nerd FireCode Retina'), url('https://raw.githubusercontent.com/ryanoasis/nerd-fonts/2.0.0/patched-fonts/FiraCode/Retina/complete/Fura%20Code%20Retina%20Nerd%20Font%20Complete.otf') format('opentype');
}
* {
text-rendering: optimizeLegibility;
}
@docwhat
docwhat / Jenkinsfile
Created February 10, 2017 19:12
Jenkinsfile: check scm woes with the GitHub Org Folders
#!groovy
node {
stage('desired') {
// This is what I'd like to be able to do... Though there are lots of other extenions that are useful, like
// CleanBeforeCheckout and PruneStaleBranch
// Don't forget submodule configuration!
scm.extenions = scm.extensions + [[$class: 'CloneOption', noTags: true, reference: '', shallow: true]]
checkout scm
}
@docwhat
docwhat / .gitignore
Last active November 6, 2016 02:13
zsh-syntax-hightling + zsh-autocorrect breaks history-incremental-pattern-search-backward
/zsh-autosuggestions/
/zsh-syntax-highlighting/
@docwhat
docwhat / Gather Windows.applescript
Created September 8, 2016 17:21
Gather Windows: useful when disconnecting a second monitor
-- Variation on
-- http://zach.in.tu-clausthal.de/software/Move%20Windows%20To%20Main%20Display.scpt.gz
--
-- Differences:
-- All windows that are more or less off-screen (no matter how much) are moved back
-- so that they are completely on screen (if possible).
-- Gabriel Zachmann, Jan 2008
-- List of processes to ignore (example {"xGestures", "OtherApp", ...})
property processesToIgnore : {"Typinator", "Google Chrome Helper"}
@docwhat
docwhat / .gemrc
Last active July 15, 2016 17:19
Bug in ChefDK's setting of --user flag
install: --no-document
update: --no-document
@docwhat
docwhat / example1
Created December 7, 2015 15:53
choco install dotnet3.5 fails (but succeeds?)
PS C:\Users\Administrator> choco install dotnet3.5 -debug -yes
Chocolatey is running on Windows v 6.3.9600.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install dotnet3.5 -debug -yes
Received arguments: install dotnet3.5 -debug -yes
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
@docwhat
docwhat / .rubocop.yml
Last active September 15, 2015 14:41 — forked from kwk/remove-orphan-images.sh
A script to remove orphaned docker images in a docker registry. Ported to Ruby for easy of understanding.
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/FileName:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/LineLength:
@docwhat
docwhat / keychain2certfile.rb
Last active November 17, 2015 01:54
Creates an SSL_CERT_FILE on OSX (when using Homebrew) that won't break JRuby. Make sure you run this with normal ruby, not JRuby! See https://github.com/jruby/jruby-openssl/issues/56
#!/usr/bin/env ruby
# General idea stolen with no regret from Homebrew's OpenSSL formula.
require 'optparse'
require 'forwardable'
require 'shellwords'
require 'openssl'
require 'digest/md5'
require 'digest/sha1'
@docwhat
docwhat / gist:a2df518e46c78a771d75
Created October 31, 2014 19:51
Debugging HTTPS connections to fedoraproject.org
# OS X Mavericks
$ openssl s_client -state -msg -debug -connect fedoraproject.org:443
CONNECTED(00000003)
SSL_connect:before/connect initialization
write to 0x7fe6a2600000 [0x7fe6a3001000] (130 bytes => 130 (0x82))
0000 - 80 80 01 03 01 00 57 00-00 00 20 00 00 39 00 00 ......W... ..9..
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............
0020 - 00 00 33 00 00 32 00 00-2f 00 00 9a 00 00 99 00 ..3..2../.......
0030 - 00 96 03 00 80 00 00 05-00 00 04 01 00 80 00 00 ................
0040 - 15 00 00 12 00 00 09 06-00 40 00 00 14 00 00 11 .........@......