Skip to content

Instantly share code, notes, and snippets.

View mrhockeymonkey's full-sized avatar
😀
Making my own x-plat app with Flutter

Scott Matthews mrhockeymonkey

😀
Making my own x-plat app with Flutter
View GitHub Profile
@mrhockeymonkey
mrhockeymonkey / gist:a0e73029b3ae1cfc1ae2f47969d3ef09
Created January 3, 2018 12:27
Trigger Jenkins build via API (with params)
$ApiUser =
$ApiToken =
$BuildTriggerToken =
#dirty hack to add trust for a cert to WinPE
& reg.exe IMPORT Z:\Control\Tools\JenkinsSelfSigned.reg
#create the required header
$bytes = [System.Text.Encoding]::ASCII.GetBytes("${ApiUser}:${ApiToken}")
$base64 = [System.Convert]::ToBase64String($bytes)
@mrhockeymonkey
mrhockeymonkey / Jenkinsfile
Last active April 20, 2024 01:17
Jenkins pipeline running a remote ansible playbook
#!groovy
pipeline {
agent any
//These params will be displayed for user input when running a build, They are also accepted by the API
parameters {
string(name: 'BUILD_HOSTNAME', description: 'The name of the server to build (from Mdb)')
string(name: 'ILO_IP', description: 'The IP address for the server ilo')
booleanParam(name: 'skipOneView', description: 'Skip the OneView stage?', defaultValue: false)
@mrhockeymonkey
mrhockeymonkey / VimCheatsheet.md
Last active November 20, 2017 22:39
VIM cheatsheet

/ to search

? for regex search

dd to delete line

y+Move to yank

???? you can yank into seperate buffers