Skip to content

Instantly share code, notes, and snippets.

@zackhall
zackhall / days_between.zsh
Created June 4, 2024 19:18
Zsh Compare Dates
#!/bin/zsh
# Function to calculate the number of days between two dates
calculate_days() {
local date1="$1"
local date2="$2"
# Convert dates to seconds since epoch
local sec_date1=$(date -j -f "%Y-%m-%d" "$date1" +"%s")
local sec_date2=$(date -j -f "%Y-%m-%d" "$date2" +"%s")
module.exports = function() {
return 'hello';
};
@zackhall
zackhall / wp-config-local-sample.php
Created February 11, 2016 07:22 — forked from bhubbard/wp-config-local-sample.php
This is my Template for a wp-config file.
<?php
################################################################################
// Custom WordPress Local Config
// Use only for Development
// https://gist.github.com/bhubbard/8428583
################################################################################
/* Database Connection Info */
define('DB_NAME', '');
define('DB_USER', '');
@zackhall
zackhall / wiki-100k.txt
Created January 21, 2016 20:56 — forked from h3xx/wiki-100k.txt
Wictionary top 100,000 most frequently-used English words [for john the ripper]
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources: