Skip to content

Instantly share code, notes, and snippets.

@ecridge
ecridge / link-icloud-drive.sh
Created October 2, 2016 17:47
Add a symbolic link to iCloud Drive in Bash on macOS.
@lodestone
lodestone / alfred-pinboard-journey.adoc
Created October 1, 2016 19:32
My Alfred Pinboard Workflow Journey
@usirin
usirin / increase-video-speed.js
Created September 30, 2016 18:25
Bookmarklets
javascript: var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t)
@dalemanthei
dalemanthei / init.lua
Last active March 12, 2017 08:21
Hamerspoon config examples for hyper key
-- hattip https://github.com/lodestone/hyper-hacks
-- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907
-- hattip https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
-- The following keys are configured as hot keys in their respective apps (or in Keyboard Maestro)
-- d → Dash (configure in Dash preferences)
@prenagha
prenagha / init.lua
Created September 30, 2016 00:36
Hammerspoon Config File, Hyper Key, Karabiner-Elements
-- hattip https://github.com/lodestone/hyper-hacks
-- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907
-- A global variable for the sub-key Hyper Mode
k = hs.hotkey.modal.new({}, 'F18')
-- Hyper+key for all the below are setup somewhere
-- The handler already exists, usually in Keyboard Maestro
-- we just have to get the right keystroke sent
@ttscoff
ttscoff / init.lua
Last active June 6, 2025 19:31
Hammerspoon config examples for hyper key
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
-- Trigger existing hyper key shortcuts
k:bind({}, 'm', nil, function() hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"}, 'm') end)
-- OR build your own
launch = function(appname)
@stvhwrd
stvhwrd / applications-list.md
Last active December 14, 2016 03:05
Homebrew installed applications

Adium.app

Alfred 3.app

App Store.app

AppCleaner.app

Atom.app

@shrop
shrop / clamav-mac.md
Created September 28, 2016 20:50 — forked from Uchean/clamav-mac.md
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamd process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so

@timsutton
timsutton / apfs_cli_tools.txt
Last active August 28, 2025 07:15
apfs tools in Sierra
➜ ~ sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.1
BuildVersion: 16B2333a
➜ ~ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources
total 2088
-rwxr-xr-x 1 root wheel 349760 22 Sep 03:48 apfs.util
-rwxr-xr-x 1 root wheel 352880 22 Sep 03:48 apfs_invert
@hepcat72
hepcat72 / create_reminder_from_file.scpt
Last active November 5, 2016 18:57
Applescript Folder Action to create reminders from files added (for user with IFTTT's Google Calendar and Dropbox channels)
--Download this file and put it in your ~/Library/Scripts/Folder Action Scripts folder, then attach it to a dropbox folder to run when items are added to it. Create those files using IFTTT recipes.
--This script creates a reminder from a file (e.g. when my wife adds a new event to her work calendar (containing the word "work" in the title) IFTTT creates a file inside dropbox which this script parses to create a static reminder(s) for a certain time that day, e.g. feed the cat and change the litter)
--Each line of the input file must be (Comments with # characters allowed):
-- Reminder List name to which to add the reminder
-- Due date (e.g. "August 31, 2016" optionally followed by " at 5:00am")
-- Due time (e.g. 9:00 AM)
-- Title (Name of the reminder)
-- Keyword (if found in the original title, reminder is created)
-- Original title (Title of the google calendar event)
--The file name have multiple events (every 6 lines)