Skip to content

Instantly share code, notes, and snippets.

View vboufleur's full-sized avatar
💭
Leve-se

Vitor Araujo Boufleur vboufleur

💭
Leve-se
View GitHub Profile
@Fail-Safe
Fail-Safe / change-aql.sh
Created May 28, 2024 19:17
Updates all `aql_txq_limit` values to user-specified choice.
#!/bin/sh
argc() { argc=$#; }
if [ "$#" -ne 1 ]; then
echo "Usage: Enter your AQL preference as 'latency', 'balanced', 'bandwidth', or an integer value for aql_txq_limit." >&2
exit 1
fi
aql_txqs=$(find /sys/ -name 'aql_txq_limit')
@thimslugga
thimslugga / 01_setup-docker-al2023.md
Last active November 1, 2025 11:35
Setup Docker on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

The following guide is for setting up Docker with docker-compose v2 on Amazon Linux 2023. The steps are intendend for AL2023 on EC2 but should mostly work for the AL2023 VMs running on other hypervisors.

Install and configure Docker on Amazon Linux 2023

Install Base OS Packages

Install the following packages, which are good to have installed:

@rlucente-se-jboss
rlucente-se-jboss / Install-waydroid-on-Fedora
Created April 25, 2023 21:24
Install Waydroid on Fedora
Install Fedora
Apply all the updates
sudo dnf -y update
sudo reboot
Install Waydroid
sudo dnf -y install waydroid
@byrro
byrro / LICENSE
Created November 3, 2022 20:42
Convert pixel color picked using gdbus from float to RGB and HEX
Copyright 2022 Renato Byrro
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

How to fix the "Failed to close file descriptor for child process (Operation not permitted)" in your docker ci build

Disclaimer

First off, I'm not a docker expert by any means. I just wanted my CI pipeline to work and went down the habbit hole. The solution I present can cause some security implications, be aware.

Cause

The problem is caused by a seccomp policy and a glibc >= 2.34 update that returns an EPERM (operation not permitted) insted of ENOSYS (function not implemented).

Solution/Workaround

@z0ph
z0ph / sso_assumer.sh
Created June 3, 2022 13:46
Bash script to run an AWS CLI command across all your AWS Accounts (AWS SSO wide)
#!/bin/bash
# From Victor (zoph) Grenu from zoph.io - https://zoph.io
# Twitter: @zoph
TARGET_ROLE_NAME="AdministratorAccess"
## Get list of AWS accounts using SSO
AWS_ACCESS_TOKEN=$(cat $(ls -1d ~/.aws/sso/cache/* | grep -v botocore) | jq -r "{accessToken} | .[]")
ACCOUNTS_IDS=($(aws sso list-accounts --access-token $AWS_ACCESS_TOKEN | jq -r '.accountList[] | .accountId'))
@alikrc
alikrc / DbeaverDarkThemeHow.md
Last active May 14, 2025 06:38
dbeaver dark theme setup
@brennanMKE
brennanMKE / README.md
Last active September 5, 2025 12:21
Create SSH Key on Mac for Xcode

Create SSH Key on Mac for Xcode

The docs for GitHub show a command to create a key with the ed25519 encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.

For SSH keys there are 4 algorithms.

  • 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
  • ⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.
  • 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
  • ✅ Ed25519: The most recommended public-key algorithm today which you should use with GitHub.
@code3z
code3z / instructions.md
Last active May 31, 2025 22:29
GNOME on Qubes

Hi!

You should be able to install GNOME DE on Qubes OS dom0 with.

sudo qubes-dom0-update gnome-shell

Install extensions according to instructions here.

Enable window borders

ExtRoot & Swap on OpenWrt

Following Quick Start for Adding a USB drive but installing some packages that will be needed right after. Also see Using storage devices.

  • SSH into the router.
  • Install required packages...
opkg update
opkg install block-mount e2fsprogs kmod-fs-ext4 kmod-usb-ohci kmod-usb-storage kmod-usb-uhci kmod-usb2 kmod-usb3 usbutils nano