Skip to content

Instantly share code, notes, and snippets.

@scfcode
scfcode / macOS.local.md
Last active July 31, 2022 00:44
macOS .local domain concern

To get rid of the .local in my hostname I had to do

sudo scutil --set HostName mymachine

Before this I got mymachine.local back from hostname

After this I just get mymachine, no .local part

Also go into the network System Preferences and make sure there are no Advanced setting (DNS IIRC) that specify a domain

@scfcode
scfcode / ubud-pool.md
Created July 31, 2022 22:21
ZFS Pool for some quick save

Quick hack for some storage (added from PVE)

apt-get install zfs-dkms

zpool create pool /dev/sdb

cd /pool/

chown scf:scf .

@scfcode
scfcode / Firefox - disable captive portal checl
Created August 7, 2022 03:36
Disable Captive Portal Check in Firefox
network.captive-portal-service.enabled
set to false
via about:config
@scfcode
scfcode / Likely pretty ghastly, but I wanted Ordinal Dates for today, tomorrow, and yesterday...
Last active September 3, 2022 00:22
Ordinal Dates for today, tomorrow, and yesterday... #zsh #today #tomorrow #yesterday #ordinal #date
#!/bin/zsh
# set -x
alias date=/usr/local/opt/coreutils/bin/gdate
today () {
echo $(date --date='today' +%e)
}
tomorrow () {
@scfcode
scfcode / macOSipV6off.md
Created September 5, 2022 06:40
Turn off IPv6 on macOS Big Sur
$ networksetup -listallnetworkservices

An asterisk (*) denotes that a network service is disabled.
Wi-Fi
Bluetooth PAN
Thunderbolt Bridge

$ networksetup -setv6off "Wi-Fi"
@scfcode
scfcode / cifspi.md
Last active September 5, 2022 22:37
get cifs to mount on my Pi #cifs #raspberryPI

To get cifs to mount on my Pi

lsb_release -a No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

hostnamectl

@scfcode
scfcode / crazyzfs.md
Last active October 5, 2022 01:37
Crazy ZFS filesystem in Proxmox via CIFS - FrankenFS #zfs #crazy
@scfcode
scfcode / sftpgo.md
Created October 10, 2022 02:15
SFTPGo SFTP Server deployed via Docker #sftp #sftpd
@scfcode
scfcode / SecurityScribbles.md #security
Last active October 12, 2022 03:12
Security Scribbles
# Security scribbles based on Lawrence Systems youtube Episode 74
The Homelab Show Episode 74: Tips For Securing Your Homelab
https://www.youtube.com/watch?v=Hu8NV9XFBNE
Passwords self hosted Bitwarden
Use vlans
Don't use "no name" sec. cams
@scfcode
scfcode / NixNotes.md
Created October 17, 2022 23:24
Looking at Nix #nix