Skip to content

Instantly share code, notes, and snippets.

View christophervigliotti's full-sized avatar
:atom:
Always be learning!

Christopher Vigliotti christophervigliotti

:atom:
Always be learning!
View GitHub Profile
@christophervigliotti
christophervigliotti / arrs_inspector.sh
Last active April 11, 2026 20:33
detailed comparison of files in "a" to files and hardlinks in "b"
#!/bin/bash
# What Is This
# A way to compare downloads in folder A to hardlinks in folder B. Useful to see if your
# "use hardlinks" logic in the ARRS is working
#
# Separation of Concerns (AI yackin')
# The logic for calculating the 2TB physical limit is isolated from the descriptive logic
# used for the detailed file list.
#
@christophervigliotti
christophervigliotti / go.py
Created March 5, 2026 02:10
Posts today and tomorrow details for Pokemon Go events
import requests
from datetime import datetime, timezone, timedelta
# --- CONFIGURATION ---
# Replace this with your actual Discord Webhook URL
DISCORD_WEBHOOK_URL="your webhook url goes here"
def get_pogo_data(target_date):
"""Returns PoGo event data for a specific date."""
base_data = {
#!/bin/bash
while true
do
# --partial
if rsync -av --delete-after --progress --bwlimit=500 "/source/directory/path/" "/destination/directory/path"; then # SC2181
echo "~ * ~ * ~ * ~ Job's done! rsync is where a pirate washes their dishes"
exit
else
echo "~ * ~ * ~ * ~ Shiver Me Timbers, rsync has walked the plank! will retry in 180 seconds"
sleep 180

Regex

Remove everything between the parenthesis

(([^\)]+))

@christophervigliotti
christophervigliotti / resume_celebrate.MD
Last active June 21, 2024 23:05
Resume (Celebrate Ability variant)

Christopher Vigliotti

He / Him
[email protected]
GitHub | LinkedIn | Google Doc Resume

Clearance Level

Public Trust

Parenting Experience

  • Parent to three amazing and dynamic children (step-parent to two), one of whom is on the Autism Spectrum (T)
@christophervigliotti
christophervigliotti / 2024_goals.MD
Last active April 1, 2024 17:38
2024 Goals > Progress Tracker

2024 Goals

High-Level Goals

Complete

Work In-Progress (WIP)

  • Ruby Courses repo1 [repo2]
@christophervigliotti
christophervigliotti / rails_on_m1.MD
Last active October 24, 2022 21:07
Ruby on Rails on an M1 Mac
@christophervigliotti
christophervigliotti / rails_7_ubuntu_arm.md
Last active October 21, 2022 16:17
Install Rails 7 on Ubuntu ARM
@christophervigliotti
christophervigliotti / query_cfscript_blah.cfm
Created June 1, 2022 21:13
ColdFusion => Get ID of inserted record when using cfscript.
<cfscript>
// given
var queryObject = new Query(
name = "resultsQuery",
sql = "
INSERT
INTO …
"
);
@christophervigliotti
christophervigliotti / go.sql
Created May 18, 2022 16:54
Persist SQL Variables Across Multiple "Go" Statements
/*
challenge: persist vars across GO statements
solution: store vars in a temp table
*/
CREATE TABLE #vars_to_remember
(
varName VARCHAR(20) PRIMARY KEY,
value BIT
)