Skip to content

codemonkeyiow/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

WSL

Open powershell as administrator

GET-CimInstance -query "SELECT * from Win32_DiskDrive"

wsl.exe --mount \.\PHYSICALDRIVEX --bare

wsl

lsblk

Middle Mouse Emulation

/etc/X11/xorg.conf.d/50-emulate-middle.conf
Section "InputClass"
	Identifier "middle button"
	MatchIsPointer "on"
	MatchDriver "libinput"
	Option "MiddleEmulation" "on"
EndSection

PS4 Touchpad Disable

/etc/X11/xorg.conf.d/30ds4.conf
Section "InputClass"
    Identifier "ds4-touchpad"
    Driver "libinput"
    MatchProduct "Wireless Controller Touchpad"
    Option "Ignore" "True"
EndSection

PS4 Not working in ER?

https://aur.archlinux.org/packages/game-devices-udev

Git

Restore specific files to specific commit (~1 one before that)

git checkout c5f567~1 -- file1/to/restore file2/to/restore

Blender

Object Sculpt Paint         CTRL + TAB
Add                         Shift + A
Apply Transforms            CTRL + A
Wireframe Solid             Z
Set Parent                  CTRL + P

Move item base to center
Edit mode, Select face(s), Shift + S, Cursor to selected, Object mode, Right click, Set origin, Origin to 3d cursor, z=0

Texture & UV
Shading tab, Add Image texture, UV tab, Edit, Select all, UV > Smart project (OR edge select the outer edges, right click, mark seam, select all, unwrap)
Shading tab, Add Image texture (normal), Add normal map

Pacman

Find out which package provides a file pkgfile somefile

pkgfile --update

List files installed by a package pacman -Ql package

build-essential is base-devel

Python

format(int("F",16),'b')

VBox

chmod 666 /dev/sda
VBoxManage createmedium disk --filename sda.vmdk --format=VMDK --variant RawDisk --property RawDrive=/dev/sda

Add it as a drive in the vm properties.

Windows

Start installer

Shift + F10 "regedit"

HKEY_LOCAL_MACHINE\SYSTEM\Setup

New > Key "LabConfig".

DWORD (32-bit)

BypassTPMCheck and set its value to 1

BypassSecureBootCheck and set its value to 1

Create BypassCPUCheck and set its value to 1

Don't forget to use MASSGRAVE to activate windows after installation.

Firefox Scrollbar

about:config

widget.non-native-theme.win.scrollbar.use-system-size -> false

widget.non-native-theme.scrollbar.size.override -> 30

NVChad

disable autocomplete .config/nvim/lua/plugins/init.lua

{
  require('cmp').setup { enabled = false }
}

e.g.

return {
  {
    "stevearc/conform.nvim",
    -- event = 'BufWritePre', -- uncomment for format on save
    opts = require "configs.conform",
  },

  -- These are some examples, uncomment them if you want to see them work!
  {
    "neovim/nvim-lspconfig",
    config = function()
      require "configs.lspconfig"
    end,
  },

  {
    require('cmp').setup { enabled = false }
  },

  -- {
  -- 	"nvim-treesitter/nvim-treesitter",
  -- 	opts = {
  -- 		ensure_installed = {
  -- 			"vim", "lua", "vimdoc",
  --      "html", "css"
  -- 		},
  -- 	},
  -- },
}

Bash

column -t -s ":" -N USERNAME,PW,UID,GUID,COMMENT,HOME,INTERPRETER -H PW /etc/passwd -J -n passwd

Brave

Manage search engines > add with url containing %s e.g. https://searx.be/search?q=%s > gets promoted > can set as default.

i3

xprop to identify the WM_CLASS

for_window [class="XTerm"] floating enable
for_window [instance="Godot_Engine"] floating enable
for_window [instance="Godot_Editor"] floating disable

Dude

"The thing is… (Joe leans into the mic) fat isn't the problem. Carbs and sugar is the problem. Ever eat nuts man? Nuts are good for you."

Guest "uh… Yeah I eat nuts. I used to pick peanuts back when I was a kid and they were in the season."

Joe: "Nice, nice. Like from a tree?"

Guest: "No, they grow in the ground."

(Joe nearly shits himself in surprise) "What?"

(His guest try not to sound condescending)

Guest: Peanuts grow in the ground kind of like-

Joe: "Jamie, Google this right now. Jamie Google peanuts growing in the ground. HOLY SHIT."

Guest: "Yeah, just like that. They grow in the ground like potatoes."

Joe: "Well… (Breaths heavily into the mic) That makes sense. They couldn't grow on trees because squirrels would fuck them up. Imagine that? Imagine how much squirrels would fuck up a peanut tree. Squirrels are basically tiny chimpanzees."

Arch on the desktop, sleek and so light, Debian on servers, running just right. Windows let the rays shine in through wall, Apple in my tummy, the tastiest of all.

What's going on?

■ It's annoying or not interesting ⛝ I'm in this photo and I don't like it ■ I think it shouldn't be on Facebook ■ It's spam

When I was 4 years old, or so my mother tells me, I saw another kid biting his nails. As people have a tendency to do, I mimicked the behaviour. My mom would slap my hand away from my mouth and say "stop biting your nails"! So for my entire life I continued to bite my nails. At times, when I was particularly stressed they would be little stubs on the end of my fingers. I did make a conscious effort to stop a few times; I bought a bitter nail varnish advertised to assist in the effort, but I got used to it and chomped away. In February of 2023 I had what most people would describe as a religious experience. I wouldn't call it that, but it was a very powerful event that shifted my mindset on a fundamental level. A week or so after my mind being blown wide open I realised that I had long nails, dirty long nails that I needed to clean. A new experience. Short of the long, pun intended, I just poked myself in the eye. Picking my nose is painful.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published