Skip to content

Instantly share code, notes, and snippets.


Scott Granneman rsgranne

  • WebSanity
  • St. Louis, MO
View GitHub Profile
jerieljan /
Created May 22, 2021
Screenshot OCR with BetterTouchTool on MacOS
#!/usr/bin/env bash
# Usage:
# - Install `tesseract` with `brew install tesseract`
# - In BetterTouchTool, create a trigger of your choice.
# (I recommend a Keyboard Shortcut with Cmd+Shift 6)
# - Add an Execute Shell Script / Task action
# - Paste this script.
# NOTE: You'll need to authorize BTT to the Screen Recording permission in Security and Privacy at System Preferences
nyurik /
Last active Nov 27, 2021
Script to convert SCSS files from physical to logical values for RTL and vertical languages
# This script converts margins, padding, and borders to logical values,
# allowing RTL and vertical languages to show correctly.
# Supports both *.css and *.scss files.
# Some renames are not yet implemented widely, and may require CSS plugin
# They have been commented out for now, but feel free to try them out.
# Full spec:
sundowndev /
Last active Dec 4, 2021
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
carnal0wnage / DevOOPS: Attacks And Defenses For DevOps Toolchains Talk Links
Last active Nov 5, 2020
Links from Chris Gates/Ken Johnson DevOOPS RSA 17 presentation
View DevOOPS: Attacks And Defenses For DevOps Toolchains Talk Links
mapmeld /
Last active Sep 27, 2020
OverEncrypt - paranoid HTTPS


This is a guide that I wrote to improve the default security of my website , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are , , and

JMichaelTX / JXA
Last active Nov 26, 2021
JavaScript for Automation (JXA) Resources
View JXA

JXA Resources

Revised: 2019-11-28 16:16 GMT-6


This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.

tkon99 / name.js
Last active Dec 1, 2021
Random Name Generator for Javascript
View name.js
(c) by Thomas Konings
Random Name Generator for Javascript
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
function getRandomInt(min, max) {
View 2014_11_02_Send_Keynote_Text_To_Markdown_File.applescript
-- Send Keynote Text to Desktop Markdown File
-- Writted By: Richard Dooling
-- Based on
-- Send Keynote Presenter Notes to Evernote
-- Version 1.0.1
-- Written By: Ben Waldie <>
-- Version 1.0.0 - Initial release
View gist:5512408
* g o a t s e x * g o a t s e x * g o a t s e x *
g g
o / \ \ / \ o
a| | \ | | a
t| `. | | : t
s` | | \| | s
e \ | / / \\\ --__ \\ : e
x \ \/ _--~~ ~--__| \ | x
* \ \_-~ ~-_\ | *
g \_ \ _.--------.______\| | g