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 / setup-docker-al2023.md
Last active April 17, 2025 00:22
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.

Overview of Updating Amazon Linux 2023

Check for new updates

Get the hosts current Amazon Linux 2023 release:

@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 March 26, 2025 04:36
dbeaver dark theme setup
@code3z
code3z / instructions.md
Last active April 16, 2025 19:05
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
@pil0u
pil0u / install_postman.sh
Last active May 29, 2024 18:41
Install Postman on Linux through CLI without Snap
# This script basically automates the official Postman installation guide for Linux:
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
# 32 or 64-bit?
BIT=$(getconf LONG_BIT)
# Download the appropriate version
wget -O ~/postman.tar.gz "https://dl.pstmn.io/download/latest/linux${BIT}"
# Extract the archive in /opt
@Bobmajor
Bobmajor / gist:319e89e9c876cccdb1b77f1783e9a820
Created April 25, 2020 16:06
HOW TO INSTALL POSTMAN ON LINUX WITHOUT SNAP
1. Go to the Postman app download page at https://www.getpostman.com/apps. You can choose the os version from the drop-down. x64 for 64 bit Operating System and x84 for the 32 bit based Linux
2. Open the terminal and go to the directory where you have downloaded the tar file. If you have downloaded on the Downloads folder
cd ~/Downloads/
3. Run the following commands,
sudo rm -rf /opt/Postman/