Skip to content

Instantly share code, notes, and snippets.

jayluxferro /
Created October 13, 2022 15:22
Fix for Kali apt-key deprecation warning when updating system

Run the command below to fix apt-key deprecation warning in Kali

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
jayluxferro /
Created March 3, 2021 11:25
Cluster size for wireless networks
#!/usr/bin/env python
list = []
def n(i, j):
return (i ** 2) + (j ** 2) - (i * j)
for x in range(1, 11):
for y in range(x + 1):
_n = n(x, y)
jayluxferro /
Last active August 21, 2023 23:09
WireGuard Installer
if [ $(whoami) != 'root' ]; then
echo 'Please run as root'
exit 1
# install wireguard
apt install resolvconf wireguard wireguard-tools -y
jayluxferro /
Created May 24, 2020 17:47
IPTables Reset to default
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
jayluxferro / MidIPlayer
Created April 4, 2020 20:43 — forked from genedelisa/MidIPlayer
Swift AVMIDIPlayer
/// soundbanks are either dls or sf2. see
var soundbank:NSURL!
var mp:AVMIDIPlayer!
func playMIDIFile() {
// Load a SoundFont or DLS file.
self.soundbank = NSBundle.mainBundle().URLForResource("GeneralUser GS MuseScore v1.442", withExtension: "sf2")
// a standard MIDI file.
jayluxferro /
Last active October 18, 2020 21:54
binwalk installer
# root access
if [ $(whoami) != 'root' ];
echo 'Please run as root'
exit 1
apt-get install python3 python3-pip python3-crypto python3-numpy python3-scipy python3-pip mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsswap squashfs-tools sleuthkit default-jdk lzop srecord zlib1g-dev liblzma-dev liblzo2-dev git -y
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
# Odoo Server Config File - TurnKey Linux
jayluxferro / gist:ea193da776d9bb03db3034c0708b7cde
Created May 15, 2019 08:21 — forked from jovimon/gist:524e116471f249626fd2ccd141f3fe05
compile realtek network driver for pfsense 2.4.x

How to compile and install latest realtek network driver in pfSense 2.4.x (FreeBSD 11.1)

  1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD.

  2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:

    fetch -o /tmp`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
  3. Download latest Realtek network driver (you need to input an email address).

jayluxferro / pcap2wav
Created May 4, 2019 19:52 — forked from avimar/pcap2wav
Convert raw PCAP files into a .wav file
# pcap2wav
# Original Author: Michael Collins <>
#Standard disclaimer: batteries not included, your mileage may vary...
# Updated by Avi Marcus <>
# Accepts arg of pcap file w/only 2 RTP streams
# Creates a .<codec> file and a .wav file
# For codecs other than PCMA and PCMU the script calls fs_cli and does a little recording to create the wav file(s)
jayluxferro /
Created April 14, 2019 11:28 — forked from kevin-smets/
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)