Skip to content

Instantly share code, notes, and snippets.

Jamie Wilkinson jamiew

Block or report user

Report or block jamiew

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
@jamiew
jamiew / uploading GML with uniqueKey.sh
Created Feb 19, 2019
you can't specify uniqueKey as a URL parameter, it has to be inside the actual GML data
View uploading GML with uniqueKey.sh
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 Jan 10, 2019 — forked from eefahy/ipfs-main.json
Grafana dashboard configuration for the IPFS Prometheus endpoint
View ipfs-main.json
{
"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 Dec 4, 2018 — forked from Kubuxu/ipfs-daemon-remote.sh
Tunnel IPFS API via SSH
View ipfs-daemon-remote.sh
#!/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
View blockstack proof
Verifying my Blockstack ID is secured with the address 18h4uecwF3XXHJFKJufUkkNPaoHTeJKZZ2 https://explorer.blockstack.org/address/18h4uecwF3XXHJFKJufUkkNPaoHTeJKZZ2
@jamiew
jamiew / logstash.conf
Created Oct 12, 2017 — forked from radu-gheorghe/logstash.conf
logstash grok filter for Elasticsearch logs
View logstash.conf
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 => [
View keybase.md

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:

View hubot-karma.coffee
# 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 Jan 8, 2016 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox (including casks)
View brew-sync.sh
#!/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 Nov 7, 2014
"git latest" command will show you all branches by last-updated date
View git-latest
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 Dec 25, 2015
my cookieclicker game
View gist:6945483
MS4wMzc1fHwxMzc5MzU3Nzg4MzU1fDExMTExMXwxODU3MTYyODA2ODEwNS45Nzc7NTExOTg3ODkwMTQ0NTAuMDU7NjM0MDs0MDs0ODY2MzQxMDkzMzQuNjY5OzQyMzstMTstMTswOzA7Mjs0ODQ2ODswOy0xfDEzNCwxNzMsMjk4NzAxNzY5MDcsMDsxNTAsMTYyLDU4MDU1NDU2MTU4NCwwOzk4LDEwMywzNTYyNTY5MjAsMDs4NSw4Niw4NDg3NTA0NjQsMDs3OCw3OSwyNzQ0NzgzODYxLDA7NzAsNzAsNTc2NzMzODU4OCwwOzYzLDYzLDE3MjAzMjI1OTY0LDA7NzcsNzcsMzcyMzIwNzI3MDg1LDA7NDgsNDgsMTgwNjIyMzcwNTMxMiwwOzQwLDQwLDEwMzQ2NzEzOTE1MDg3LDA7fDQ1MDM1OTk2MjczNzA0OTU7NDUwMzE4NzMxMDUxMDA3OTs0NTAzNTk5NjI3MzcwNDcxOzM5NDA2NTI0OTMwNTY1MTE7NTYzNDk5NzE1NTcwNTkxfDM4Njk3MjkxNjA2OTE3MTE7MjI1MjA5NzUwMjIyMjA0MzsyMw%3D%3D%21END%21
You can’t perform that action at this time.