Skip to content

Instantly share code, notes, and snippets.

@scfcode
scfcode / sftpgo.md
Created October 10, 2022 02:15
SFTPGo SFTP Server deployed via Docker #sftp #sftpd
@scfcode
scfcode / crazyzfs.md
Last active October 5, 2022 01:37
Crazy ZFS filesystem in Proxmox via CIFS - FrankenFS #zfs #crazy
@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 / 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 / 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 / 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 / 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 / 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 / docker_nusa_and_ubud.md
Last active September 10, 2022 21:17
Local Docker command lines #portainer

Portainer

docker volume create portainer_data

CE Version

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Switch to EE version

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always \

@scfcode
scfcode / git.notes.md
Created April 26, 2022 00:53
A few random git scribbles #git#github

…or create a new repository on the command line

echo "# minfo" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/scfcode/minfo.git git push -u origin main