Skip to content

Instantly share code, notes, and snippets.


Wes Higbee g0t4

View GitHub Profile
g0t4 /
Created November 30, 2016 03:46
Setting up a Docker Hub registry mirror on a Synology NAS


  • Save the docker-compose.yml and config.yml in the same directory on one of your volumes on the NAS.
  • SSH in and use docker-compose up -d
  • Test the mirror with curl --head http://NAS-IP:55000
  • Start up docker daemons with the following option or put this in the daemon config file or copy into Docker for Mac/Windows settings. --registry-mirror=http://NAS-IP:55000
  • Pull an image and then check that it is cached in your mirror with curl http://NAS-IP:55000/v2/_catalog
    • or check that a large image isn't slow after the first pull :)


g0t4 /
Last active July 11, 2022 14:53
Getting Started with Docker on Windows
g0t4 /
Last active March 4, 2022 01:02
Docker Cheat Sheet

Windows Containers notes

View solitaire-pipeline-starting-point.groovy
stage 'CI'
node {
git branch: 'jenkins2-course',
url: ''
// pull dependencies from npm
// on windows use: bat 'npm install'
sh 'npm install'
g0t4 / tap.kt
Created October 15, 2014 23:39
A ruby like tap method for kotlin, except for any type
View tap.kt
* Provide a means to fluently tap into a chain of method calls so as not to need to declare unnecessary variables
* */
public fun <T : Any, R> T.tap(tap: (T) -> R): T {
return this
// here's an example where I'm in a fluent builder and I'd like to log the URI of the request without introducing a variable
val response = this.builds.queryParam("locator", "buildType:{buildTypeId},count:1,personal:false,canceled:false")
g0t4 /
Last active June 7, 2021 16:49
Consul and related terms
  • Node - a physical or virtual machine that hosts services
    • Nodes also referred to as members.
    • Examples
      • Your computer
      • An AWS EC2 instance
      • A bare metal machine in your private data center
  • Service - executing software that provides utility via an interface
    • Typically long-lived process listening on a port(s)
    • Examples
  • A web server (nginx, apache, iis)
g0t4 / config.xml
Created July 24, 2016 18:39
Module 2 - What am I? Get this job loaded into Jenkins and running, there are two problems you'll encounter. Raw
View config.xml
<?xml version='1.0' encoding='UTF-8'?>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2">