Skip to content

Instantly share code, notes, and snippets.

View reelsense's full-sized avatar
🇺🇸
1635 E58A 7EFB EC41 0C0F 6FCF 14C1 182B C579 36B2

Bryan Black reelsense

🇺🇸
1635 E58A 7EFB EC41 0C0F 6FCF 14C1 182B C579 36B2
View GitHub Profile
@reelsense
reelsense / help-vultr-freebsd_zroot.md
Last active January 19, 2022 15:34
Help - How to get FreeBSD zroot on Vultr baremetal

Help - How to get FreeBSD zroot on Vultr baremetal

Some baremetal server providers support FreeBSD, but they rarely provide a zfs on root option to install the OS on a mirrored or striped zraid.

Why is this important?

Beside the obvious benefits of ZFS, it's a required dependency for certain jail managers, like iocage.

@reelsense
reelsense / help-network_anal.md
Last active November 4, 2020 02:09
Network Analysis

Network Analysis

Log Searching

cat example.log | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | sort | uniq -c | sort

Monitoring

@reelsense
reelsense / help-gpg-agent.md
Last active August 4, 2020 02:22
help-gpg-agent

Help Desktop Applications usegpg-agent for Yubikey.

How do I use my Yubikey with desktop applications like Sequel Pro or MySQL Workbench?

When you use the GPG Agent (with or without smartcard, the agent takes care of that, so it's not a problem if you don't have one I think) it should ask for the passphrase of your GPG key (or the PIN of the smartcard in my case) and not the SSH password.

But how it works now is that the SSH attempt asks for the SSH password, not the GPG passphrase.

Ok, here is an example: >

@reelsense
reelsense / list-blocklists
Last active March 7, 2020 15:48
List of block lists for SSH and SIP probes
# SIP probes to Asterisk servers
https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/bi_voip_2_30d.ipset
https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/gofferje_sip.netset
https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/blocklist_de_sip.ipset
https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/voipbl.netset
# dataplane_sipquery
https://dataplane.org/sipquery.txt
# VNC probes
https://www.dragonresearchgroup.org/insight/vncprobe.txt dragon_vncprobe

Bookmark Javascript

Archiving shortcuts

archive.org

javascript:void(open('https://web.archive.org/save/'+encodeURI(document.location)))

Cron

At 09:00 on Monday in every month.

0 9 * */1 1 /usr/sbin/service mumble-server restart

At 09:00 on Monday.

0 9 * * 1 /usr/sbin/service mumble-server restart
@reelsense
reelsense / fstab
Created November 8, 2019 00:41
mergefs fstab example
/mnt/disk*:/mnt/tank/fuse /mnt/storage fuse.mergerfs defaults,allow_other,direct_io,use_ino,hard_remove,minfreespace=250G,fsname=mergerfs 0
@reelsense
reelsense / help-unfuck-virtualbox-freebsd-11-2-not-booting.md
Last active October 13, 2019 08:35
How to fix FreeBSD 11.2-RELEASE not booting because of error "Fatal trap 12: page fault while in kernel mode"

How to fix FreeBSD 11.2-RELEASE not booting because of Virtual Box driver.

I entcountered a bug with virtualbox-ose-nox11-5.2.14_1 & virtualbox-ose-kmod after upgrading to FreeBSD 11.2-RELEASE on first reboot.

The system would enter a boot loop with this crash error:

supdrvGipCreate: failed to allocate the GIP page
@reelsense
reelsense / help-ssh-tips.md
Last active July 17, 2019 00:08
Helpful SSH tips

Helpful SSH tips

Executing a single command:

ssh USER@HOST ls

sudo requires interactive shell, it can be enabled with -t parameter:

ssh -t USER@HOST sudo ls /root