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
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
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"
)
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
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
View course.json
{
"course": {
"name": "iOSH Health and Safety",
"arborId": "123",
"modules": [
{
"title": "Introducing Managing Safely",
"sections": [
{
"title": "Introduction",