Skip to content

Instantly share code, notes, and snippets.

View junalmeida's full-sized avatar
🏡
Working from home

Marcos Junior junalmeida

🏡
Working from home
View GitHub Profile
@junalmeida
junalmeida / call-find-changes-example.yml
Created May 2, 2023 15:29
List changes on a mono repository to build conditionally
- task: PowerShell@2
name: Changes
inputs:
targetType: "filePath"
filePath: "list-changes.ps1"
arguments: -sourceBranch $(Build.SourceBranch) -sourceCommit $(Build.SourceVersion) -targetBranch $(TargetBranch) -rules @(@("Web", "src/web/**"),@("Mobile", "src/mobile/**"),@("Shared", "src/shared/**"))
@junalmeida
junalmeida / fix-cedilla.sh
Last active March 25, 2025 19:51
Apply Cedilla (çÇ) when using dead-key ' + c
#!/usr/bin/env bash
set -e #Stop on first errors
# Setting vars up
COMPOSE_FILE='/usr/share/X11/locale/en_US.UTF-8/Compose'
GTK2_FILE='/usr/lib/gtk-2.0/2.10.0/immodules.cache'
GTK3_FILE='/usr/lib/gtk-3.0/3.0.0/immodules.cache'
ENV_FILE='/etc/environment'
@junalmeida
junalmeida / 10-remove-nvidia-audio.rules
Last active October 15, 2024 13:15
Remove faulty nvidia audio that prevents resuming from suspend
#/etc/udev/rules.d/10-remove-nvidia-audio.rules
ACTION=="add", KERNEL=="0000:01:00.1", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove'"
@junalmeida
junalmeida / 0-manjaro-tweaks.md
Last active March 27, 2025 13:19
SDDM itself running on Wayland

Manjaro Linux Tweaks

This is a list of simple tweaks for Manjaro Linux after a fresh install

  1. Enable Wayland on SSDM itself - The greeter (login screen) uses X11, which incorrectly shows on multiple displays with different DPIs. Wayland doesn't have this issue. See files 10-wayland.confand mkinitcpio.conf
  2. Enable FastConnectable = true in /etc/Bluetooth/main.conf. This will make the Bluetooth experience as good as on other OS.
  3. See Enable SecureBoot in Manjaro
@junalmeida
junalmeida / 0-secureboot-tpm-manjaro.md
Last active March 26, 2025 11:15
Enable SecureBoot in Manjaro

Enable SecureBoot in Manjaro

This how to aims to make UEFI boot your signed kernel+initramfs directly, without a bootloader like grub or system-boot. As a pre-requisite, you should log in to your UEFI settings and set SecureBoot into Setup Mode.

  1. Check EFI partition size, if you want to include extra drivers in initrd (like nvidia), make it at least 1gb. I recommend 2gb to be future-proof.
  2. Include extra drivers in /etc/mkinitcpio.conf. You need nvidia-dkms installed for this to work. I wanted to include this in my system so SDDM (the Login Screen itself) can run in Wayland. Important: Make sure FILES section doesn't include /crypto_keyfile.bin as it should not be included in the initramfs on the unencrypted EFI.