Skip to content

Instantly share code, notes, and snippets.

View howird's full-sized avatar

Howard Nguyen-Huu howird

View GitHub Profile
#!/usr/bin/env python3
"""
BITWARDEN PASSWORD CONFLICT RESOLVER AND DUPLICATE REMOVER
----------------------------------------------------------
PREREQUISITES:
-------------
- a working Python 3 installation
- A CSV file export of your Bitwarden Data. Bitwarden Web -> Tools -> Export Data format: .csv
@howird
howird / docker-root-script.sh
Last active March 13, 2024 19:11
Create a new user with your uid and groups in a docker container and change the owner of the provided directory to the new user.
#!/bin/bash
# This script is useful if you have a directory whose contents are owned by a root user within
# a docker container. This makes it difficult to delete or modify that directory without sudo
# priviledges. Example usage to quickly make yourself the owner of a directory:
# - start a docker container (if needed) mapping a folder to a dir called `/to-own` in the container:
# docker run -d -v <path to desired folder>:/to-own --name tmp-cntnr debian:stable-slim sleep inf
# - run the script, specifying the name/id of the container and the folder to `chown`:
# ./docker-root-script.sh tmp-cntnr /to-own
# - delete the container:
@howird
howird / grid_journal.tex
Created July 31, 2023 22:25
4-day journal for A4 paper with dot grid
\documentclass[a4paper]{article}
\usepackage[margin=0pt]{geometry}
\usepackage{xcolor}
%% https://tex.stackexchange.com/a/162467
\usepackage{background}
\usetikzlibrary{decorations.markings,calc}
\def\Step{0.5} %% separation between dots
\def\Size{0.5pt} %% radius of the dot