Skip to content

Instantly share code, notes, and snippets.

View dbrownidau's full-sized avatar

Damion dbrownidau

View GitHub Profile
@dbrownidau
dbrownidau / README.md
Created May 21, 2019 02:29
SSLPoke Debug quick

How 2 for debug for dummies

  1. cd to ~
  2. create a new file called "SSLPoke.java" containing the same as below
  3. javac SSLPoke.java to create SSLPoke.class
  4. java SSLPoke to execute (from current directory (classpath))

E.Z

@dbrownidau
dbrownidau / script.sh
Last active July 8, 2019 06:31
MailHog Standalone Installation / Systemd service script
# -r, --system create a system account
# -m, --create-home create the user's home directory (by default no home created for system accounts)
# -s, --shell SHELL login shell of the new account (Do system accounts get nologin by default anyway?)
sudo useradd -r -m -s /usr/sbin/nologin mailhog
# https://github.com/mailhog/MailHog/releases
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O /home/mailhog/MailHog_linux_amd64
# make exec.
# I like to keep the binary non-writeable by the executing user.
@dbrownidau
dbrownidau / script.sh
Last active November 15, 2021 22:30
Policyd installation (debian 10, postgresql, postfix)
#
# Debain 10, postgresql, postfix
# This servers as a lose lazy refernce, not a turnkey runscript.
# See: https://wiki.policyd.org/installing
# requirements
apt install libnet-server-perl libnet-cidr-perl libnet-dns-perl libmail-spf-perl libtimedate-perl libdbi-perl libdbd-pg-perl
# Use 2.1.x snapshot
wget https://download.policyd.org/v2.1.x-201310261831/cluebringer-v2.1.x-201310261831.tar.gz
@dbrownidau
dbrownidau / risLive.py
Last active September 8, 2021 05:14
cute script to feed elasticsearch
#!/usr/bin/env python3
from datetime import datetime
import json
import websocket
import time
from elasticsearch import Elasticsearch
from queue import Queue
from threading import Thread
import threading
@dbrownidau
dbrownidau / lick.js
Created August 5, 2022 13:57
Catalog everyone who liked a tweet
var set = new Set();
x = setInterval(function(){
var allSpans = document.getElementsByTagName('span');
var reg = /@/
for(let item of allSpans ){
if(reg.exec(item.textContent)){
set.add(item.textContent)