Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Coleman rjocoleman

  • icecube & co
  • Christchurch, New Zealand
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View standardnotes-desktop-aur-deprecation.patch
diff --git a/PKGBUILD b/PKGBUILD
index ca01b21..413ca01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=standardnotes-desktop
_pkgname=desktop
pkgver=3.0.12
-pkgrel=1
+pkgrel=2
View Dockerfile
FROM alpine:3.8
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
ARG relica_os=linux
ARG relica_arch=amd64
ARG relica_ver=1.0.0-rc2
ADD https://relica-releases.s3.wasabisys.com/dist/v${relica_ver}/relica_v${relica_ver}_${relica_os}_${relica_arch}.tar.gz /tmp/relica.tar.gz
View darksky-weather.applescript
# This script requires a free library. Download and run once:
# https://itunes.apple.com/nz/app/json-helper-for-applescript/id453114608?l=en&mt=12
# Get a free DarkSky API key from here: https://darksky.net/dev/
tell application "Location Helper"
## set your DarkSky API key
set apiKey to "API_KEY"
## Units can be "us" or "si" - see https://darksky.net/dev/docs
set units to "si"
View 999-usbscale.rules
## unbind the usbhid driver from USB scales
# Elene vendor_id: 7b7c, product_id: 0100
SUBSYSTEM=="usb", ATTRS{idVendor}=="7b7c", ATTRS{idProduct}=="0100", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Dymo vendor_id: 0922, product_id: 8003 = M10, 8004 = M25, 8009 = Mettler S250
SUBSYSTEM=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="8003|8004|8009", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Stamps.com vendor_id: 1446, product_id: 6A75 = 2510, 6A73 = 510, 6A78 = 75LB
SUBSYSTEM=="usb", ATTRS{idVendor}=="1446", ATTRS{idProduct}=="6A73|6A75|6A78", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
View x230.txt
# backup, flash coreboot and unlock firmware
sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -r test.rom
sudo flashrom -c "MX25L3206E/MX25L3208E" -p linux_spi:dev=/dev/spidev0.0 -r backup.rom
sudo flashrom -c "MX25L3206E/MX25L3208E" -p linux_spi:dev=/dev/spidev0.0 -r test.rom
md5sum backup.rom test.rom
sudo flashrom -c "MX25L3206E/MX25L3208E" -p linux_spi:dev=/dev/spidev0.0 -w coreboot.rom
sudo flashrom -c "MX25L6406E/MX25L6408E" -p linux_spi:dev=/dev/spidev0.0 -r backup2.rom
sudo flashrom -c "MX25L6406E/MX25L6408E" -p linux_spi:dev=/dev/spidev0.0 -r test2.rom
View test.json
{
"FileName": "wijjnir6yanvfh6q1wzi.jpg",
"ContentsBase64": "/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABk\\nAAD/4QMxaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQg\\nYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8\\neDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJB\\nZG9iZSBYTVAgQ29yZSA1LjYtYzExMSA3OS4xNTgzMjUsIDIwMTUvMDkvMTAt\\nMDE6MTA6MjAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDov\\nL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6\\nRGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25z\\nLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5h\\nZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMu\\nYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3Jl\\nYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gp\\nIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkFBQUUxNEM1NzM4NjExRTZB\\nMjI0REIyQkQ4NDg2Q0MzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkFB\\nQUUxNEM2NzM4NjExRTZBMjI0REIyQkQ4NDg2Q0MzIj4gPHhtcE1NOkRlcml2\\nZWRGcm9tIH
View .gitlab-ci.yml
image: publysher/hugo
production:
type: deploy
before_script:
- apt-get update
- apt-get -qq install python python-pip ca-certificates
- pip install awscli
script:
- hugo
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Logitech K811 Previous/Forward Media Keys</name>
<appendix>Make F14 and F15 (brightness) Prev/Forward media keys</appendix>
<identifier>private.rjoc.k811_prev_forward</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_K811</device_only>
<autogen>
View Dockerfile
FROM ruby:2.3-alpine
RUN apk add --update \
build-base \
git \
libxml2-dev \
libxslt-dev \
tzdata \
rm -rf /var/cache/apk/*; \
gem update --system;
You can’t perform that action at this time.