(([^\)]+))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
He / Him
[email protected]
GitHub | LinkedIn | Google Doc Resume
Public Trust
- Parent to three amazing and dynamic children (step-parent to two), one of whom is on the Autism Spectrum (T)
following along https://www.youtube.com/watch?v=AYyZ_n-fNpc&t=7s
- running on an m1 Mac in Parallels
- via https://blog.francium.tech/setting-up-ruby-2-7-6-on-ubuntu-22-04-fdb9560715f7
Because I own an M1 Mac and want to learn Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| // given | |
| var queryObject = new Query( | |
| name = "resultsQuery", | |
| sql = " | |
| INSERT | |
| INTO … | |
| " | |
| ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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 | |
| ) |
NewerOlder