start new:
tmux
start new with session name:
tmux new -s myname
--Two changes to be made before you use this script | |
--1. Find this line in the script below and change it to the path to your Dropbox Public folder. | |
--Change pubfolder to the path of your dropbox public folder (ex. /Users/John/Dropbox/Public/) | |
--2. Observe one of your Dropbox URLs and you will notice that there are some numbers in those URLs. That is your Dropbox id. | |
--Find this line in the script below and change it to your Dropbox id instead of 123456 | |
--set dropboxID to 123456 | |
------------------------------------------------------------------- | |
--How to use? | |
--Bring this script in LaunchBar, press space and type the name that you would like to give to that screenshot and press return | |
--e.g. myname |
-- | |
-- Applescript to monitor age of last time machine backup | |
-- and send alert to notification center if too old | |
-- | |
set tmLatest to do shell script "/usr/bin/tmutil latestbackup" | |
set latest to POSIX file tmLatest | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent TM backup " & file_age & " days old" |
-- | |
-- Applescript to monitor age of last arq backup | |
-- and send alert to notification center if too old | |
-- | |
set arqF to (path to current user folder) & "Library:Arq:lastsV2.dat" as string | |
set latest to arqF as alias | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent Arq backup " & file_age & " days old " & arqF |
(* | |
http://zoesmith.io | |
Export Bookmarks from Evernote to Pinboard | |
v1.4 12th September 2012 | |
This script takes selected notes in Evernote and sends an email for each to Pinboard, extracting each note's title, source URL and associated tags. The user should enter their Pinboard email address in the pinboardEmail property below, and can choose a default tag to add to each bookmark on import. | |
This code is hacky, horrible and non-error checking (but it worked for me). Don't use on thousands of notes at a time, it'll go all crashy. Try selecting one test note first to see if it works for you. | |
Change log: |
-- Use Instapaper to export a CSV file of your articles. | |
-- Must have Numbers to open it in. | |
-- Will create PDF documents in /Instapaper/<your folder in Instapaper> groups. | |
-- Be sure to select an open database in DT Pro before you run this. | |
-- | |
-- Created by Annard Brouwer, 24/08/2014 | |
-- | |
-- This program is free software released "as-is"; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | |
-- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
-- Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
atom-text-editor { | |
font-family: 'Fira Code'; | |
font-style: normal; | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor::shadow { | |
.string.quoted, | |
.string.regexp { | |
-webkit-font-feature-settings: "liga" off, "calt" off; | |
} |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
-- My own config file to get the Hyper Key working again with my current setup. | |
-- All credit goes to @prenagha and @ttscoff for their awesome original code that I tweaked for my own devices. | |
-- Credit 1: https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907 | |
-- Credit 2: https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e | |
-- A global variable for the sub-key Hyper Mode | |
k = hs.hotkey.modal.new({}, 'F17') | |
-- Hyper-key for all the below are setup somewhere... Usually Keyboard Maestro or similar. Alfred doesn't handle them very well, so will set up separate bindings for individual apps below. |