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 / cloudflare-callback-example.html
Created Oct 16, 2019
Need javascript callbacks from Cloudflare in order to intelligently autoplay-mute
View cloudflare-callback-example.html
<html>
<head>
<meta charset="UTF-8">
<title>Cloudflare player javascript test</title>
<script type="text/javascript">
function loadVideo(){
const videoId = "5d5bc37ffcf54c9b82e996823bffbb81";
let player = document.getElementById('video-player');
player.innerHTML = `<stream src="${videoId}" controls="" preload=""></stream>`;
@jamiew
jamiew / balsn-warmup.php
Created Oct 8, 2019
basln-ctf warmup.php
View balsn-warmup.php
<?php
$secret=bASe64_deCODe(str_ROt13("CTygMlOmpz"."Z9VaSkYzcjMJpvCt==")))
highLIGHT_file(__FILE__)
inCLUDE("config.php"))
($op=@$_GET['op'])
&&(@strlen($op)<3
&&@($op+8)<'A_A')
?
( ($_=@$_GET['Σ>―(#°ω°#)♡→'])
&&(preg_match('/[\x00-!\'0-9"`&$.,|^[{_zdxfegavpos\x7F]+/i',$_)
@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.*
You can’t perform that action at this time.