Skip to content

Instantly share code, notes, and snippets.

@nomaster
nomaster / configuration.nix
Last active April 7, 2024 09:14
NixOS Configuration for experimental K3S cluster node
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@Vertecedoc4545
Vertecedoc4545 / Hyprland-Ubuntu.md
Last active May 18, 2024 20:54
Ubuntu 23.04 Build and Install instructions for Hyprland

Building on Ubuntu 23.04

You have 2 options, use the script descrived bellow or follow the instrutions

script in this gist if you want the source code

wget https://gist.githubusercontent.com/Vertecedoc4545/6e54487f07a1888b656b656c0cdd9764/raw/2c5e8ccb428fc331307e2f653cab88174c051310/build-ubuntu-23.sh
chmod +x build-ubuntu-23.sh
./build-ubuntu-23.sh
@ikrishagarwal
ikrishagarwal / setup-zsh-in-codespaces.md
Last active May 24, 2024 07:02
Setup starship, zsh suggestions and syntax highlight for your codespaces.
@mallendeo
mallendeo / 100.conf
Last active March 29, 2024 17:10
Windows 11 Gaming VM on Proxmox VFIO
##/etc/pve/qemu-server/100.conf
##Network and disks not included in this example
##Set halt_poll_ns
#set_halt_poll 0
##CPU pinning
#cpu_taskset 1-7
#assign_interrupts --sleep=10s 1-7 --all
agent: 1
@Zeioth
Zeioth / gist:d8c1fd75b5721c2170b4a2a5f19a986e
Last active May 30, 2024 17:02
Sway HiDPI settings (GTK/QT/Sway) - How to
set $cursor_size 54
```
# GTK
# This is the only place where you must set GTK scaling
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Matcha-dark-sea'
gsettings set $gnome-schema icon-theme 'Numix-Square'
gsettings set org.gnome.desktop.interface text-scaling-factor 2.73
@pooladkhay
pooladkhay / wayland-blurry-fix.md
Last active May 10, 2024 05:34
VSCode blurry text under Wayland

Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland

Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.

In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland, for example you'll be launching VSCode like

$ code --enable-features=UseOzonePlatform --ozone-platform=wayland

This fix can be made permanent by creating a .desktop file or by directly editing /usr/share/applications/visual-studio-code.desktop

@torresashjian
torresashjian / linux-ubuntu-install-wifi-drivers
Last active April 12, 2024 09:07
How to install Broadcom bcm43602 Drivers on Ubuntu Linux
sudo apt-get purge bcmwl-kernel-source
sudo apt update
sudo update-pciids
sudo apt install firmware-b43-installer
sudo reboot #note that this will restart your computer
sudo iwconfig wlp3s0 txpower 10dBm
#sudo iwconfig wlp2s0 txpower 10dBm
@egg82
egg82 / proxmox_nvidia.md
Last active May 31, 2024 20:40
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@pojntfx
pojntfx / README.md
Last active March 10, 2024 22:20
Enable GTK4, Wayland and hardware acceleration for Chrome on Linux

Update: As of June 2023, Chrome has officially added support for prefers-color-scheme as of this in version 114!

Paste the following into your terminal. You'll have to fully close the browser with pkill chrome each time you want Chrome to re-read the settings.

Also, use the following flags for full GPU acceleration:

  • ignore-gpu-blocklist
  • enable-webrtc-pipewire-capturer
  • enable-gpu-rasterization
  • enable-vulkan
#!/bin/bash
set -e
# Install or update the latest version of pve-edge-kernel[0] and the AMD Navi
# reset fix module 'vendor-reset'[1]. Run periodically to keep up to date.
#
# [0] https://github.com/fabianishere/pve-edge-kernel
# [1] https://github.com/gnif/vendor-reset