Skip to content

Instantly share code, notes, and snippets.

@Sandra-headscape
Sandra-headscape / download.sh
Created November 23, 2023 17:34
Download list of URLs from a txt file
#!/bin/bash
INPUT=$(find . -name "*.txt")
COUNT=1;
while IFS= read -r line
do
curl -O "$line"
let COUNT++
done < "$INPUT"
echo "count $COUNT"
@Sandra-headscape
Sandra-headscape / check.php
Created May 11, 2023 16:12
php datetime
<?php
$datetime = [
['May 11, 2023', 'Europe/London'],
['June 1, 2023', 'Europe/London'],
];