Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
Whilefalse

Colten Krauter coltenkrauter

🎧
Whilefalse
View GitHub Profile
@coltenkrauter
coltenkrauter / fix-chmod-wsl2.sh
Last active Nov 29, 2019
Remount NTSF drive in WSL2 with the metadata option so chmod will work.
View fix-chmod-wsl2.sh
# Remount NTSF drive in WSL2 with the metadata option so chmod will work.
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
# If you get an error "target is busy" then try to cd / before running the above commands. You may also have to exit other terminals that are using WSL2.
@coltenkrauter
coltenkrauter / docker-pip3-cryptography-dependency
Last active Sep 29, 2020
Resolve issues where docker pip install fails due to a cryptography dependency.
View docker-pip3-cryptography-dependency
# https://github.com/odoo/odoo/issues/8849#issuecomment-322115976
# For APT
apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
# For APK
apk add python3-dev libffi-dev libressl-dev openldap-dev
# Example alpine docker file
FROM python:3.7-alpine
@coltenkrauter
coltenkrauter / .profile
Last active Mar 2, 2021
WSL2 .profile
View .profile
# ~/.profile
cd ~/Repositories
# Useful aliases
alias subl="/mnt/c/Program\ Files/Sublime\ Text\ 3/subl.exe"
alias chrome="/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe"
alias github="chrome https://github.com/coltenkrauter?tab=repositories"
alias downloads="echo /mnt/c/Users/Colten/Downloads/"
alias clo="git clone"