Skip to content

Instantly share code, notes, and snippets.

https://gondul.tg23.gathering.org
# Base config for TP-Link TL-SG3428.
# Requires reboot
sdm prefer enterpriseV4
# Disable SDN
no controller cloud-based
no system-time ntp
no system-time dst
#!/usr/bin/expect -f
# Dependencies: expect cu
# Access to serial devices requires you to be in the dialout group.
# If you're not in tha groups, run "sudo chmod 666 /dev/ttyUSB*" first instead.
puts "Bootstrap script for TP-Link T2600G variants."
puts ""
@HON95
HON95 / gist:360c3896e0ba7ff4e98802fab91bb2f9
Created September 26, 2021 12:14
InfluxDB Docker alternative bootstrap script
#!/bin/bash
set -eu
INFLUX_USERNAME="admin"
INFLUX_PASSWORD="password123"
INFLUX_ORG="main-org"
INFLUX_BUCKET="main-bucket"
INFLUX_RETENTION="0"
@HON95
HON95 / ffmpeg.md
Created May 6, 2021 16:31 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@HON95
HON95 / remote-html-shell.sh
Created February 14, 2019 11:26
For a web security lab
#!/bin/bash
echo Content-type: text/html
echo ""
## make POST and GET stings
## as bash variables available
if [ ! -z $CONTENT_LENGTH ] && [ "$CONTENT_LENGTH" -gt 0 ] && [ $CONTENT_TYPE != "multipart/form-data" ]; then
read -n $CONTENT_LENGTH POST_STRING <&0
#eval echo "${POST_STRING//;}"|tr '&' ';'
fi
#eval echo "${QUERY_STRING//;}"|tr '&' ';'
@HON95
HON95 / gpg_pubkey
Last active January 21, 2018 07:28
GPG Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFpkP0QBEACljjL2RyBW5kkUcYgyl6PFQDU2z7uCaiMt7B/153Ex10QVYuWG
inNau2bwLFWfh8w3liZW97+schEEDNLuLAR/mor9BHPlhlfBXhen90ttLJNyH9qj
1/gH4bMQ+TJDdLErpeH9tHtn124iutqIP2gPYVZLS/5+iSTLJKAP4KI7McoC1uUX
3Ul17F/MgUoFfHrtv1cHPp1zlG7AfjeQVQCVjHA9pQ4nAb0GGkyId1gQbOTvpNUD
9nmYx3bm90UP1M8T+kEyc7BZuKSwkDS/CrKPryhIJRvIYMAbnvTvohTkPUTPwCAm
BvxrJaOy4ioKui6M/VqZy7q6zHrcB++yPCxC9ca9BkWYxZSFTPQjHJafJPItMAeU
STHtRgex6RuP45PpVx87n46ZGOgAuV9kU1MTfq235ZUbQgbKCHD17FR3ofIIuBlV
6E8DpQp7bpvp8iqnWIEGJesjf8rC6O2B2sjmTxc5QkVyafeC/AOZvk7kkp/fx8fu
@HON95
HON95 / ssh_pubkey
Last active January 21, 2018 07:45
SSH Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNqlSxfxo1eEbgskyiX4THQa2RaGXvejWhclGEP1P7JfbbYzQ3eldTcqZWVWJQtI19nrwgXXe9HcHulioKz812yDMIkGkb0g0DAkmKqv0la2DSV6vbWHAky9mImipcdjivPl6dJ/SJX10lUulGr6qlde50Johkxbhhn9Iiz4ZQO0hUJo6cxIkPVwdfhcI76yENSgv3ElVDG4n2tmZpYHxF70C6AI9WusH928Osyc4RNTv4NFYm7mHganrA17iHiUZB1cxtW/aMFhOcBkGKbTQ7NnrSnt/rHB+My3hxZ2NpRlN4Q7X3kAaDY+vl+sk97nfnedSoJPZvDfSAuzsI7FJw1Z9hX7XxPHY7p1bdXCbFhtg4OMlfTgdAqjZELOxgd4n/JAgt5Y9hL0G14Klk/ZD1DdZTPaYvpXOKWayWrvVBHaPWKrgxA3H92+oXgcpbJUBxr75rG1kzjZ77bOXOX4JO3kBThGpFiBP+QSvlEmjX5p8REqO/TPtcHblhihi+7UzoFSalIcxTU/x5z2bFmuc8IOQmky2ttlV54YwicJlJuN+m4v/J5BhhUlEHz1HoFIAztzCxg3Mi6hWVBtWM5xwWtAveenlawS8hO7vak9zTgfO5i8PK6OwI8K1H5aoel9/5B9kBUy4ACnkGFr7nyJ1DLR60w6mYsP5mj478hQ8VzQ== haavard.nordstrand@gmail.com
/*
Pinout:
Connect pin #1 of the expander to Analog 5 (i2c clock)
Connect pin #2 of the expander to Analog 4 (i2c data)
Connect pins #3, 4 and 5 of the expander to ground (address selection)
Connect pin #6 and 18 of the expander to 5V (power and reset disable)
Connect pin #9 of the expander to ground (common ground)
*/
#include <Wire.h>

Keybase proof

I hereby claim:

  • I am hon95 on github.
  • I am hon (https://keybase.io/hon) on keybase.
  • I have a public key whose fingerprint is 7FE1 52A7 EF8D 5FF7 1E5E 1EF4 13ED B5CC 23D1 6C7A

To claim this, I am signing this object: