Skip to content

Instantly share code, notes, and snippets.

HOW TO UPDATE GRUB USING PENDRIVE WITH ARCH LINUX

setfont ter-132n
loadkeys br-abnt2
iwctl
station wlan0 connect <network>
mount /dev/nvme0n1p2 /mnt        # root
mount /dev/nvme0n1p1 /mnt/boot   # EFI
mount --bind /dev /mnt/dev

Configuring a virtual machine to act as a dedicated web server with nginx

ssh -i /path/key.pem user@public_ip
echo 'export TERM=xterm-256color' >> ~/.bashrc
@wesleey
wesleey / gtk.css
Last active November 26, 2024 03:55
/*********************
* Window Decorations *
*********************/
window {
--wm-border-width: 3px;
--wm-border-color: #6272a4;
--wm-border-radius: 12px;
}
window.maximized {
border: var(--wm-border-width) solid var(--wm-border-color);
@wesleey
wesleey / AZURE.md
Last active November 20, 2024 19:36

AZURE

Login

az login
az account show

Group

  1. Create

SPRING BOOT

New project

mvn archetype:generate -DgroupId=br.com.app -DartifactId=app -DarchetypeArtifactId=maven-archetype-
quickstart -DinteractiveMode=false
mvn -N io.takari:maven:wrapper

ASDF Commands

Install Java:

asdf plugin-add java https://github.com/halcyon/asdf-java.git

List candidate JDKs:

asdf list-all java
@wesleey
wesleey / NVIDIA.md
Last active December 9, 2024 15:58
yay -S --noconfirm nvidia-lts nvidia-utils nvidia-settings
sudo modprobe nvidia
yay -S vulkan-icd-loader lib32-vulkan-icd-loader opencl-nvidia xorg-server-devel

Starship + Dracula

format = """
[╭](fg:current_line)\
$os\
$directory\
$git_branch\
$fill\
$nodejs\
@wesleey
wesleey / BOOT.md
Last active December 21, 2024 05:35
@wesleey
wesleey / LINUX.md
Last active December 2, 2024 23:56

Process of creating a new sudo user in Arch Linux

pacman -S sudo

Installs the sudo package on the system. sudo allows users to execute commands with superuser (root) privileges.

useradd -m -G wheel -s /bin/bash <user>