Skip to content

Instantly share code, notes, and snippets.

View jamiew's full-sized avatar

Jamie Dubs jamiew

View GitHub Profile
@jamiew
jamiew / balsn-warmup.php
Created October 8, 2019 13:48
basln-ctf 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 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 April 17, 2026 22:25 — 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]++'