Skip to content

Instantly share code, notes, and snippets.

View nflint's full-sized avatar

Nate Flint nflint

View GitHub Profile
@nflint
nflint / GoogleAppsParser.js
Last active January 15, 2022 00:44
Google Apps Parse Folder
/* /**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
@nflint
nflint / shell_counter.sh
Created September 1, 2017 19:43
Mac Shell Counter - Make your computer count.
#!/bin/sh
## Last used as a verbal timer for my kids
for ((i=0; i<=1000; i+=1)); do
say $i
sleep .33
done
@nflint
nflint / crontab.sh
Last active January 25, 2018 16:32
utility server cron
*/5 * * * * sh /home/ec2-user/scripts/s3-sync.sh 2>&1 | awk '{ print strftime("\%c: "), $0; fflush(); }' | tee -a /home/ec2-user/logs/s3sync-log-$(date '+\%Y-\%m-\%d').txt
18 2 * * * /usr/local/bin/s3cmd put --recursive ~/reports/*.csv s3://data-five9/archives/"$(date +"\%Y-\%m-\%d")"/ 2>&1 | awk '{ print strftime("\%c: "), $0; fflush(); }' | tee -a /home/ec2-user/logs/archive-log.txt
* 3 * * * aws s3 sync ./ s3://five9-recordings-pp
@nflint
nflint / replication_ingress.mermaid
Created October 17, 2024 19:44
replication and ingress - b&W
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nflint
nflint / md5.gs
Created November 18, 2024 03:07 — forked from KEINOS/md5.gs
GAS(Google Apps Script) user function to get MD5 hash or 4digit shortened hash for Multibyte(UTF-8, 2bytes character) environment.
/**
* ------------------------------------------
* MD5 function for GAS(GoogleAppsScript)
*
* You can get a MD5 hash value and even a 4digit short Hash value of a string.
* ------------------------------------------
* Usage1:
* `=MD5("YourStringToHash")`
* or
* `=MD5( A1 )`
@nflint
nflint / job_erd.mermaid
Last active January 5, 2025 21:40
job_tracker ERD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nflint
nflint / applicant_journey.mermaid
Last active January 5, 2025 21:41
Job Applicant Journey
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nflint
nflint / deep_research_prompt.txt
Last active July 2, 2025 20:40
Deep research Prompt for ChatGPT and Claude
# *Information Gathering Prompt*
---
## *Prompt Input*
- Enter the prompt topic = [......]
- **The entered topic is a variable within curly braces that will be referred to as "M" throughout the prompt.**
---