Skip to content

Instantly share code, notes, and snippets.

View code2man's full-sized avatar

Edwin code2man

  • https://www.celsusmobile.com
  • Nairobi, Kenya
View GitHub Profile
# PREP
# *Read* other materials first to familiarize yourself with wireguard and wireguard on FreeBSD / Android:
# genneko has a nice writeup that is easy to follow and much better formatting here:
# https://genneko.github.io/playing-with-bsd/networking/freebsd-wireguard-android/
# Backup your entire pfsense system, or run this on a vm after a good snapshot. Failure to do this can easily break you, you
# have been warned. This is entirely unsupported. Wireguard on PFSense is experimental at this time. Nothing has been
# tested by me on non AMD64 arch, so unsure if arm pkgs are available.
# Backup your package database just in case since this impacts core PFSense runtime dependancies.
@code2man
code2man / Spotify_Eliminate_Advertisements
Created August 12, 2021 15:32 — forked from mrprobot/Spotify_Eliminate_Advertisements
Eliminate Spotify Advertisements + Complete Server List
##################################################
# ELIMINATE SPOTIFY ADS - UPDATED FREQUENTLY #
##################################################
SPOTIFY CURRENTLY WORKS HARD IMPROVING ITS APP AND NETWORK. WHAT IS REALIZED NOW? NO AUDIO/VIDEO ADS IN THE OLD APP,
THE NEW APP, CHROMECAST, WEBSITE (DID NOT TEST THAT ONE).
NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD!
ALTERNATIVELY YOU CAN ALSO BLOCK THE FOLLOWING IP ADDRESSES IN YOUR ROUTER:
@code2man
code2man / list.md
Created July 11, 2021 20:03 — forked from ih2502mk/list.md
Quantopian Lectures Saved
# Top ten (or whatever) memory utilizing processes (with children aggregate) - Can be done without the multi-dimensional array
ps axo rss,comm,pid | awk '{ proc_list[$2] += $1; } END { for (proc in proc_list) { printf("%d\t%s\n", proc_list[proc],proc); }}' | sort -n | tail -n 10
# Download last file from index of
NAME=`wget --quiet URL -O - | grep util-vserver | tail -n 1 | sed 's|</a>.*||;s/.*>//'`; wget URL$UTILVSERVER;
# Delete newline
tr -d "\n" < file1 > file2
# which procs have $PATH_REGEX open?
find /proc -regex '/proc/[0-9]+/smaps' -exec grep -l "$PATH_REGEX" {} \; | cut -d'/' -f2
# Adding formatting to an xml document for easier reading
xmllint --format <filename> > <output file>
@code2man
code2man / .bash_profile
Created November 17, 2016 01:47 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management