syndaemon -d -k -i 0.5
The options are: run as resident (-d), ignore modifer keys (-k, so you can still ctrl-click), and wait for half a second before enabling the mouse again (-i 0.5).
Stuart Miller's personal blog.
syndaemon -d -k -i 0.5
I wanted to make a couple of changes to an open source library that was based on GitHub. I had made a contribution to another library before, but I didn't really do it properly. This time, I was definitely going to do it right. Here's what I learnt.
I thought I was being good with my git branch foo, git checkout foo skills. While I was diligent in committing to my local branch, when I was finished I merged it into my master and pushed from there.
Pro tip: git push foo origin after you've finished working in your branch.
Doing this means you can open a shiny pull request with only your change in it.
Firstly; give up on your local branch. Seriously -- delete it using git branch -D foo. Also make sure you haven't got an existing remote branch (if you do, get rid of it using git push origin :foo).
Then recreate your local branch, and use the magic git rebase -i HEAD~5 (where 5 means get the last 5 commits). This opens an editor where you can delete the commits you don't want to appear in the branch.
Once you've done this, you can git push foo origin, and you'll have a beautiful remote branch all set up for a pull request.
prstat -mvL -p <processid>To get output like:
PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID 2108 stuart 1.7 0.0 0.0 0.0 0.0 98 0.0 0.0 5 2 5 0 java/52 2108 stuart 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 100 0 100 0 java/18 2108 stuart 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 50 0 50 0 java/28 2108 stuart 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 5 0 5 0 java/21 2108 stuart 0.0 0.0 0.0 0.0 0.0 100 0.0 0.0 5 1 5 0 java/8 2108 stuart 0.0 0.0 0.0 0.0 0.0 100 0.0 0.0 1 0 1 0 java/20 2108 stuart 0.0 0.0 0.0 0.0 0.0 100 0.0 0.0 2 0 2 0 java/85
----------------- lwp# 2108 / thread# 52 -------------------- fc829624 * *com/sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.nextNode()Z [compiled] fc2c5bb8 * *com/sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.getHandleFromNode(Lorg/w3c/dom/Node;)I [compiled] +50 (line 1341) fca4f1b8 * *com/sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.getHandleOfNode(Lorg/w3c/dom/Node;)I [compiled] +89 (line 1409) fca4f1b8 * *com/sun/org/apache/xml/internal/dtm/ref/DTMManagerDefault.getDTMHandleFromNode(Lorg/w3c/dom/Node;)I+219 (line 1135) fca1088c * *com/sun/org/apache/xpath/internal/XPathContext.getDTMHandleFromNode(Lorg/w3c/dom/Node;)I [compiled] +6 (line 364)
Technique | Size (kb) |
---|---|
Original | 256 |
GZip | 76 |
Minified* | 91 |
Minified + GZipped | 33 |