Link to these links: https://git.io/vKSVZ
Module 1:
- Run jenkins from war file:
jenkins -jar jenkins.war
- Run jenkins from docker:
docker run -d \
--restart unless-stopped \
--name jenkins \
<?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> |
Link to these links: https://git.io/vKSVZ
Module 1:
jenkins -jar jenkins.war
docker run -d \
--restart unless-stopped \
--name jenkins \
var normalize = System.normalize; | |
System.normalize = function (name, parentName, parentAddress) { | |
console.log("normalize: " + JSON.stringify({ | |
name: name, | |
parentName: parentName, | |
parentAddress: parentAddress | |
})); | |
return normalize.call(this, name, parentName, parentAddress); | |
}; |
Shortened URL for this gist: https://git.io/vitgf
version: '2' | |
services: | |
teamcity: | |
image: sjoerdmulder/teamcity | |
ports: | |
- 8111:8111 | |
teamcity-agent: | |
image: sjoerdmulder/teamcity-agent | |
environment: |
Access this gist via: https://git.io/vPnaU GitHub repo: https://git.io/vP819 (https://github.com/g0t4/pluralsight-dotnet-core-windows/)
Links:
Shortened URL to access this gist: http://tiny.cc/swarmgs
All scripts work in bash and should work in powershell except as noted
git clone https://gist.github.com/g0t4/1454ee7342d54aba5313ffc699d472ba local-folder
#!/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 "$@" ; } |
[Test] | |
[Timeout(2000)] | |
public async Task WriteToFile_StreamsChanged() | |
{ | |
using (var watcher = new ObservableFileSystemWatcher(c => { c.Path = TempPath; })) | |
{ | |
var firstChanged = watcher.Changed.FirstAsync().ToTask(); | |
watcher.Start(); | |
File.WriteAllText(Path.Combine(TempPath, "Changed.Txt"), "foo"); |