Skip to content

Instantly share code, notes, and snippets.

🐧
Hello? Is this thing on?

Justin Morris plasticine

🐧
Hello? Is this thing on?
Block or report user

Report or block plasticine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main-pipeline.yaml
steps:
- trigger: juzzy-secondary
label: ":pipeline: First Trigger"
build:
env:
PARENT_JOB_LABEL: First
PARENT_JOB_ID: "$BUILDKITE_JOB_ID"
- wait
View gcob.zsh
gcob() {
local format branch branches
format="%(committerdate:relative)\\%(color:green)%(refname:short)%(color:reset)\\%(HEAD)\\%(color:yellow)%(objectname:short)%(color:reset) %(upstream:trackshort)\\%(contents:subject)"
branches=$(git for-each-ref --format="$format" --sort=-committerdate refs/heads/ | column -t -s "\\") &&
branch=$(echo "$branches" | fzf --ansi --height=15 --border) &&
git checkout $(echo "$branch" | awk '{print $4}')
}
View Dockerfile
# Foundation Target (install system runtime deps)
FROM xyz:1.0@sha256:abcd1234 AS foundation
# Runtime deps and common environment stuff here
# Build Target (install system buildtime deps)
FROM foundation AS build
# Install build-time systems deps and things here, we don’t want/need these in production
# Development Target (development toolchain)
FROM build AS development
View kube_context.bash
kube_context() {
context=$(kubectl config current-context | awk '{print toupper($0)}')
colour="%K{blue}"
[[ "$context" =~ "PRODUCTION" ]] && colour="%K{red}"
echo " $colour%F{black}%B \u2388 $context %b%f%k"
}
@plasticine
plasticine / help.makefile
Last active Aug 28, 2019
Automatically extract help from your Makefiles using some fully sick awk hacks
View help.makefile
# You're looking at it! :)
help:
@makehelp < $(MAKEFILE_LIST)
.PHONY: help
View keybase.md

Keybase proof

I hereby claim:

  • I am plasticine on github.
  • I am plasticine (https://keybase.io/plasticine) on keybase.
  • I have a public key ASBkwMaRziWws0mrw9MGEGIgst3UkOfxw9hiBzpfxtHEXAo

To claim this, I am signing this object:

@plasticine
plasticine / spendyspendy.txt
Last active Aug 29, 2015 — forked from dannolan/spendyspendy.txt
Top Entitlement Claiming Federal Politicians in Australia (2014)
View spendyspendy.txt
Top Spenders OVERALL
The Hon Tony Abbott MP $ 1,057,673
The Hon Julie Bishop MP $ 866,653
Mr Tony Pasin MP $ 851,482
Mr Tim Watts MP $ 556,863
The Hon Andrew Robb AO MP $ 539,247
The Hon Darren Chester MP $ 529,344
Mr Wyatt Roy MP $ 526,258
Senator the Hon Simon Birmingham $ 523,191
View autorun-plexconnect.sh
#!/bin/sh
# /share/CE_CACHEDEV1_DATA/.qpkg/autorun/autorun-plexconnect.sh
#
# mkdir /share/CE_CACHEDEV1_DATA/.qpkg/autorun
# chmod +x /share/CE_CACHEDEV1_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -Lk https://gist.githubusercontent.com/plasticine/86e189c42ac8ec7598a8/raw/update_plex_connect.sh | bash &
View autorun-plexconnect.sh
#!/bin/sh
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -L https://gist.githubusercontent.com/plasticine/86e189c42ac8ec7598a8/raw/b0a2c963c9e3cb5928157439976734860014914e/update_plex_connect.sh | bash &
@plasticine
plasticine / jiffy.sh
Created Jan 22, 2015
Command line tool to convert video files to GIF
View jiffy.sh
#!/usr/bin/env bash +x
#
# Compress video files into GIFs.
#
# Requirements:
# - ffmpeg
# - imagemagick
# - terminal-notifier
# - gifsicle
#
You can’t perform that action at this time.