Skip to content

Instantly share code, notes, and snippets.

View Terrell707's full-sized avatar

Adrian Chambers Terrell707

View GitHub Profile
@Terrell707
Terrell707 / acme-cert-dump-all.py
Created August 6, 2020 01:46 — forked from JayH5/acme-cert-dump-all.py
Dump all certificates from Traefik's acme.json to .pem files
#!/usr/bin/env python
import argparse
import base64
import json
import os
def main():
parser = argparse.ArgumentParser(
description="Dump all certificates out of Traefik's acme.json file")
@Terrell707
Terrell707 / Hooks_Thing_Integration.scpt
Created July 28, 2020 03:56 — forked from wljgo/Hooks_Thing_Integration.scpt
Applescript code for "Get Adress" Hook - Things Integration
tell application id "com.culturedcode.ThingsMac"
set _id to null
set n to count of selected to dos
if n = 1 then
set _id to id of item 1 of selected to dos
else if n = 0 then
@Terrell707
Terrell707 / emoji-info.sh
Created July 12, 2020 21:25 — forked from yangxuan8282/emoji-info.sh
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence
@Terrell707
Terrell707 / get_title_and_url.applescript
Created July 11, 2020 06:46 — forked from dongyuwei/get_title_and_url.applescript
Applescript to get frontmost tab’s url and title of various browsers.
# Keep in mind that when asking for a `return` after another, only the first one will be output.
# This example is meant as a simple starting point, to show how to get the information in the simplest available way.
# Google Chrome
tell application "Google Chrome" to return URL of active tab of front window
tell application "Google Chrome" to return title of active tab of front window
# Google Chrome Canary
tell application "Google Chrome Canary" to return URL of active tab of front window
tell application "Google Chrome Canary" to return title of active tab of front window
# Chromium
@Terrell707
Terrell707 / get_url.scpt
Created July 11, 2020 03:16 — forked from prashanthrajagopal/get_url.scpt
AppleScript to get url from Safari, Firefox and Chrome
display dialog "Name of the browser?" default answer "Safari"
set inp to text returned of result
tell application "System Events"
if inp is "Google Chrome" then
tell application "Google Chrome" to return URL of active tab of front window
else if inp is "Safari" then
tell application "Safari" to return URL of front document
else if inp is "Firefox" then
tell application "Firefox" to activate