Skip to content

Instantly share code, notes, and snippets.

View hairyhenderson's full-sized avatar

Dave Henderson hairyhenderson

View GitHub Profile
@bradfitz
bradfitz / sqlplay.go
Created June 23, 2021 17:23
sqlplay.go
package main
import (
"database/sql"
"flag"
"fmt"
"html"
"io"
"io/ioutil"
"log"
@nicbet
nicbet / song.txt
Created May 6, 2019 15:36
Teaching my Toddler about Bitbucket
The itsy bitsy bucket contains all our code,
down comes the git commit and adds another load,
out comes the pull request and merges the changes in,
the itsy bitsy bucket now has more code within.
@erictune
erictune / README.md
Last active December 2, 2018 02:41
Next Steps for viewers of "Kubernetes Extensibility", presented at Dockercon SF 2018 by Eric Tune and Tim Hockin
@mholt
mholt / macapp.go
Last active June 19, 2024 16:05
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@eddiewebb
eddiewebb / readme.md
Last active June 24, 2024 02:21
Hugo JS Searching with Fuse.js
@avorobyov
avorobyov / presentation.md
Last active August 23, 2017 02:03
Java in Docker pitfalls presentation

Java in Docker pitfalls


Why Java is a special case

  • JVM ergonomics
  • Libraries ergonomics

JVM and libraries decide how much memory and how many threads to use.

@BretFisher
BretFisher / docker-for-mac.md
Last active July 1, 2024 10:16
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@monteslu
monteslu / StandardFirmataWifi_ESP_MDNS.ino
Last active June 17, 2017 00:09
Standard Firmata Wifi also using MDNS for finding the IP of your ESP8266 nodebot
/*
Firmata is a generic protocol for communicating with microcontrollers
from software on a host computer. It is intended to work with
any host computer software package.
To download a host software package, please clink on the following link
to open the list of Firmata client libraries your default browser.
https://github.com/firmata/arduino#firmata-client-libraries
@mitchellh
mitchellh / setup_winrm.txt
Created June 14, 2015 19:31
Packer 0.8 Windows Example on AWS
<powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow