Skip to content

Instantly share code, notes, and snippets.

@xguitian
xguitian / takeout2cp2077.sh
Created July 25, 2021 18:56
Convert Google Stadia Cyberpunk 2077 savegames to PC
#!/bin/bash
# set -x
shopt -s nullglob
########################################################################################################
# URL:
# https://www.reddit.com/r/Stadia/comments/kb48nk/cyberpunk_2077_savegame_exportimport_google/
##
# Manual:
# start Google Stadia, and make a manual savegame.
# go to "https://takeout.google.com" and click on "Unselect.
@xguitian
xguitian / gpg.renewal.txt
Last active May 24, 2020 01:16
GnuPG tips: Renewal
# Insert offline Master Key
# Import master key
gpg --import <path_to_master_key>
# Edit key to renew
gpg --edit-key <email/key_id>
# renew each key and subkey with:
# key <#>
# to select key and
# expire
# to change expiration date, even if it is already expired, it does _not_ matter

Keybase proof

I hereby claim:

  • I am xguitian on github.
  • I am xguitian (https://keybase.io/xguitian) on keybase.
  • I have a public key ASCLzAxNyUwVExRO2BSdOydkIwlvR69do_mQD1_KfFm4yQo

To claim this, I am signing this object:

@xguitian
xguitian / linux.sh
Created January 29, 2017 23:34 — forked from marcan/linux.sh
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@xguitian
xguitian / vimdiff.md
Last active February 24, 2023 13:41
vimmdiff cheatsheet

vimdiff cheatsheet

##vimdiff commands and control

Commands:

]c :            next difference
[c :            previous difference
CTRL-W w        switch windows
do              diff obtain