Skip to content

Instantly share code, notes, and snippets.

View Xantios's full-sized avatar

Xantios Krugor Xantios

  • Netherlands
View GitHub Profile
@Xantios
Xantios / caddy.md
Last active December 25, 2023 18:35
Caddy on FreeBSD / OPNSense

A short intro

FreeBSD is nice and all, but editing files on it sucks (and i want to keep my firewall kinda clean) so lets get Mutagen up and running first

mkdir caddy
cd caddy
mutagen sync create --name Caddy . root@10.0.0.254:~/caddy/
@Xantios
Xantios / proxmox_enterprise_stuff.md
Last active April 12, 2024 02:53
Proxmox semi-free

Get a license!

Really, if you are running this in anything production alike, just get a license!!

But im running a lab env, or im a filthy pirate!

Well you cant get access to the enterprise repo's. so get a license instead.

but if you want to remove the annoying nag message:

sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
@Xantios
Xantios / hacking-around-with-ffmpeg-libav.md
Created January 12, 2021 18:25
Hacking around with FFmpeg

Whut?

So first things first, there is/was a fork of FFMPeg called LibAV. if you looking for docs on that, good luck!

libav (the actual code that makes ffmpeg tick) is a C library so we have to tinker with some low-level stuff

Install

first off, install pkg-config brew install pkgconfig should fix that for you. ofcrouse you can install ffmpeg the same way if you did not do so already

@Xantios
Xantios / snapd.remove.md
Created October 27, 2020 21:23
Removing snapd from Ubuntu

Why?

Because Snapd can blow my magic flute, there is just some much wrong with snapd that i COULD write a gist on that. but it would get pretty ranty

Fair enough, so how ?

First of they ship the new versions of Ubuntu server with LXD and some stuff pre-installed. so first make sure they fuck off by running:

sudo snap remove snap-store
@Xantios
Xantios / ubuntu_nic_netplan.md
Last active March 22, 2024 13:13
Ubuntu 20.04 Network setup with NetPlan and NetworkManager

Whut?!

Ubuntu 18.10 and onwards use netplan for the configuration of network interfaces. although im fine with it, it seems Cockpit and some other software dont like it as much.

Solution

Let Netplan configure the interface and hand-off further managent to NetworkManager.

notice: NetworkManager is not a X Application, although the name might sound like one.

@Xantios
Xantios / samba-server.md
Last active August 30, 2020 17:26
Samba Server stuff

Why?!

I cant remember how Samba configs work because the syntax is just plain stupid to me. Also, mostly set it up when i replace my server.

I want it to integrate propperly with my Mac and be usable over a VPN.

Samba

As being said, i want to see my homedir, so lets install samba

Why?

Long story short? My Macbook Pro 2016 is a pain in the bum It seems to be kicking the bucket soon

Also; Running your own weird "cloud" is just cool!

Docker server

Just make sure you are running dockerd (docker ps should give you a hint) Also make sure you have ssh-key auth set up propperly.