Skip to content

Instantly share code, notes, and snippets.

View dismantl's full-sized avatar
💣
hacking

Dan Staples dismantl

💣
hacking
View GitHub Profile
@dismantl
dismantl / obsidian-plugins.sh
Created December 20, 2023 17:30
Shell command to list all Obsidian community plugins sorted by number of downloads
curl -s https://raw.githubusercontent.com/obsidianmd/obsidian-releases/HEAD/community-plugin-stats.json | \
jq -r 'to_entries | sort_by(.value.downloads) | reverse | map("\(.key): \(.value.downloads)") | .[]'
# Output:
# obsidian-excalidraw-plugin: 1431651
# dataview: 1303290
# table-editor-obsidian: 1162914
# obsidian-kanban: 913152
# calendar: 899655
# obsidian-tasks-plugin: 870132
@dismantl
dismantl / okta-export.sh
Created August 13, 2019 18:59
Export active Okta users to CSV file
#!/bin/bash
# Add your Okta API key and domain here:
OKTA_API_KEY=xxxxxxxxxxxxxxx
OKTA_DOMAIN=mydomain.okta.com
OUTPUT_FILE=okta-users.csv
# Write CSV headers
echo '"userType","department","firstName","lastName","nickName","displayName","email","title","division","postalAddress","streetAddress","city","state","zipCode","primaryPhone","secondEmail","mobilePhone"' \
> $OUTPUT_FILE
@dismantl
dismantl / github-troll.md
Created October 28, 2020 14:47 — forked from lrvick/github-troll.md
Trolling Github's DMCA repo with their own security flaws.

Keybase proof

I hereby claim:

  • I am dismantl on github.
  • I am dismantl (https://keybase.io/dismantl) on keybase.
  • I have a public key ASCpgk7HIFcLwuGEPnpnBgPcZr6VkSgxDNb5meohLHeWago

To claim this, I am signing this object: