Skip to content

Instantly share code, notes, and snippets.

@janfrode
janfrode / pihole-centos8-podman.md
Last active January 25, 2023 21:16
Pi-hole in podman in Centos8

These were the steps I needed to perform to run pi-hole in a podman container on Centos8/RHEL8:

First I got it running in podman with the environment I needed (information on additional settings is available from https://hub.docker.com/r/pihole/pihole):

# podman run -d -p 53:53/udp -p 80:80/tcp -e DNS1=1.1.1.1 -e DNS2=8.8.8.8 --name pi-hole -e WEBPASSWORD=admin-password-here  docker.io/pihole/pihole

@janfrode
janfrode / podman-unifi.md
Last active November 11, 2019 07:58
Running Unifi controller in podman container

I had the unifi controller running under debian, but finally re-softet my machine to run Centos-8 instead. Before doing that I made a backup of the Unifi controller.

After installing Centos-8 I tried setting up and running the unifi container from https://github.com/jdoss/unifi simply by running:

# dnf install podman git -y
# adduser -r -s /sbin/nologin -d /opt/unifi -u 271 -U unifi
# mkdir -p /opt/unifi/{data,logs,run}
# chown -R unifi. /opt/unifi
# chcon -Rt svirt_sandbox_file_t /opt/unifi/
Verifying myself: My Bitcoin username is +janfrode. https://onename.io/janfrode
@janfrode
janfrode / gist:814d73124cb5e54b5ba0
Last active April 28, 2019 11:24
Run Tor hidden service in a set of docker containers

Docker containers seems ideal for running Tor hidden services, since they can easily be made very clean, containing little identifying data that can leak. Identifying it from the outside should be difficult.

To run a hidden web server we need two containers:

  • A simple webserver, not exposing any ports towards the Internet.
  • A TOR hidden service server, which should only be a hidden service. Not a relay!
@janfrode
janfrode / gist:f07f0a86bcea638aeb9c
Last active April 23, 2022 03:34
Import onename.io bitcoin address into bitcoin-qt
As a bitcoin newbie, I had a hard time understanding how to import the bitcoin address given
at onename.io into bitcoin-qt. Too many formats involved.. The steps I ended up running to
accomplish this was:
Passphrase given to me on onename.io was something like:
the quick brown fox jumps over the lazy dog
and the public bitcoin address was:
### Keybase proof
I hereby claim:
* I am janfrode on github.
* I am janfrode (https://keybase.io/janfrode) on keybase.
* I have a public key whose fingerprint is 917F 00D5 EC42 9B5E C4BA FD66 78C2 525B 3D04 EAE7
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am janfrode on github.
* I am janfrode (https://keybase.io/janfrode) on keybase.
* I have a public key whose fingerprint is 1330 60D9 4C65 C2CD C8BA 3554 E738 D463 64CB 5AA0
To claim this, I am signing this object: