Skip to content

Instantly share code, notes, and snippets.

View Valkierja's full-sized avatar
🏳️‍⚧️
I may be slow to respond.

祝獻的巴基力 Valkierja

🏳️‍⚧️
I may be slow to respond.
  • SONY Corporation
View GitHub Profile
@artman41
artman41 / wsl-install_another_distro.md
Last active January 25, 2024 23:45
Instructions on how to install a custom distro in WSL2 (Windows SubSystem for Linux 2)

WSL install another distro

  1. Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents

DISTRO_LOCATION=
@niklaskeerl
niklaskeerl / install_pwndbg.md
Last active April 25, 2024 02:37
Install pwndbg and gdb on arch linux

How to install pwndbg and gdb on arch linux

sudo pacman -S gdb
sudo pacman -S pwndbg
echo 'source /usr/share/pwndbg/gdbinit.py' >> ~/.gdbinit

If you are getting the following error "Cannot find Pwndbg virtualenv directory: /usr/share/pwndbg/.venv: please re-run setup.sh", do the following steps, otherwise ignore:

@pzxbc
pzxbc / windows_file_time.md
Created April 8, 2019 06:51
[Windows文件时间戳操作] Windows上查看修改文件创建、最后修改、最后访问时间 #timestamp

先创建文件new-item gh.txt

powershell显示文件的创建、最后修改、最后访问时间 属性

PS D:\godhat> (ls gh.txt).CreationTimeUtc
PS D:\godhat> (ls gh.txt).LastWriteTimeUtc
PS D:\godhat> (ls gh.txt).LastAccessTimeUtc
@marcobellaccini
marcobellaccini / rawgitRedirect.rst
Last active October 14, 2022 03:21
raw.githubusercontent.com -> cdn.rawgit.com

raw.githubusercontent.com -> cdn.rawgit.com

This is a quick and dirty trick to get all HTTPS local connections to raw.githubusercontent.com being redirected to RawGit CDN (https://cdn.rawgit.com).

By using this hack, you can fool your applications into connecting to RawGit every time they try to connect to raw.githubusercontent.com.

Of course, this implies that you trust RawGit to the same degree as GitHub to serve the contents.

The trick relies on a local Python script issuing HTTP redirects.

@LeoMarX
LeoMarX / gist:ef1fca2c67f04b15fe6a376fa9683232
Created December 19, 2016 08:45
常用计算机词汇表.md