Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* ------------------------------------------ | |
* 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 )` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
*/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 |
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/sh | |
## Last used as a verbal timer for my kids | |
for ((i=0; i<=1000; i+=1)); do | |
say $i | |
sleep .33 | |
done |
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
/* /** | |
* 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 |
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
/* /** | |
* 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 |
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
// Uses this script: https://limonte.github.io/sweetalert2/ | |
var footernewsletterSubscriberFormDetail = new VarienForm("footer-newsletter-validate-detail"), | |
val_form = new VarienForm("footer-newsletter-validate-detail"); | |
jQuery("#footer-newsletter-validate-detail").submit(function(e) { | |
if (val_form.validator && val_form.validator.validate()) { | |
var t = jQuery(this).serializeArray(), | |
o = jQuery(this).attr("action"), | |
r = swal({ | |
title: "One moment please...", | |
showCancelButton: !0, |
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
git ls-files --others --exclude-standard -z | cpio -pmd0 path/to/directory | |
git clean -d -f | |
# git ls-files: print a | |
# * null-delimited (-z) list of | |
# * untracked (--others) | |
# * non-ignored (--exclude-standard) files. | |
# cpio: | |
# * copy (-p) | |
# * files in a null-delimited list (-0) |
NewerOlder