Skip to content

Instantly share code, notes, and snippets.

@shapeshed
shapeshed / reading_list.md
Last active Feb 1, 2018
Cryptocurrency Reading List
View reading_list.md

Privacy

  • [Zerocash][1]
  • [Cryptonote][2]
  • [Mimblewimble][3]
  • [Tumblebit][4]
  • [Hawk][5]
  • [Mobius][6]
  • [Enigma][7]
  • [Dash][8]
@shapeshed
shapeshed / tmux settings
Last active Aug 29, 2017
tmux cricket status bar
View tmux settings
set-option -g status on
set-option -g status-left-length 80
set-option -g status-interval 2
set-option -g status-left '#(curl -k -L -s http://www.cricinfo.com/ci/engine/match/1031661.html | pup "title text{}" | cut -d "|" -f 1)'
View dell.sh
#!/bin/sh
xrandr --output HDMI2 --off --output HDMI1 --primary --mode 3840x2160 --scale 1x1 --pos 0x0 --rotate normal --output DP1 --off --output eDP1 --mode 3840x2160 --pos 0x2160 --rotate normal --output DP2 --off
@shapeshed
shapeshed / ethup.sh
Created Aug 16, 2017
ethup - bring up an eth cluster and unlock accounts
View ethup.sh
#!/usr/bin/env bash
set -eEu -o pipefail
NODES=(node0 node1)
ETHDATA=~/.ethraft
GETH=/home/go/.gvm/pkgsets/go1.8.1/global/src/github.com/ethereum/go-ethereum/build/bin/geth
VERBOSITY=9
for n in ${NODES[@]}; do
@shapeshed
shapeshed / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 — forked from LoranKloeze/whatsapp_phone_enumerator_floated_div.js
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
View whatsapp_phone_enumerator_floated_div.js
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
View httputil.go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/httputil"
"os"
)
@shapeshed
shapeshed / aws-cf-logs
Last active Feb 12, 2021
Fetch AWS Cloudfront Logs, decompress, combine into a single file and remove comments
View aws-cf-logs
#!/usr/bin/env bash
BUCKET=$1
CWD=$(pwd)
if [[ -n $1 ]]; then
aws s3 sync s3://$BUCKET/cf-logs .
cat *.gz > combined.log.gz
find $CWD ! -name 'combined.log.gz' -name '*.gz' -type f -exec rm -f {} +
gzip -d combined.log.gz
@shapeshed
shapeshed / gist:0bff69546ae312899d51
Created Nov 11, 2015
S3 Hosted Site custom domain proxy
View gist:0bff69546ae312899d51
server {
listen 80;
server_name some.domain.com;
location / {
access_log off;
resolver 8.8.8.8;
set $backend "somebucket.s3-website-eu-west-1.amazonaws.com";
proxy_pass http://$backend;
proxy_redirect off;
proxy_set_header Host $backend;
View gist:c5f58c2c410a1bede1a6
7a29b835e5914fb4aeb2859c2c77b1d0
37d87edd33e7c75372590ba9cc2db797