Skip to content

Instantly share code, notes, and snippets.

View unixnut's full-sized avatar

Alastair Irvine unixnut

  • Warpspace IT
  • Perth, WA, Australia
View GitHub Profile
@unixnut
unixnut / git-change-url
Created September 4, 2020 17:54 — forked from sankalp-khare/git-change-url
Changes the git url type from https to ssh or vice versa
#!/usr/bin/env bash
# Utility to change the connection method for a git repo.
# === Colour Definitions ===
red='\e[0;31m'
green='\e[0;32m'
purple='\e[0;35m'
orange='\e[0;33m'
# No Color, i.e. turn off color
@unixnut
unixnut / Jenkinsfile
Created September 4, 2020 17:45 — forked from dhgautam/Jenkinsfile
Jenkinsfile for demo app-pipeline
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Build demo-app'
sh 'sh run_build_script.sh'
}
}
@unixnut
unixnut / sercom.py
Created March 25, 2020 05:05 — forked from mortie/sercom.py
Better serial console.
#!/usr/bin/env python3
import serial
import sys
import os
import threading
import traceback
if len(sys.argv) not in (2, 3):
print(f"Usage: {sys.argv[0]} <path> [baud]")