Skip to content

Instantly share code, notes, and snippets.

Craig Mod cmod

Block or report user

Report or block cmod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cmod
cmod / maillink.alfredworkflow
Last active Nov 3, 2019
Alfred workflow — type '!ml' to produce unique link to current message in Mail.app
View maillink.alfredworkflow
View airpod_touchbar.json
{
"BTTWidgetName" : "Airpods",
"BTTTriggerType" : 639,
"BTTTriggerTypeDescription" : "Apple Script Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTEnabled2" : 1,
"BTTUUID" : "9E161F92-3C7B-44CA-B18A-0DB292717A51",
"BTTEnabled" : 1,
@cmod
cmod / langoliers.rb
Created Aug 5, 2018 — forked from robinsloan/langoliers.rb
Tweet delete script
View langoliers.rb
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@cmod
cmod / things-top-todo.json
Created Jul 25, 2018
Touch Bar addition: Latest todo in Things
View things-top-todo.json
This file has been truncated, but you can view the full file.
{
"BTTWidgetName" : "Things To Do Today",
"BTTTriggerType" : 639,
"BTTTriggerTypeDescription" : "Apple Script Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 195,
"BTTPredefinedActionName" : "Run Apple Script (async in background)",
"BTTInlineAppleScript" : "tell application \"Things3\"\r\tset firstItem to item 1 of every to do of list \"Today\"\r\tset firstName to name of firstItem\r\tdisplay notification \"COMPLETED: \" & firstName\r\tset status of firstItem to completed\rend tell",
"BTTScriptType" : "AppleScript",
View twitter_lists.css
/*
Minimal Twitter List
==========================
1. Make a Fluid (http://fluidapp.com/) instance of https://twitter.com/{username}/lists/{listname}
1. a. (You need to buy the paid version of Fluid to modify UserStyles)
2. Apply the below CSS as a Userstyles stylesheet
3. Like magic, you can enjoy just the list, in a nice minimal interface
View eject_all_disks
# =======================================
# OS X — ONE CLICK — EJECT ALL DISKS
# =======================================
# Open Script Editor on OS X
# Copy and paste this file in
# Pre-High Sierra: Save As > Application
# High Sierra: Export > File Format > Application
# Name it "Eject All Disks"
# Drag created application to Dock
# Now you can eject all external disks with one click from Dock
View twitter_notifications_only.css
/*
Just the Notifications, please
==============================
1. Make a Fluid (http://fluidapp.com/) instance of https://twitter.com/i/notifications
2. Apply the below CSS as a Userstyles stylesheet
3. Enjoy just the conversation, not the timeline
Why?
@cmod
cmod / minimal_fb_messenger.css
Last active Apr 25, 2018
Minimal Facebook Messenger for Fluid
View minimal_fb_messenger.css
/*
Minimal Facebook Messenger
==========================
1. Make a Fluid (http://fluidapp.com/) instance of https://facebook.com/messages/
1. a. (You need to buy the paid version of Fluid to modify UserStyles)
2. Apply the below CSS as a Userstyles stylesheet
3. Like magic, you can now message without all the cruft of Full Facebook
@cmod
cmod / minmal_twitter.css
Created Sep 13, 2012 — forked from maxfenton/gist:3670929
Twitter stylebot
View minmal_twitter.css
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
You can’t perform that action at this time.