Skip to content

Instantly share code, notes, and snippets.

View GImbrailo's full-sized avatar

Gino Imbrailo GImbrailo

View GitHub Profile
@GImbrailo
GImbrailo / celestia_sync_check.sh
Created December 2, 2025 22:26
Celestia Node Sync Status Checker - Network checks first, with --host and --port options
#!/bin/bash
#
# Celestia Node Sync Status Checker
# Tests multiple RPC endpoints and compares local node sync status
#
# Usage: ./celestia_sync_check.sh [--once] [--mainnet|--mocha]
#
set -e
@GImbrailo
GImbrailo / celestia_sync_check.sh
Created December 2, 2025 22:19
Celestia Node Sync Status Checker - Enhanced with --port option and multi-RPC endpoint testing
#!/bin/bash
#
# Celestia Node Sync Status Checker
# Tests multiple RPC endpoints and compares local node sync status
#
# Usage: ./celestia_sync_check.sh [--once] [--mainnet|--mocha]
#
set -e
@GImbrailo
GImbrailo / celestia_sync_check.sh
Created December 2, 2025 22:11
Celestia Node Sync Status Checker - Tests multiple RPC endpoints and compares local node sync status
#!/bin/bash
#
# Celestia Node Sync Status Checker
# Tests multiple RPC endpoints and compares local node sync status
#
# Usage: ./celestia_sync_check.sh [--once] [--mainnet|--mocha]
#
set -e
@GImbrailo
GImbrailo / automata.sh
Last active October 13, 2023 21:58
Automata creation
#!/usr/bin/env bash
# Check if the user "automata" exists
if id -u "automata" >/dev/null 2>&1; then
echo "User 'automata' already exists."
else
echo "User 'automata' does not exist. Creating..."
useradd -m -s /bin/bash automata
fi
@GImbrailo
GImbrailo / cisco_nxos_default_logging
Created September 7, 2022 18:53
Default logging levels for CISCO Nexus 3064
logging level aaa 6
logging level acllog 2
logging level aclmgr 3
logging level afm 3
logging level auth 0
logging level authpriv 3
logging level bcm_usd 3
logging level bootvar 5
logging level callhome 2
logging level capability 2
@GImbrailo
GImbrailo / cors_curl_test.sh
Last active September 7, 2022 18:51
Test CORS for a URL
#!/usr/bin/env bash
# Strict bash
set -euo pipefail
IFS=$'\n\t'
# Set URL for testing
MY_URL=
curl -I -X OPTIONS \