app


Jun. 10, 2020

nvALT Revisit

I am looking for an app to do random text input on the macOS, and sync through my own and company’s laptops. I tried Tot/Drafts, since I removed my iCloud account on the company’s laptop, the only modern way is using Dropbox. Then I get back the nvALT after I found it supports backlink, but inside of the app itself, by using [[text]], you can click it to search the nvALT with text. Gruvbox Dark Color Based on Gruvbox color scheme Font: SF Compact Text Search Highlight: #FE8019 Foreground Text: #EBDBB2 Background: #282828 Website: jma.dev Weekly Tech bookmarks: funcmarks

May. 29, 2020

Which browser for what link on macOS

It’s hard to split work and personal usage on the laptop at all. I would like to open work related web pages on Google Chrome, and all others go to Safari Before I have a Keyboard Maestro Marcos, I manually copy the address to clipboard and use hotkey to open it in the Google Chrome. However, this needs two more steps that are right-clicking or selection, and the hotkey. Then I find a few apps that can do the same with just clicking. You need to set the app as the default browser, and once you click the address, the app will help you forward to the specific app by the rule you set up. I also made a shortcuts on iOS that you can use share sheet or clipboard to open the address in Google Chrome iOS. Choosy The only one supports Google Chrome Profile so far. So if you have multiple profiles in Google Chrome, this is the only choice for you right now. Also, it has a similar popup browser selection like Bumpr. Bumpr The UI is the best, especially the popup browser selection, however, once you set up the rule, you could not edit it. Browser Opener Similar to Choosy, but not support Google Chrome Profile yet Finicky Very recently found this open source, you need to write a config file using JavaScript rather than GUI. However, there is a page finicky kickstart that helps you generate a basic config file. Also, There is one feature that you can edit the urls before opening.

Apr. 9, 2014

Keyboard Maestro as a replacement for TextExpander

Recently, I started to try Keyboard Maestro, and some people talked about it can be used as a replacement for TextExpander. Even I am not super fan of TextExpander, but I still use it sometimes. I decided to try it to see difference. Trigger Add a new trigger, select Typed String Trigger, then This string is typed. Type any short string as trigger, eg. I use gml (two spaces after gml). And other options which you can select as you like. Make sure you tick Simulaate x deletes before executing, otherwise the trigger phrase won’t be deleted before expansion is inserted. Actions There are only two actions. One is Insert Text, and another is Delete Past Clipboard Insert Text action, type the expansion into the textarea, and you also can use Insert Token to add variables of Keyboard Maestro given. Delete Past Clipboard action, change the value to 0(default is 1), because Insert Text action will paste the expansion to clipboard, and replace any previously copied.

Apr. 8, 2013

500px Workflow for Alfred v2

Please register your own api key on 500px via here, and put Consumer Key after $api="" in workflow. For example, you want to save this photo with id: 27042559 on 500px to your local. Call Alfred, and type: 500px 27042559 It will download size 5 image into your desktop with name 27042559_5.jpg Download: 500px.workflow

Aug. 28, 2012

Monday Calendar

Monday Calendar is a day based todo app which is similar with Teuxdeux, but it has better interface(at least for me), works on iPhone/iPad as well with browser, and more functions coming. Usually, I use Omnifocus as my project GTD app, and it is still the best GTD app for Mac, iPhone, and iPad. However, sometimes I just need a simple list app especially for my work. I tried Monday Calendar one day, and I feel this is what I am looking for. Simple, clearly, easy, and with elegant interface. It’s worth to try, and I think you will like it. Go website and request invite now.

Aug. 22, 2012

Sublime Text 2 nil Theme

A nice Sublime Text 2 Theme And a good font: PragmataPro

Aug. 15, 2012

Running Pow And MAMP Pro Together

source: Running Pow with Apache I use both Pow for rails development and MAMP Pro for PHP development. I need them work simultaneously. Before start, if you have Pow installed, uninstall it with curl get.pow.cx/uninstall.sh | sh Then let pow’s firewall run to redirect all traffic from port 88 instead of port 80 echo 'export POW_DST_PORT=88' >> ~/.powconfig Then you can install Pow as normal curl get.pow.cx | sh Now, open MAMP Pro, create a new host. Doesn’t matter what it is named and which directory is selected (though I use ‘rails.dev’ and the folder I keep my Rails apps in).Also, deselect the select box for “local name resolution”, just in case. Then go to the Advanced tab, and fill this in to the textarea labeled “Customized virtual host general settings”: ServerName pow ServerAlias *.dev ProxyPass / http://localhost:20559/ ProxyPassReverse / http://localhost:20559/ ProxyPreserveHost On

Jul. 5, 2012

Command to start Sublime Text on Ubuntu

There is a quick method to open Sublime Text from Terminal on Mac OS X. This is how to run Sublime Text on ubuntu terminal. Create command file: sudo vim /usr/local/bin/subl Copy & Paste below code, and change to your Sublime Text path #!/bin/sh $HOME/Apps/Sublime\ Text\ 2/sublime_text $1 & Give execute permission sudo chmod +x /usr/local/bin/subl Then you can do like this subl . or subl filename

Jun. 26, 2012

Open Sublime Text 2 from Terminal Like TextMate

Updated@2012-06-26 23:00 +1000: It looks like sublime text 2 has official doc to support os x command line, I made it into /usr/local/bin/ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/ I used to run below command from terminal to open current projects in TextMate. mate . Now I am swiching to Sublime Text 2. Which is missing this. What I need to do just add below code into ~/.bash_profile alias sub='open -a "/Applications/Sublime Text 2.app"' Then I can open projects the same you would have in TextMate in Sublime Text but with the following command sub . That means you also can open any app from terminal, like when I want to edit markdown post in jekyll, or edit README file in my project from terminal by Byword: alias bw='open -a "/Applications/Byword.app"'