Skip to content

Instantly share code, notes, and snippets.

View blahgeek's full-sized avatar
👨‍💻

Yikai Zhao blahgeek

👨‍💻
View GitHub Profile
@blahgeek
blahgeek / himawari.py
Last active July 17, 2016 13:29 — forked from willwhitney/himawari.py
Fetch and untile tiled Himawari-8 images from the http://himawari8.nict.go.jp PNG endpoint, then set them as desktop background on OSX
import os
import requests
from datetime import datetime, timedelta
from PIL import Image
from io import BytesIO
import logging
import argparse
TILE_SIZE = 550
@blahgeek
blahgeek / gist:774599fc810dea3bf6ac
Created March 10, 2016 02:12
Stop Safari hanging when selecting the address bar or opening a new tab
This shit has been bugging me for too long, so I went on a hunt and found a workaround.
The Symptoms are as follows:
* Clicking the address bar results in a 1-4 second delay
* Opening links in new tabs results in a 1-4 second delay
* +T results in a 1-4 second delay
* `PressAndHold[<pid>]: IMKServer Stall detected` is present in `/var/log/system.log` at the time of the hang.
It appears to be to do with the PressAndHold helper - the thing that shows an IOS style selection of accents when you hold a key down.
The fix may have some unwanted effects, I haven't really noticed any.