Skip to content

Instantly share code, notes, and snippets.

View mauvehed's full-sized avatar
:shipit:
hax.

mauvehed mauvehed

:shipit:
hax.
View GitHub Profile
@mauvehed
mauvehed / evennia_db_problems.txt
Last active February 25, 2024 19:24
evennia problems
❯ rm server/evennia.db3
❯ evennia migrate
Database not available yet - using temporary fallback for create managers.
Operations to perform:
Apply all migrations: accounts, admin, auth, comms, contenttypes, flatpages, help, objects, scripts, server, sessions, sites, typeclasses
Running migrations:
Applying typeclasses.0001_initial... OK
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
@mauvehed
mauvehed / docker_image_save.md
Created November 21, 2023 14:48
Save a running docker as a new image

Save a running docker as a new image

The following will show you how to create a new docker image from a running container that you have modified. The image will only exist locally, meaning you can only access and use it on the computer you create it. It will not be associated with any container registry.

We will start with the ubuntu container image as our base.

Run and attach to a container

docker run -a stdin -a stdout -it ubuntu /bin/bash

@mauvehed
mauvehed / revert_last_git_commit.sh
Created October 21, 2023 21:38
Revert last git commit
git reset --hard HEAD~1
@mauvehed
mauvehed / tail scale-docs.md
Created October 6, 2023 16:02
Tailscale documentation collection
@mauvehed
mauvehed / Nextdns_UDM.md
Last active October 11, 2023 22:21
Using NextDNS on UDM Pro

NextDNS on UnifiOS

Source https://github.com/nextdns/nextdns/wiki/UnifiOS

To upgrade/uninstall, run this command again and select the approriate option

sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'

You can use the nextdns command to control the daemon.

@mauvehed
mauvehed / create_pfx_from_crt_and_key.md
Last active October 21, 2023 14:06
Create PFX file from a CRT and KEY file

Create PFX file from a CRT and KEY file

Some services require a combined pfx file to provide TLS to a client

Generating the pfx file

The easiest way is to utilize openssl on the command line. Assuming you already have the .crt and .key files, run the following command.

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

Generating the pfx file with root CA and intermediate certs

@mauvehed
mauvehed / BashGPT.sh
Created March 3, 2023 13:25
ChatGPT lookup using bash on the command line
#!/bin/bash
# bashGPT - richinseattle (who failed to gist it, but all credit is given)
[ "${OPENAI_API_KEY}" == "" ] && echo "Please set OPENAI_API_KEY env variable" && exit
[ "$(which jq)" == "" ] && echo "Please install the jq program" && exit
[ "$(which curl)" == "" ] && echo "Please install the curl program" && exit
PROMPT="$1"
while true
@mauvehed
mauvehed / git_gpg_keysign.md
Last active January 31, 2023 16:37
Signing commits for Git with GPG
@mauvehed
mauvehed / asdf_commands.md
Last active January 27, 2023 13:54
asdf commands (multi-language version manager)

ASDF

Getting started

MacOS

brew install gpg gawk asdf

Add to shell (~/.zshrc)

@mauvehed
mauvehed / Tailscale_Docs.md
Last active February 7, 2023 15:45
Tailscale Documentation and Links