Skip to content

Instantly share code, notes, and snippets.

View CatKinKitKat's full-sized avatar
🏠
Working from home

Gonçalo Candeias Amaro CatKinKitKat

🏠
Working from home
View GitHub Profile
@CatKinKitKat
CatKinKitKat / idea.properties
Created April 22, 2023 16:59
IntelliJ Master Race
editor.zero.latency.typing=true
@CatKinKitKat
CatKinKitKat / alacritty.reg
Created March 1, 2023 15:18
Reg file to add alacritty (global Scoop install) to the contextMenu.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty]
@="Open Alacritty here"
"Icon"="C:\\ProgramData\\scoop\\apps\\alacritty\\current\\alacritty.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty\command]
@="\"C:\\ProgramData\\scoop\\apps\\alacritty\\current\\alacritty.exe\" --working-directory \"%V"
[HKEY_CLASSES_ROOT\Drive\shell\alacritty]
@CatKinKitKat
CatKinKitKat / alacritty.yml
Created December 7, 2022 13:53
Windows 11 Alacritty Config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
@CatKinKitKat
CatKinKitKat / idea64.exe.vmoptions
Created September 19, 2022 23:24
Ahah, IntelliJ go brrrrr
-Xms1024m
-Xmx4096m
-XX:ReservedCodeCacheSize=1024m
-XX:+UseG1GC
-XX:+UseCompressedOops
-XX:+TieredCompilation
-XX:+CMSClassUnloadingEnabled
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
@CatKinKitKat
CatKinKitKat / .wslconfig
Last active April 22, 2023 17:04
Add network to newer Linux Systems and Limit Vmmem High Memory Consumpsion on Docker WSL2 by editing %UserProfile%/.wslconfig
[wsl2]
memory=2GB
kernelCommandLine = sysctl.net.ipv4.ping_group_range=\"0 2147483647\"
@CatKinKitKat
CatKinKitKat / arch-replace-grub-systemdboot.md
Last active April 23, 2022 02:54
If you're like me, you like arch but hate the stupid autistic install, it's fun the first time but then it becomes bothersome for every PC, so you use ALG, which pisses you off, because it could be great if it installed systemd-boot instead of grub2.

Before reboot: (asuming using arch, for other distros, like debian and such it's basically the same)

yay -Syyuu
mkdir ./boot/
sudo cp -rp /boot/* ./boot/

Boot into live cd: (nvme0n1 being this disk with p1 being ESP and p3 being root, using btrfs)

cd /
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"DefaultSearchProviderContextMenuAccessAllowed"=dword:00000000
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
@CatKinKitKat
CatKinKitKat / converter.py
Last active January 7, 2022 23:19
Convert all wallpapers to JPEG and use '.jpeg' as file extension to bypass Windows background JPG compression.
import os
from PIL import Image
def main():
current_dir = os.getcwd()
for subdir, dirs, files in os.walk(current_dir):
for file in files:
if file.endswith(".png"):
convert(os.path.join(subdir, file))
@CatKinKitKat
CatKinKitKat / hqbackground.reg
Created January 7, 2022 23:16
Disable JPG compression in Windows backgrounds
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"JPEGImportQuality"=dword:00000064