Skip to content

Instantly share code, notes, and snippets.

@sdkks
sdkks / curl_timer.sh
Created June 2, 2018 17:31
Get URL Load Speed Using CURL
#!/usr/bin/env bash
case $1 in
http*)
URL="$1"
;;
*)
echo "Please provide URL as positional parameter. i.e.: ./script <url>"
exit 1
;;
esac
@sdkks
sdkks / iterm_nvim.AppleScript
Last active May 13, 2023 14:16
Open File with iTerm2 + nvim on OSX using Automator
on run {input, parameters}
-- If run without input, open random file at $HOME
try
set filename to POSIX path of input
on error
set filename to "nvim-" & (do shell script "date +%F") & "__" & (random number from 1000 to 9999) & ".txt"
end try
-- Set your editor here
set myEditor to "/usr/local/bin/nvim"
-- Open the file and auto exit after done