This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -S "$HOME/.gnupg/S.gpg-agent" ] | |
then | |
GPG_AGENT="/mnt/c/Users/csl/AppData/Roaming/gnupg/S.gpg-agent.extra" | |
PREPEND_FILE="/tmp/gpg_agent_prepend" | |
WINDOWS_GPG_AGENT_PORT=$(head -n1 "$GPG_AGENT") | |
tail -n+2 "$GPG_AGENT" > "$PREPEND_FILE" | |
socat "UNIX-LISTEN:$HOME/.gnupg/S.gpg-agent,fork" \ | |
"SYSTEM:cat \"$PREPEND_FILE\" - <&3 | socat STDIO \"TCP\:127.0.0.1\:$WINDOWS_GPG_AGENT_PORT\" >&4,fdin=3,fdout=4" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"disabledProfileSources": [ | |
"Windows.Terminal.Wsl" | |
], | |
"profiles": { | |
"defaults": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install dkms linux-headers-generic | |
git clone https://github.com/anbox/anbox-modules | |
cd ./anbox-modules | |
sudo cp anbox.conf /etc/modules-load.d/ | |
sudo cp 99-anbox.rules /lib/udev/rules.d/ | |
sudo cp -rT ashmem /usr/src/anbox-ashmem-1 | |
sudo cp -rT binder /usr/src/anbox-binder-1 | |
sudo dkms install anbox-ashmem/1 | |
sudo dkms install anbox-binder/1 | |
sudo modprobe ashmem_linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright 1995 Hrvoje Dogan, Croatia. | |
# Copyright 2002-2004, 2008, 2009, 2010 Stuart Winter, Surrey, England, UK. | |
# Copyright 2004, 2008-2010 Slackware Linux, Inc., Concord, CA, USA | |
# Copyright 2012 Patrick J. Volkerding, Sebeka, MN, USA | |
# All rights reserved. | |
# | |
# Redistribution and use of this script, with or without modification, is | |
# permitted provided that the following conditions are met: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# incomplete | |
# update everyting first | |
sudo apt update | |
sudo apt upgrade | |
# install core dependencies | |
sudo apt install git vim zsh bc |