Skip to content

Instantly share code, notes, and snippets.

@netravnen
netravnen / WireSharkColorFilter.txt
Last active November 27, 2024 19:03
WireShark ColorFilter declaration
# This file was created by Wireshark. Edit with care.
#
### ENABLED BY DEFAULT ###
#
# These ColoringRules will mark all TCP Retransmissions (and other interesting TCP
# events) with an easy to spot red background color. This makes it very easy to
# spot where PacketLoss occurs for TCP based protocols and can be used to quickly
# find performance issues related to PacketLoss.
#
# This filter requires that the preference for Analyzing TCP Sequence numbers has
###
### B.1 TOP-LEVEL INTERNET ORGANIZATIONAL WHOIS SERVERS
###
#
# ICANN gTLD WHOIS (run by Verisign)
whois.internic.net
# IANA
#whois.iana.net - NXDOMAIN
whois.iana.org
# Network Solutions, Inc. for Shared Registration System
# read -p "Useraccount: " user_account
# sh -c 'if [ -d $HOME/.dotfiles ]; then rm $HOME/.dotfiles; fi
# git clone https://code.netravnen.org/netravnen/dotfiles $HOME/.dotfiles
# for FILE in $(ls -al1 $HOME/.dotfiles/dotfiles | grep "^-" | cut -c52-); do
# if [ -f $HOME/$FILE ]; then rm $HOME/$FILE; fi # Remove conflicting files in homedir
# done
# if [ -d $HOME/.byobu ]; then rm -rf $HOME/.byobu; fi # Remove byobu from homedir
# cd $HOME/.dotfiles && git pull && stow -R dotfiles && cd
# source .bashrc' user_account
acme-v02.api.letsencrypt.org
root@atlasprobe:/opt/ripe-atlas-software-probe# git pull --progress --recurse-submodules --all
Fetching submodule probe-busybox
Already up to date.
root@atlasprobe:/opt/ripe-atlas-software-probe# cd ..
root@atlasprobe:/opt# ./ripe-atlas-software-probe/build-config/debian/bin/make-deb
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
@netravnen
netravnen / rslsync-ufw.sh
Last active January 29, 2024 11:59 — forked from auipga/rslsync-ufw.sh
Help configuring ufw for Resilio Sync (rslsync)
#!/bin/bash
# Author: https://gist.github.com/auipga/
# Based on:
# Sync (outdated?): https://kb-archive.getsync.com/kbs/1.3.5/kb/hc/en-us/articles/210153106-Ports-and-protocols-used-by-Resilio-Connect.html
# Resilio Connect: https://help.getsync.com/hc/en-us/articles/204754759-What-ports-and-protocols-are-used-by-Sync-
# todo: read sync.conf from resilio server, parse json, fill IPs dynamically
# todo: delete duplicate rules as 'host' returns multiple IPs for resilios domains
@netravnen
netravnen / install_pimd_dense_repo.sh
Last active November 28, 2023 17:52
Install FRR and Proxmox repositories on non-proxmox and proxmox hosts
###
### Install the PIMD-DENSE repository hosted by troglobit - https://github.com/troglobit/pimd-dense
###
REL=$(lsb_release -sc);
ARCH="amd64";
apt-get install --yes lsb-release gpg curl wget;
if [[ "${ARCH}" == "amd64" ]]; then
#! /usr/bin/env bash
###
#
# Example input 100.64/10 -> 100.64.0.0 255.192.0.0
#
# Split into /24's -> cidr 255.255.0.0
# Split into /16's -> cidr 255.255.255.0
#
# Replace cidr with relavant value, if splitting on non-classful boundaries
@netravnen
netravnen / pcaptail.c
Last active August 9, 2022 13:08
The C program has been modified to be able to compile on Ubuntu 22.04 LTS with `clang -Wall` - Original copyright holder is user @tobez
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42)
* <tobez@tobez.org> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Anton Berezin
* ----------------------------------------------------------------------------
*/
/*
* $Id: pcaptail.c,v 1.1 2006/08/21 11:51:17 tobez Exp $
@netravnen
netravnen / inoreader_tags_delete.js
Created July 30, 2022 09:50
Easy delete all your inoreader tags. As the current menu does not allow bulk deleting the tags from the settings menu.
// Last modified: 2022-07-30
setInterval(function () {
// Select tag to delete, goes top down order
var tag = document.querySelector(
'span.icon-delete-subscription[title="Delete tag"]'
)
// Click the trash can (delete) icon
tag.click()