Skip to content

Instantly share code, notes, and snippets.

@Samuel-Risner
Samuel-Risner / venv.md
Last active June 26, 2023 11:46
How to create a virtual environment in Python

How to create a virtual environment in Python

1. Open a terminal in the directory in which you want to create your virtual environment

2. Install the virtualenv tool

Ubuntu:

sudo apt install virtualenv
@Samuel-Risner
Samuel-Risner / typescript-webpack-config.md
Last active September 1, 2023 17:41
How to set up TypeScript together with webpack

How to set up TypeScript together with webpack

1. Setup a project

npm init

2. Install all the dependencies

@Samuel-Risner
Samuel-Risner / python-flask-development-server.md
Created August 13, 2023 17:50
How to set up a Python development server using Flask

How to set up a Python development server using Flask

1. Create the following files and directories

index.html
main.py
requirements.txt
static/js/dist
@Samuel-Risner
Samuel-Risner / install-tor-browser-on-ubuntu.md
Last active September 4, 2023 11:53
Install Tor browser on Ubuntu

Install Tor browser on Ubuntu

1. Update your system

sudo apt update
sudo apt upgrade

2. Download

@Samuel-Risner
Samuel-Risner / setup-commit-signing-with-ssh.md
Last active September 7, 2023 18:07
Setup commit signing with ssh

0. Configure git

git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"

1. Generate the key

@Samuel-Risner
Samuel-Risner / setup-pihole-with-docker.md
Last active September 12, 2023 12:32
Setup Pi-hole with Docker

Setting up Pi-hole with Docker

Config file for Portainer Stacks

version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
@Samuel-Risner
Samuel-Risner / WSL.md
Last active October 8, 2025 11:39
WSL setup and basic use instructions