$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1611
(function() { | |
function getSelectionText() { | |
// https://stackoverflow.com/questions/5379120/get-the-highlighted-selected-text | |
var text = ""; | |
if (window.getSelection) { | |
text = window.getSelection().toString(); | |
} else if (document.selection && document.selection.type != "Control") { | |
text = document.selection.createRange().text; | |
} | |
return text; |
if input volume of (get volume settings) = 0 then | |
set level to 90 | |
display notification "On" with title "Mic" | |
tell application "System Events" | |
tell appearance preferences | |
set dark mode to false | |
end tell | |
end tell | |
else | |
set level to 0 |
Matches: ("opt-out" OR unsubscribe OR "viewing the newsletter" OR "privacy policy" OR enews OR "edit your preferences" OR "email notifications" OR "update profile" OR smartunsubscribe OR secureunsubscribe OR yahoogroups OR "manage your account" OR "group-digests") Do this: Skip Inbox, Apply label "Work/Newsletters"
Matches: (subject:("invitation" OR "accepted" OR "rejected" OR "updated" OR "canceled event" OR "declined") when where calendar who organizer) Do this: Skip Inbox, Apply label "GTD/Follow up"
The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics. Update: Replaced the first script with one from http://hohonuuli.blogspot.de/2016/02/iterm2-version-3-open-iterm-here-script.html (thanks @smith64fx for the link)
- Open
Automator
- Create an
Application
- Choose
Actions > Utilities > Run Applescript
- Paste the contents of
open_in_iterm.app
into the window. - Save the script somewhere convenient
javascript: | |
/*! ReadingMode © Xavi Esteve */ | |
(function (d) { | |
var el = d.getElementsByTagName("*"); | |
var htmlDiv = d.createElement("div"); | |
var readingModeMenu = d.createElement("div"); | |
var readingModeAlert = d.createElement("div"); | |
var title = d.title; | |
var rmSettings = {}; |
@-moz-document url-prefix("https://mail.google.com/mail/") { | |
/* | |
***** | |
This style is based off of Nicer New Gmail but it's really more of a slash and burn approach. | |
NO COLORS except tiny bit of red and yellow and some blue I can't get rid of. | |
I know just enough CSS to be dangerous and not enough to really make things work correctly. Some things it | |
chokes on: | |
- tabs! I don't use them so who cares what they look like | |
- hangout/chat tab - I disabled this as soon as they added it, maybe it's blue, I don't know |
javascript:(function(){function%20a(n,t){return'<a%20href="'+loc+"#"+n+'"%20title="'+t+":%20"+n+'"%20style="text-decoration:none;padding:.2em;background:#fff;border:1px%20solid%20black;display:block;position:absolute;z-index:2147483647;border-radius:3px;-webkit-box-shadow:0%203px%207px%20rgba(0,0,0,0.3);box-shadow:0%203px%207px%20rgba(0,0,0,0.3)">#'+n+"</a>"}var%20$,loc=location.href,anchorPos=location.href.lastIndexOf("#");anchorPos>-1&&(loc=loc.substring(0,anchorPos)),function(u,c){var%20h=document.getElementsByTagName("head")[0],s=document.createElement("script");s.src=u;var%20d=!1;s.onload=s.onreadystatechange=function(){d||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(d=!0,c(),s.onload=s.onreadystatechange=null,h.removeChild(s))},h.appendChild(s)}("//code.jquery.com/jquery-3.3.1.min.js",function(){$=jQuery,$("a[name]").each(function(i){$(a(this.name,"name")).insertBefore(this)}),$("[id]:not(input[type='hidden'])").each(function(i){switch(this.nodeName){case"TD":$(this).prepend |
2019 update: this essay has been updated on my personal site, together with a followup on how to get started
2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!
If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.
You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos
; acceleration_enabled = {acceleration_enabled} | |
; acceleration_infill = {acceleration_infill} | |
; acceleration_ironing = {acceleration_ironing} | |
; acceleration_layer_0 = {acceleration_layer_0} | |
; acceleration_prime_tower = {acceleration_prime_tower} | |
; acceleration_print = {acceleration_print} | |
; acceleration_print_layer_0 = {acceleration_print_layer_0} | |
; acceleration_roofing = {acceleration_roofing} | |
; acceleration_skirt_brim = {acceleration_skirt_brim} | |
; acceleration_support = {acceleration_support} |