Skip to content

Instantly share code, notes, and snippets.

View Chinoman10's full-sized avatar
✔️
Verified

Sérgio Rebelo Chinoman10

✔️
Verified
View GitHub Profile
@Chinoman10
Chinoman10 / loaders.sh
Last active April 24, 2026 00:11
Lightweight Loading animations for Bash TUI's - A drop-in module that gives your Bash scripts Docker-like animated progress
#!/usr/bin/env bash
# ==============================================================================
# loaders.sh — Lightweight Loading animations for Bash TUI's
# ==============================================================================
#
# A drop-in module that gives your Bash scripts Docker-like animated progress:
# - Braille-based progress bars (dense, smooth filling)
# - Spinners
# - Multiple concurrent tasks
# - curl / wget integration
@Chinoman10
Chinoman10 / cosmos_update.sh
Created April 16, 2026 23:48
Old update script for a Cosmos blockchain validator/node.
#!/bin/bash
CHAIN_DAEMON="terrad"
# Exit immediately if a command exits with a non-zero status.
set -e
# Define color-coded log functions with timestamps
cyan() { printf '[%b] \e[1;36m%b\e[m\n' "$(date +%T)" "$1"; }
ok() { printf '[%b] \e[32m%b\e[m\n' "$(date +%T)" "$1"; }
@Chinoman10
Chinoman10 / notmynet.ps1
Last active April 23, 2026 15:15
notmynet, a rolling "network monitor" to view at a glance how stable your internet connection is (by pinging Cloudflare's DNS servers)
#!/usr/bin/env pwsh
#Requires -Version 7.0
<#
.SYNOPSIS
Rolling internet connectivity monitor.
.DESCRIPTION
Continuously pings a target and displays a color-coded rolling window
of results with latency statistics, streak tracking, and outage timing.
Parameters override environment variable defaults.
@Chinoman10
Chinoman10 / notmynet.sh
Last active April 16, 2026 14:15
notmynet, a rolling "network monitor" to view at a glance how stable your internet connection is (by pinging Cloudflare's DNS servers)
#!/usr/bin/env bash
set -u
# =========================
# Defaults
# Precedence: defaults < env vars < CLI args
# =========================
TARGET="${TARGET:-1.1.1.1}"
WINDOW="${WINDOW:-60}"
@Chinoman10
Chinoman10 / addUserGroupsToACLs.ps1
Created August 10, 2021 18:44
PowerShell script to edit ACL's recursively across all NAS shares (on multiple NAS hosts even)
# the script itself can be called with a file path argument or not.
[CmdletBinding()]
param(
[ValidateScript({
if(-Not ($_ | Test-Path -PathType Leaf) ){
throw "The Path argument must be a file. Folder paths are not allowed."
}
return $true
})]
[Parameter()] [System.IO.FileInfo] $batchFile
@Chinoman10
Chinoman10 / prevent-idle.ps1
Last active April 17, 2025 00:57
Prevent your computer from showing the screensaver/locking
<# This PowerShell script can simply be copied over to a "PowerShell IDE" window, and then ran for as long as you want.
The time this script remains active (sending mouse events to Windows so it things you're "still there", is the number
of iterations on line 6 (default: 200) multiplied by the number of seconds on line 11 (default: 290).
If your computer locks/marks as Away on Skype/Teams only after 10 minutes for example, change 290 seconds to 590.
#>
<# If you get a "File cannot be loaded because running scripts is disabled on this system.", then type in the PowerShell ISE console:
powershell -ExecutionPolicy ByPass -File filename-here.ps1
#>
param($iterations = 200)
@Chinoman10
Chinoman10 / startup apps.vbs
Last active April 17, 2025 00:55
PowerShell+VBScript to startup any Windows App or Program by it's name (without having to hardcode folder locations)
' Just put this file inside the folder: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
' And replace the names of the programs to your liking
apps = Array("WhatsApp Desktop", "Stream Deck")
Set WshShell = CreateObject("WScript.Shell" )
For each app in apps
command = "Start Shell:AppsFolder\\\""$(Get-StartApps -Name \"""&app&"\"" | foreach {$_.AppID})\"""
pscmd = "powershell -command " & command
WshShell.Run pscmd,0
Next
@Chinoman10
Chinoman10 / keybase.md
Created March 13, 2019 18:06
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am chinoman10 on github.
  • I am chinoman10 (https://keybase.io/chinoman10) on keybase.
  • I have a public key ASAwMb1MaN2kfnGL5VCTd8jE55yWiyHuZJcbkD2vJOAlWgo

To claim this, I am signing this object: