Skip to content

Instantly share code, notes, and snippets.

View andreibosco's full-sized avatar

Andrei Bosco B. Torres andreibosco

View GitHub Profile
@andreibosco
andreibosco / gist:cb8506780d0942a712fc
Created October 21, 2014 17:28
Using GNU Stow to manage your dotfiles

Fonte: http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html?round=two

I accidentally stumbled upon something yesterday that I felt like sharing, which fell squarely into the "why the hell didn't I know about this before?" category. In this post, I'll describe how to manage the various configuration files in your GNU/Linux home directory (aka "dotfiles" like .bashrc) using GNU Stow.

The difficulty is that it would be helpful to manage one's configuration files with a version control system like Git, Mercurial or Bazaar, but many/most dotfiles reside at the top-level of your home directory, where it wouldn't be a good idea to initialize a VCS repository. Over time I've come across various programs which aim to manage this for you by keeping all the files in a subdirectory and then installing or linking them into their appropriate places. None of those programs ever really appealed to me. They would require a ton of dependencies (like Ruby and a ton of libraries for it) or t

@andreibosco
andreibosco / gist:8246142
Created January 3, 2014 20:39
Wifi configuration on archlinux ARM

Fonte: http://raspberrypi.stackexchange.com/questions/7987/wifi-configuration-on-arch-linux-arm

The deprecated netcfg used /etc/network.d/ to store profiles. The successor of netcfg is netctl.

In order to setup a wireless network, install netctl using sudo pacman -S netctl. Next, you have to create a network profile. /etc/netctl/examples/ contains some examples. Let's assume you want to setup a WPA2-PSK network. Simply copy over the example file and start editing:

/etc/netctl# install -m640 examples/wireless-wpa wireless-home
/etc/netctl# cat wireless-home
Description='A simple WPA encrypted wireless connection'
@andreibosco
andreibosco / raspberry-disable-ipv6.md
Created March 24, 2017 21:06
Raspberry Pi: disable IPv6
@andreibosco
andreibosco / unreal-5.4-rider-compilation_fix.md
Created May 15, 2025 01:25
Unreal 5.4 and Rider Compilation Issue Fix

If unreal 5.4 is not compiling on rider and returning Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'element'), try this solution by Sam_Swain.

Source: https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659/11


Hacking around I managed to both a) identify the problem plugins, and b) make the build tool immune to this crash.

  1. Open C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.sln in Visual Studio
  2. Make Configuration/ModuleRules.cs writable
@andreibosco
andreibosco / ssh-gpg-yubikey-macos.md
Created July 16, 2022 16:27
SSH keys on a Yubikey in a Mac

Based on https://davecoyle.com/tech-notes/ssh-keys-on-a-yubikey-mac/

SSH keys on a Yubikey in a Mac

Software Stuff

  • Install the YubiKey Manager CLI (ykman); alternative installation options can be found here: brew install ykman

  • Install GPG >= 2.1. Version 2.1 simplified the running of gpg-agent. The version isn’t a hard requirement, but it might make your life easier.

@andreibosco
andreibosco / install_cuda_tensorflow_miniconda_Pop!Os20_04.md
Last active March 11, 2025 21:24
Installing cuda, tensorflow and miniconda on Pop!_OS 20.04

Installing cuda, tensorflow and miniconda on Pop!_OS 20.04

Cuda and Tensorflow

  • Install tensorflow: sudo apt install tensorflow-cuda-latest
  • Install cuda: sudo apt install system76-cuda-latest

Miniconda

@andreibosco
andreibosco / yubikey-windows10.md
Last active February 19, 2025 21:19
Setting up Yubikey with SSH and Git on Windows 10 + Powershell
@andreibosco
andreibosco / restore_boot_endeavouros_btrfs.md
Created July 15, 2023 17:10
restore boot - endeavourOS with BTRFS

To restore Linux item to EFI boot list

  • switch into root: sudo su

  • list disks and partitions: fdisk -l

  • find main list filesystem partition and efi partition

  • create mountpoint: mkdir /mnt/arch

  • mount partition (additional argument needed for btrfs): mount -t auto -o subvol=@ /dev/nvme0n1p6 /mnt/arch/ (source: https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/3)

  • change root into mounted partition: arch-chroot /mnt/arch

  • mount EFI partition: mount -t auto /dev/nvme0n1p2 /efi/

@andreibosco
andreibosco / creative-cloud-disable.md
Last active December 19, 2024 08:28
disable creative cloud startup on mac
@andreibosco
andreibosco / different_git_identities_1pass.md
Created December 2, 2024 15:51
Different git identities/keys with 1password

How to configure git to use multiple identities/keys with 1Password

  • Edit ~/.ssh/config
  • Add an item for each SSH identity/key following this example (replace github with appropriate name):
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_github.pub
IdentitiesOnly yes