Skip to content

Instantly share code, notes, and snippets.

@jamiephan
jamiephan / README.md
Last active April 15, 2025 15:40
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@kaubu
kaubu / extract_dir.sh
Created September 27, 2023 17:16
Extract all zip files (made by 7zip) inside of a directory, in parallel
#!/bin/sh
ls *.zip | parallel -j+0 --eta '7z x {} >/dev/null'
@kaubu
kaubu / clean_cache.sh
Last active August 13, 2024 21:46
Cleans cache to get more story space on Arch-based Linux distributions
#!/bin/sh
# Remove old Haskell versions
ghcup gc --cache
# Clean pip cache
pip cache purge
# Remove packages cache
sudo pacman -Scc
yay -Scc
@shimeoki
shimeoki / dual-boot.md
Last active April 10, 2025 20:29
Windows 11 + Arch Linux dual-boot (systemd-boot) installation guide with encrypted partitions (BitLocker and LUKS respectively) and Secure Boot (UEFI)

My Windows 11 + Arch Linux dual-boot installation

Caution

All actions are at your own risk! This has been tested by me, but does not guarantee your success.

Read everything at least once before actually following the guide. If something goes wrong, stop immediately. Consider starting from the beginning.

About the guide

@iambryancs
iambryancs / pyenv-wsl-ubuntu_22.04.md
Created May 31, 2023 10:31
Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Env

  • Windows 10
  • Ubuntu 22.04 WSL
  • zsh

Requirements

  • git
@corvusdeinanis
corvusdeinanis / readme.md
Created December 9, 2022 20:48
Wikipedia Citation Remover Bookmarklet

Simple javascript bookmarklet to remove numbers and []s from a wikipedia entry to make copying text / reading text from it easier.

  1. Create a new bookmark in your browser
  2. Paste the code given below and save.
  3. Visit the article you want to "clean up".
  4. Click on the bookmarklet.

Voila, it's all cleaned up. Just refresh again and everything is back to normal.

@attusan
attusan / skyrim-and-vortex-mod-manager-on-linux.md
Last active February 27, 2025 00:43
Manage Skyrim SE/AE mods via Vortex Mod Manager in Linux

Manage Skyrim SE mods via Vortex Mod Manager in Linux

The below walkthrough is for those who are running Skyrim SE via Steam Proton, and want to be able to manage mods via Vortex Mod Manager in Linux. You should be able to apply the same walkthrough to Oldrim or Fallout 4 as well. Note that with this guide you'll get an older version of Vortex (1.1.15), but IMHO it is still a better choice than Mod Manager 2. Also, you'll start Skyrim through Steam as usual, not through Vortex.

  1. If you have previously added mods through the Skyrim game menu, I recommend removing them all since all mods will be managed through Vortex. Mods => Load Order => Delete All. Also, consider taking a backup up your (vanilla) Skyrim game directory.
# archive vanilla game (update path to suit your needs)
cd /mnt/gameData/archive
cp -a /mnt/gameData/SteamLibrary/steamapps/common/Skyrim\ Special\ Edition/. skyrim-se
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 17, 2025 07:48
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@yunpengn
yunpengn / README.md
Last active April 3, 2025 18:14
A step-by-step guide to install PostgreSQL on Ubuntu without sudo privilege

Install PostgreSQL on Ubuntu without sudo

Being the most advanced open-source relational database, many of us need to install PostgreSQL for some purposes. However, sometimes you may not have sudo privilege on an Ubuntu server. Then, how should you install PostgreSQL in this case?

Compile from source!

Next, we will show a step-by-step guide on how to install PostgreSQL on Ubuntu by compiling it from source.

PostgreSQL Compilation & Installation

@bodziek666
bodziek666 / kwin.sh
Last active July 30, 2022 21:35
systemd-sleep kwin hook
#!/bin/bash
#
# Restart kwin on resume after suspend
case "${1}" in
post)
KWIN_PID=$(pidof kwin)
KWIN_X11_PID=$(pidof kwin_x11)