Skip to content

Instantly share code, notes, and snippets.

@gamcoh
gamcoh / main.py
Created February 28, 2019 12:56
Change OVH DNS
# -*- encoding: utf-8 -*-
import ovh
# Instantiate. Visit https://api.ovh.com/createToken/?GET=/me
# to get your credentials
client = ovh.Client(
endpoint='ovh-eu',
application_key='<your application key>',
application_secret='<your application secret>',
@alexkay
alexkay / gist:2566869
Last active March 27, 2020 08:36
Mirrored encrypted FreeBSD install
# Start with the setup normally, then select "Shell" at the partitioning step.
# Check device names
camcontrol devlist
# Create a gpt and a bootstrap partition
gpart destroy -F ada0
gpart create -s gpt ada0
gpart add -a 4k -t freebsd-boot -s 64k ada0
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0