Skip to content

Instantly share code, notes, and snippets.

View alsunseri's full-sized avatar

Al Sunseri alsunseri

  • NYC, NOLA
View GitHub Profile
@mvadu
mvadu / upnpPortMapper.sh
Created March 30, 2019 02:13
THis script uses upnp client (upnpc) to talk to router and open ports
#!/bin/bash
#~/bin/upnpPortMapper.sh
#sudo apt-get install miniupnpc
#crontab -l | grep upnp || echo $(crontab -l ; echo '*/5 * * * * ~/bin/upnpPortMapper.sh >/dev/null 2>&1') | crontab -
export LC_ALL=C
router=$(ip r | grep default | cut -d " " -f 3)
gateway=$(upnpc -l | grep "desc: http://$router:[0-9]*/rootDesc.xml" | cut -d " " -f 3)
ip=$(upnpc -l | grep "Local LAN ip address" | cut -d: -f2)
@rubinhozzz
rubinhozzz / install_pgadmin4
Last active August 19, 2023 16:41
Install pgAdmin4 (Python wheel)
1. Download last version of Python wheel: https://www.pgadmin.org/download/pgadmin-4-python-wheel/
2. Install wheel
mkdir ~/pgadmin4
cd ~/pgadmin4
python3.X -m venv venv
. venv/bin/activate
pip install pgadmin4-X.X-py2.py3-none-any.whl
@slmingol
slmingol / tcp_flags.txt
Created July 21, 2018 23:19 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@mdonkers
mdonkers / server.py
Last active April 4, 2025 13:11
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
Found: master for n1trux/awesome-sysadmin — A curated list of amazingly awesome open source sysadmin resources. — 3174⭐️ — last updated 14 days ago
🔎 Checking 407 links
⚪ https://easybuild.readthedocs.org/en/latest/
⚪ http://cobbler.github.io/
⚪ http://andrewchilds.github.io/overcast/
⚪ http://tumblr.github.io/collins/
⚪ https://retspen.github.io
⚪ http://hekad.readthedocs.org/en/latest/
⚪ https://phpsysinfo.github.io/phpsysinfo/
⚪ http://graphite.readthedocs.org/en/latest/
@thde
thde / whois.conf
Last active January 17, 2025 07:43
/etc/whois.conf WHOIS records for nTLDs.
##
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)
# Current as of 2017-12-10 UTC
##
\.aarp$ whois.nic.aarp
\.abarth$ whois.afilias-srs.net
\.abbott$ whois.afilias-srs.net
\.abbvie$ whois.afilias-srs.net
\.abc$ whois.nic.abc
@codeb2cc
codeb2cc / gist:3347349
Created August 14, 2012 08:02
Terminator config file
[global_config]
title_hide_sizetext = True
title_transmit_bg_color = "#ededed"
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
title_transmit_fg_color = "#080808"
title_inactive_bg_color = "#ededed"
[keybindings]
[profiles]
[[default]]
use_system_font = False