Before following the guide, you should be familiar with GPG and Keybase... oh and Linux ofcourse!
The dollar sign($
) means the terminal input.
- gpg # which is preinstalled in linux
- git
- zsh
- oh-my-zsh
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options change a | |
# default value. |
Sometimes you try to open a remote desktop connection to a machine only to get an error message that "the password has expired". | |
If the remote machine does not enforce NLA (Network Level Authentication), it is still possible to start a remote desktop session by disabling NLA on the client (currenlty not possible from the menu on my remote desktop client v.6.3.96000 that came with windows 8.1). | |
Add the following setting to your .rdp file ("C:\Users\<User>\Documents\Default.rdp" if you aren't using a specific one). | |
enablecredsspsupport:i:0 | |
Optionally you might need to specify |
#!/bin/sh | |
# PATH TO YOUR HOSTS FILE | |
ETC_HOSTS=/etc/hosts | |
# DEFAULT IP FOR HOSTNAME | |
IP="127.0.0.1" | |
# Hostname to add/remove. | |
HOSTNAME=$1 |
apt-get update && apt-get install -y --no-install-recommends curl && \ | |
curl -sL http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | apt-key add - && \ | |
sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list' \ | |
apt-get update && apt-get install -y --no-install-recommends \ | |
libelf1 \ | |
build-essential \ | |
bzip2 \ | |
ca-certificates \ |
#!/bin/bash | |
# Launches socat+npiperelay to relay the gpg-agent socket file for use in WSL | |
# See https://justyn.io/blog/using-a-yubikey-for-gpg-in-windows-10-wsl-windows-subsystem-for-linux/ for details | |
GPGDIR="${HOME}/.gnupg" | |
USERNAME=Vincent | |
# I use the same username for wsl and windows, but feel free to modify the paths below if that isn't the case | |
WIN_GPGDIR="C:/Users/${USERNAME}/AppData/Roaming/gnupg" | |
NPIPERELAY="${HOME}/npiperelay.exe" |
import json | |
import os | |
import certifi | |
import requests | |
from authlib.oauth2.rfc6749 import OAuth2Token | |
from flask import Flask, url_for, session | |
from flask import render_template, redirect | |
from authlib.integrations.flask_client import OAuth, token_update |
Signing with GPG in Windows System for Linux (WSL2) does not work smoothly out of the box. Notably, when using a TTY-based pinentry, signing in Visual Studio Code does not work at all.
winget install -e GnuPG.Gpg4win
or download and install manuallygpg.exe
inside of WSL:#!/usr/bin/env bash | |
if [ "$1" == "--help" ]; then | |
cat << EOF | |
Run from project folder, auto opens vscode in some mode depending on folder contents: | |
* Folder contains .devcontainer/devcontainer.json and <name>.code-workspace file: vscode opens in devcontainer, workspace file is loaded | |
* Folder contains .devcontainer/devcontainer.json: vscode opens in devcontainer | |
* Folder contains <name>.code-workspace file: Workspace is opened in vscode |