Skip to content

Instantly share code, notes, and snippets.

View KingOfSpades's full-sized avatar

KingOfSpades

View GitHub Profile
@KingOfSpades
KingOfSpades / Function: certinfo
Last active January 30, 2023 12:32
SSL Tools
# Request certificate from https endpoint and show info for macOS
function certinfo() {
if [[ "$1" == *":"* ]]; then
_port=$( echo $1 | cut -f2 -d':')
else
_port=443
fi
echo "\n"
echo -e "\033[0;97m\033[41m Using $1:$_port \033[0m"
openssl s_client -connect $1:$_port -servername $1 \
@KingOfSpades
KingOfSpades / createProject.jxa
Created September 23, 2021 09:27
JXA And Things3
var TaskApp = Application('Things3');
var projectObj = TaskApp.Project({
name: "Test Project"
})
TaskApp.projects.push(projectObj)
@KingOfSpades
KingOfSpades / customTags.css
Created April 21, 2021 17:39
customTags.css for customizing Tag's in Obsidian
.tag[href="#Evergreen/Seedling"] {
font-size: 0;
padding: 0;
}
.tag[href="#Evergreen/Seedling"]:after {
font-size: 8pt;
font-weight: 700;
background-color: rgb(165, 29, 42);
color: rgb(232, 230, 227);
padding: 3px 3px;
@KingOfSpades
KingOfSpades / addToFantastical.scpt
Last active March 31, 2021 22:33
Adding ToDo from Things3 to Fantastical
(*
Purpose: Add a selected ToDo to Fantastical
2021-03-25:
- Initial version
*)
on run
tell application "Things3"
set title to name of selected to dos
set description to notes of selected to dos