Skip to content

Instantly share code, notes, and snippets.

View obvionaoe's full-sized avatar

Luís Guimarães obvionaoe

View GitHub Profile
@obvionaoe
obvionaoe / markdowncs.md
Last active April 26, 2020 00:52
Markdown cheat sheet

Markdown Cheat Sheet

Line breaks

hello\
world

hello\

Run this to get the ip address of your docker container
(if the container is not running on it's own network, use the container that has the network)

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id

@obvionaoe
obvionaoe / loading_bar.rs
Created June 23, 2020 02:09
A simple loading bar written in Rust
use std::io::{stdout, Write};
use std::thread::sleep;
use std::time::Duration;
fn main() {
let mut i: u32 = 0;
while i <= 100 {
print!("\r");
print!("{{");
@obvionaoe
obvionaoe / self_remove.sh
Created February 3, 2022 20:09
A way to remove the script being executed in Bash
#!/bin/sh
rm "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
@obvionaoe
obvionaoe / pacman.sh
Created April 21, 2022 00:24
Refresh pacman keys
sudo pacman-key --refresh-keys
@obvionaoe
obvionaoe / git-crypt-remove-gpg-user
Last active August 15, 2022 14:57
A bash script to list keys and remove users from git-crypt enabled repos
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
@obvionaoe
obvionaoe / adding-an-eap-repository-to-intellij-or-android-studio.md
Last active September 25, 2022 22:41
Adding an EAP repository to IntelliJ or Android Studio

To install an Early Access Program version of a plugin in IntelliJ or Android Studio, follow these steps:

I'll be using this plugin as an example, change the values accordingly to your use case.

  1. Find the Jetbrains marketplace page for the plugin you need (example: this pluigin)
  2. Go to the versions tab (example: https://plugins.jetbrains.com/plugin/8191-sqldelight/versions)
  3. Find the channel that has the version you need (example: alpha)
  4. Then inside you IDE go to the Settings > Plugins and at the top press the cogwheel next to the Installed tab.
  5. Choose Manage Plugin Repositories
  6. On the window press the plus and add https://plugins.jetbrains.com/plugins/alpha/8191
# https://github.com/ironicbadger/quicksync_calc
# zoidberg - dell 7040 sff pc
CPU TEST FILE BITRATE TIME AVG_FPS AVG_SPEED AVG_WATTS
i5-6600T h264_1080p_cpu ribblehead_1080p_h264 18952 kb/s 116.352s 29.88 1.04x N/A
i5-6600T h264_1080p ribblehead_1080p_h264 18952 kb/s 20.774s 167.57 5.86x 6.59
i5-6600T h264_4k ribblehead_4k_h264 46881 kb/s 68.870s 50.52 1.78x 7.24
i5-6600T hevc_8bit ribblehead_1080p_hevc_8bit 14947 kb/s 50.236s 68.56 2.41x 9.68
i5-6600T hevc_4k_10bit ribblehead_4k_hevc_10bit 44617 kb/s x
@obvionaoe
obvionaoe / pve8arm-fresh.txt
Created April 27, 2024 15:18 — forked from gtx28/pve8arm-fresh.txt
PVE8-ARM fresh install
***Pi-Mox8 setup on raspberry pi 4b (cm4 you will need to add the appropriate steps for your hw setup)
***Raspberry PI OS setup
***Install raspbian x64 lite on raspberry pi
pull the latest copy of Raspberry Pi Imager, from here https://www.raspberrypi.com/software/ and Raspberry PI OS x64 lite based on debian 11 bullseye from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
open imager, click choose os, scroll to the bottom and select custom. open the image "2023-05-03-raspios-bullseye-arm64-lite.img.xz"

How to update IP addressing on a Proxmox Cluster

When you change something in your network configuration, rather than its the gateway or the IP addressing, you may come under serious troubleshooting on your Proxmox Cluster, so this document will guide you into the necessary steps needed to update your network settings on Proxmox.

Note : You must follow these steps on every single node of your cluster to let it able to handle the synchronization between each node once.

So firstly, you will need to change the network interface configuration of the system; it is preferable for you to set a static IP:

/etc/network/interfaces