Skip to content

Instantly share code, notes, and snippets.

View g0t4's full-sized avatar
🏁

Wes Higbee g0t4

🏁
View GitHub Profile
@g0t4
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
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
@g0t4
g0t4 / links.md
Last active May 10, 2021 08:14
Starting Point Files for Jenkins2 Getting Started course
stage 'CI'
node {
git branch: 'jenkins2-course',
url: 'https://github.com/g0t4/solitaire-systemjs-course'
// pull dependencies from npm
// on windows use: bat 'npm install'
sh 'npm install'
@g0t4
g0t4 / _resources.md
Last active December 25, 2020 10:09
Resources for TeamCity Getting Started Course
@g0t4
g0t4 / Links.md
Last active August 15, 2018 05:32
Getting Started with .NET Core: for Windows Developers
@g0t4
g0t4 / Notes.md
Last active July 11, 2022 14:53
Getting Started with Docker on Windows
@g0t4
g0t4 / _README.md
Created November 30, 2016 03:46
Setting up a Docker Hub registry mirror on a Synology NAS

Instructions

  • 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 :)

Notes

@g0t4
g0t4 / execute.sh
Last active January 18, 2017 05:13
docker cli usefulness -> converting ascii art into nice images - > nice workflow for creating visuals and flexible outputs with asciidoctor in a container
#!/bin/bash
wget https://gist.githubusercontent.com/g0t4/c4d382b0aa0b15ed3454f501d2102500/raw/c39c6662fa15e4ad9c842eae9e2724dd1810d7eb/table.adoc
# this docker image comes preloaded with many extensions! https://hub.docker.com/r/asciidoctor/docker-asciidoctor/~/dockerfile/
# docs for asciidoctor-diagram extension http://asciidoctor.org/docs/asciidoctor-diagram/
# volume mount for current working directory, to ready table.adoc and write resultant output file
# function to hide away the docker run and volume plumbing, treat like it is installed locally :)
asciidoctor() { docker run --rm -v $(pwd):/documents asciidoctor/docker-asciidoctor asciidoctor "$@" ; }