Skip to content

Instantly share code, notes, and snippets.

View christophervigliotti's full-sized avatar
🎯
Hi

Christopher Vigliotti christophervigliotti

🎯
Hi
View GitHub Profile
@christophervigliotti
christophervigliotti / npm_fix.MD
Last active April 12, 2022 17:11
When you cannot run npm commands...rebuild it

The Issue 😕

When I attempt to execute command npm i I am getting the following...

The Error 🥔

parallels@ubuntu-linux-20-04-desktop:~/Documents/Code/angular-complete-guide-routing$ sudo npm -i
[sudo] password for parallels: 
node:internal/modules/cjs/loader:933

CMD

For those Windoze commands that I use maybe once every 5 years

Junctions

Syntax

mklink /j "from" "to"

@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
)
@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 / rails_7_ubuntu_arm.md
Last active October 21, 2022 16:17
Install Rails 7 on Ubuntu ARM
@christophervigliotti
christophervigliotti / rails_on_m1.MD
Last active October 24, 2022 21:07
Ruby on Rails on an M1 Mac
@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 / 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)

Regex

Remove everything between the parenthesis

(([^\)]+))

#!/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