Add this section to your ~/.ssh/config
(if it doesn't exist create it)
Host github.com
User git
HostName github.com
AddKeysToAgent yes
IdentityFile ~/.ssh/github
query IntrospectionQuery { | |
__schema { | |
queryType { name } | |
mutationType { name } | |
subscriptionType { name } | |
types { | |
...FullType | |
} | |
directives { |
package test | |
import ( | |
"bytes" | |
"crypto/rand" | |
"io" | |
"testing" | |
) | |
func generateRandomFile() io.Reader { |
function updatego(){ | |
GOVERSION=`git ls-remote --tags https://go.googlesource.com/go | grep -E "refs\/tags\/go[[:digit:]]*\.[[:digit:]]*(\.[[:digit:]]*)?$" | cut -f2 -- | sort -V | tail -n 1 | cut -d'/' -f3` | |
FILENAME=$GOVERSION.linux-amd64.tar.gz | |
FILEPATH="/home/$USER/$FILENAME" | |
URL=https://golang.org/dl/$FILENAME | |
echo "Downloading $URL" | |
echo "Saving to $FILEPATH" | |
echo "wget -nc -c -O $FILEPATH $URL" | |
wget -nc -c -O $FILEPATH $URL | |
sudo rm -rf /usr/local/go |
Installing LineageOS 18 on Poco F3 Downgrading Android 12 to Android 11
I tried installing LineageOS following the instructions here: https://wiki.lineageos.org/devices/alioth/install
Problems:
Theres 3 modes that you need to understand the difference between:
diff --git a/mnt/boot/grub/grub.cfg b/mnt/archliger/boot/grub/grub.cfg | |
old mode 100755 | |
new mode 100644 | |
index e0a49aa..64876ae | |
--- a/mnt/boot/grub/grub.cfg | |
+++ b/mnt/archliger/boot/grub/grub.cfg | |
@@ -85,7 +85,7 @@ if loadfont $font ; then | |
load_video | |
insmod gfxterm | |
set locale_dir=$prefix/locale |
[main] | |
plugins=ifupdown,keyfile | |
dns=default | |
rc-manager=resolvconf | |
[ifupdown] | |
managed=false | |
[device] | |
wifi.scan-rand-mac-address=no |
package main
import "fmt"
func Normal(s string) string {
fmt.Println(&s)
return s
}
#ensure you are booted into UEFI mode through the motherboards boot menu | |
# test if efi mode in bash: | |
# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS | |
# list devices | |
lsblk -f | |
# decrypt the encrypted disk/volume | |
sudo cryptsetup luksOpen /dev/nvme0n1p2 archliger |
Setup: UEFI, LVM + LUKS encrypted drive | |
Bootloader: Grub | |
Links: | |
- https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader | |
- | |
Restore GRUB (boot into live env): | |
# get the encrypted partition (crypto_LUKS) | |
lsblk -f |