Gmail iOS URL Schemes

Open specific message

googlegmail:///cv=13eafcee7cc82901/accountId=1&create-new-tab

Open compose message

googlegmail:///co?subject=<subject text>&body=<body text>&to=

For Google Inbox use inbox-gmail:/// instead of googlemail:///

Advertisements

macOS Productivity Apps every dev needs!

SpectacleFree, Open Source

Really good window management; short cuts to dock windows to left/right half (or quadrants, or top/bottom) of screen.

Alternative: Magnet , App Store, about $2
Spectacle does some stuff very well, like hitting the ‘dock right’ shortcut twice makes a window use the right third, right half, right 3/4ths etc. On the other hand magnet can dock windows on drag (i.e. drag to top of screen to make a window full screen).

Alternative: BetterTouchTool, Donationware
Can do everything Spectales/Magnet can do, better. However, it does not batteries included, so you have to make your own shortcuts and assign window management operations to it. There’s a community forum for sharing presets but it’s not as rich. What BetterTouchTool does incredibly well is Touchbar based Window Management!

Alfred, Freemium

Better spotlight, including deep integration with Google / Gmail / Drive and other custom searches.

OneNote, Free, Proprietary 

The best note taking app out there. Period.

ScreenHero (now owned by Slack, needs invite)

CleanMyMac (http://twidex.com/2rcfFj4), Freemium 

Itsycal, Freemium

PHPStorm, Visual Studio Code, Homebrew,

One-Liners

Q: Can February March?
A: No. But April May!

Q: Did you hear about the painter who was hospitalized?
A: Reports say it was due to too many strokes!

Q: Have you heard the joke about the butter?
A: I better not tell you, it might spread!

Q: How do you know that carrots are good for your eyesight?
A: Have you ever seen a rabbit wearing glasses?

Q: Music Teacher: What’s your favourite musical instrument?
A: Kid: The lunch bell!

Q: What did the triangle say to the circle?
A: You’re pointless!

Q: What do you call a ghosts mom and dad?
A: Transparents!

Q: What do you call a group of men waiting for a haircut?
A: A Barbercue!

Q: What do you call a person that chops up cereal.
A: A cereal killer!

Q: What do you call a South American girl who is always in a hurry?
A: Urgent Tina!

Q: What do you call two fat people having a chat?
A: A heavy discussion!

Q: What kind of emotions do noses feel?
A: Nostalgia!

Q: What kind of shorts do clouds wear?
A: Thunderwear!

Q: Who cleans the bottom of the ocean?
A: A Mer-Maid!

Q: Why can’t a leopard hide?
A: Because he’s always spotted!

Q: Why can’t your nose be 12 inches long?
A: Because then it would be a foot!

Q: Why did the boy tiptoe past the medicine cabinet?
A: He didn’t want to wake the sleeping pills!

Q: Why did the tomato turn red?
A: It saw the salad dressing!

Q: Why did the tree go to the dentist?
A: To get a root canal!

Q: Why don’t you see giraffes in elementary school?
A: Because they’re all in High School!

Q: Why was the math book sad?
A: Because it had too many problems!

Postfix: Add a catch-all domain

Configure postfix to forward all email for a domain to another destination. (#Ubuntu #Trusty)

$>vim /etc/postfix/main.cf
virtual_alias_domains = domain.com example.org
virtual_alias_maps = static:<email@example.org>
#virtual_alias_maps = hash:/etc/postfix/virtual
$>service postfix reload

Any email sent to *@domain.com, *@example.org will be redirected to email@example.org, assuming of course that you setup the MX record for domain.com / example.org to be the postfix server.

One risk is that any spam will also get forwarded; this is normally ok, but gmail etc will lower the sending MTA / IP score such that future emails that are not spam will still be treated as spam.

Docker ❤️ Parallels ❤️ OS X (El-Capitan)

Tags

, , ,

Getting started with Docker + Parallels on OS X (using Homebrew)

Update: Sep 2016: This is no longer relevant; best to download Docker for Mac which uses xhyve to virtualize the Docker Engine environment and Linux kernel-specific features on OS X. This allows for much easier sharing of files between your local machine and docker containers.

Want to use Docker on OS X? At the moment, the OS X kernel does not directly support containers like Docker or OpenVZ. So you have to run a VM with docker installed. You then use the Docker CLI to interact with the Docker (daemon) running on the VM. The whole process is actually very easy to setup now that Docker Machine supports the Parallels driver.

Assumptions: You already have Parallels (11, Business or Pro Edition) and Homebrew installed.

$> brew update  # need to brew with a recent version
$> brew upgrade
$> brew install docker docker-machine docker-machine-parallels
… grab some coffee…
$> docker-machine create -d parallels dev1
$> eval `docker-machine env dev1`
$> docker run hello-world

All done!

You are now ready to use Docker, Docker Composer and even Docker Swarm.

Scoring my iPhone rumour round-up

John Gruber (Daring Fireball): iPhone 6s (or whatever it’s called) will have the biggest jump in camera tech ever (perhaps dual-lens based on technology acquired from Linx)

  • Check, camera is now 12MP, records 4K, better low-light performance. Not dual-lens though.

Mark Gurman (9to5Mac): Same exterior (perhaps 0.13mm deeper, which is too small to be noticeable). Updated interior with fewer chips. Rose Gold as an option. Difference is size could be due to inclusion of Force Touch (not sure at all, just reporting feedback and comments on the article itself). Will have faster LTE (updated Qualcomm chip).
-(http://9to5mac.com/2015/07/03/iphone-6s-photos-nfc-storage-chips/)

  • Check, iPhone 6s is a infinitesimal bit larger, has fewer chips, rose-gold option, faster LTE, substantially improved CPU

WSJ: Apple manufacturing a record number of iPhones (90mn). Same sizes.
-(http://www.wsj.com/articles/apple-preparing-record-number-of-new-iphones-1436367371)

  • Seems to be holding up, esp. when looking at Apple’s guidance for the holiday quarter.

iPhone (vNext) Rumours

John Gruber (Daring Fireball): iPhone 6s (or whatever it’s called) will have the biggest jump in camera tech ever (perhaps dual-lens based on technology acquired from Linx)
-(http://daringfireball.net/thetalkshow/2014/11/15/ep-100)

Mark Gurman (9to5Mac): Same exterior (perhaps 0.13mm deeper, which is too small to be noticeable). Updated interior with fewer chips. Rose Gold as an option. Difference is size could be due to inclusion of Force Touch (not sure at all, just reporting feedback and comments on the article itself). Will have faster LTE (updated Qualcomm chip).
-(http://9to5mac.com/2015/07/03/iphone-6s-photos-nfc-storage-chips/)

WSJ: Apple manufacturing a record number of iPhones (90mn). Same sizes.
-(http://www.wsj.com/articles/apple-preparing-record-number-of-new-iphones-1436367371)

Will have iOS9 (master of the obvious, yours truly).