Skip to content

Instantly share code, notes, and snippets.

View rmdes's full-sized avatar
💭
Learning, Groking, Exploring

Ricardo rmdes

💭
Learning, Groking, Exploring
View GitHub Profile
@rmdes
rmdes / cloud-init.yaml
Created March 9, 2025 11:15 — forked from NatElkins/cloud-init.yaml
cloud-init script for VPS
#cloud-config
# Enable automatic package updates and upgrades during cloud-init execution
package_update: true
package_upgrade: true
packages:
# Security and Hardening
- ufw
- fail2ban
@rmdes
rmdes / k8s-using-talos-in-vms.md
Created February 5, 2025 09:20 — forked from cyrenity/k8s-using-talos-in-vms.md
Setup kubernetes cluster using Talos (Lab)

Setup Kubernetes cluster in minutes using Talos

1. Get talosctl

Download and install talosctl binary

wget https://github.com/talos-systems/talos/releases/download/v0.8.1/talosctl-linux-amd64
@rmdes
rmdes / countdown.js
Created January 26, 2025 15:14
N8N Function countdown Trump
// JavaScript code for N8N to calculate and post daily countdowns with a graphical loading bar
// add this code to the Code aka function node of N8N
// Define the target dates
const midtermsDate = new Date('2026-11-03T00:00:00Z'); // Next USA Midterms
const presidentialElectionDate = new Date('2028-11-07T00:00:00Z'); // Next Presidential Election
const inaugurationDate = new Date('2029-01-20T00:00:00Z'); // Next Inauguration Day
// Get the current date
const currentDate = new Date();
@rmdes
rmdes / README.md
Created January 21, 2025 13:25 — forked from rutcreate/README.md
Install Python 3.10.x on Ubuntu 20.04

Prerequisite

sudo apt update
sudo apt install software-properties-common -y

Add custom APT repository

@rmdes
rmdes / bluesky-delete-all-post.ts
Last active December 15, 2024 13:55 — forked from intrnl/bluesky-delete-all-post.ts
script to delete all posts from a Bluesky account from a specific domain
/**
* # Bluesky Bulk Post Deletion Script
*
* This script logs into a Bluesky account and deletes all posts (feed records)
* that contain a specified domain in their facets or embeds. It employs a
* two-pronged approach to handle rate limits:
*
* 1. **Proactive Rate-Limit Avoidance**
* Uses a known hourly limit (5000 delete points/hour) to pace deletions and avoid
* hitting server limits directly. Once the threshold is approached, it waits until
# https://4bes.nl/2021/09/19/update-all-powershell-modules-on-a-system/
<#
TIM C: Changes:
- Added scope parameter so scope could be controlled
- altered code to always check for old versions, as this script may not have done the install, but it can still remove old versions
- changed contains and othercomparison syntax to be case insensitive
- altered logic around when the module is not found in the gallery to make the verbose output clearer
- added version parses around the version compares so string comparisons do not screw up the comparison
- added admin check when using AllUsers
@rmdes
rmdes / how_to_manage_python_on_fedora.md
Last active October 29, 2024 21:35 — forked from tchamberlin/how_to_manage_python_on_fedora.md
How to manage Python and related tooling on Fedora 39

Dev Dependencies

sudo dnf groupinstall "Development Tools"
sudo dnf install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel

How to manage Python via pyenv and pipx on Fedora 40

@rmdes
rmdes / reclaimWindows10.ps1
Created April 3, 2024 09:31 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@rmdes
rmdes / verifyKeytab
Created March 18, 2024 14:24 — forked from incepttechnologies/verifyKeytab
Verify keytab files
The contents of keytab file can be verified using either Unix/linux ktutil or klist commands or java ktab utility.
(1)
-bash-3.2$ ktutil
ktutil: rkt krba01.keytab
ktutil: list
slot KVNO Principal
---- ---- ------------------------------------------------------------------------------------------------
@rmdes
rmdes / .gitconfig
Last active March 15, 2024 14:54 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Ricardo Mendes
email = [email protected]
username = rmdes
[init]
defaultBranch = main
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta