Skip to content

Instantly share code, notes, and snippets.

View jamiew's full-sized avatar

Jamie Dubs jamiew

View GitHub Profile
@jamiew
jamiew / uploading GML with uniqueKey.sh
Created February 19, 2019 22:01
you can't specify uniqueKey as a URL parameter, it has to be inside the actual GML data
gml="<gml><tag><header><client><uniqueKey>jamiew007</uniqueKey></client></header><drawing><stroke><pt><x>1</x><y>1</y><t>1</t></pt></stroke></drawing></tag></gml>"
id=$(curl -s -A curlwriter -d "application=curlwriter&gml=$gml" "https://000000book.com/data")
open "https://000book.com/data/$id"
@jamiew
jamiew / ipfs-main.json
Last active January 4, 2025 12:43 — forked from eefahy/ipfs-main.json
Grafana dashboard configuration for the IPFS Prometheus endpoint
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@jamiew
jamiew / ipfs-daemon-remote.sh
Created December 4, 2018 17:16 — forked from Kubuxu/ipfs-daemon-remote.sh
Tunnel IPFS API via SSH
#!/usr/bin/env bash
REMOTE_HOST=${1-"YOUR REMOTE HOST HERE"}
DEFAULT_API_FILE="$HOME/.ipfs/api"
API_FILE="${IPFS_PATH-$DEFAULT_API_FILE}"
if [ -e "$API_FILE" ]; then
echo "IPFS API is already running"
exit 1
fi
Verifying my Blockstack ID is secured with the address 18h4uecwF3XXHJFKJufUkkNPaoHTeJKZZ2 https://explorer.blockstack.org/address/18h4uecwF3XXHJFKJufUkkNPaoHTeJKZZ2
@jamiew
jamiew / logstash.conf
Created October 12, 2017 20:05 — forked from radu-gheorghe/logstash.conf
logstash grok filter for Elasticsearch logs
filter {
if [type] == "elasticsearch" {
grok {
match => [ "message", "\[%{TIMESTAMP_ISO8601:timestamp}\]\[%{DATA:severity}%{SPACE}\]\[%{DATA:source}%{SPACE}\]%{SPACE}(?<message>(.|\r|\n)*)" ]
overwrite => [ "message" ]
}
if "_grokparsefailure" not in [tags] {
grok { # regular logs
match => [

Keybase proof

I hereby claim:

  • I am jamiew on github.
  • I am jamiew (https://keybase.io/jamiew) on keybase.
  • I have a public key whose fingerprint is FB50 DFCC 1678 3295 E29E C5F3 F187 2D25 BA0E DE60

To claim this, I am signing this object:

# Description:
# It's all about the points. jamie++
#
# Commands:
# @username++ - Add a karma point for said user
# hubot leaderboard - Show karma points for all users. Also understands "scoreboard"
#
module.exports = (robot) ->
robot.brain.data.karma ?= {}
@jamiew
jamiew / brew-sync.sh
Created January 8, 2016 17:14 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox (including casks)
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@jamiew
jamiew / git-latest
Created November 7, 2014 22:31
"git latest" command will show you all branches by last-updated date
for ref in $(git for-each-ref --sort=-committerdate --format="%(refname)" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:"%Cgreen%cr%Creset %C(yellow)%d%Creset %C(bold blue)<%an>%Creset%n" | cat ; done | awk '! a[$0]++'
@jamiew
jamiew / gist:6945483
Last active December 25, 2015 08:19
my cookieclicker game
MS4wMzc1fHwxMzc5MzU3Nzg4MzU1fDExMTExMXwxODU3MTYyODA2ODEwNS45Nzc7NTExOTg3ODkwMTQ0NTAuMDU7NjM0MDs0MDs0ODY2MzQxMDkzMzQuNjY5OzQyMzstMTstMTswOzA7Mjs0ODQ2ODswOy0xfDEzNCwxNzMsMjk4NzAxNzY5MDcsMDsxNTAsMTYyLDU4MDU1NDU2MTU4NCwwOzk4LDEwMywzNTYyNTY5MjAsMDs4NSw4Niw4NDg3NTA0NjQsMDs3OCw3OSwyNzQ0NzgzODYxLDA7NzAsNzAsNTc2NzMzODU4OCwwOzYzLDYzLDE3MjAzMjI1OTY0LDA7NzcsNzcsMzcyMzIwNzI3MDg1LDA7NDgsNDgsMTgwNjIyMzcwNTMxMiwwOzQwLDQwLDEwMzQ2NzEzOTE1MDg3LDA7fDQ1MDM1OTk2MjczNzA0OTU7NDUwMzE4NzMxMDUxMDA3OTs0NTAzNTk5NjI3MzcwNDcxOzM5NDA2NTI0OTMwNTY1MTE7NTYzNDk5NzE1NTcwNTkxfDM4Njk3MjkxNjA2OTE3MTE7MjI1MjA5NzUwMjIyMjA0MzsyMw%3D%3D%21END%21