Skip to main content

Senior Web Engineer. Open web / music. Remote DJ. Tall Dutch guy. #3million

micro.blog/sander

svandragt

mixcloud.com/cloudseer

 

My hackable blog framework is nearing a 0.4 milestone and I’m very excited to have containerised the project and added basic API documentation using phpDox. Sneak preview the master branch at https://github.com/svandragt/cuttlefish

 

Conditional .gitconfig

Add the following lines to ~/.gitconfig to load configuration only for repositories within a certain location:

[includeIf "gitdir:~/dev/work/"]
path = ~/dev/work/.gitconfig


For example, this can be used to set work email and signing keys. 

 

Added a quick example to the wp_schedule_event() codex page as all the examples provided are broken in some way. https://developer.wordpress.org/reference/functions/wp_schedule_event/

 

I didn't know that Chassis extensions can be installed globally http://docs.chassis.io/en/latest/extend/#globally-installing-extensions

 

Started something that potentially might simplify WordPress development.

 

I’m looking for a macOS tool that intercepts opening URLs and let me specificy regexes and associate them with browsers, so that when I open certain links from slack they always go into my project browser. Any ideas?

 

It turns out Breakmaster Cylinder's full discography (https://breakmastercylinder.bandcamp.com/) is the perfect music to do creative work to.

 

Staying focused

If you follow this blog you will have noticed that I've commented multiple times on needless distractions that seem to have pervaded modern computing. Today, let's present a few solutions.

Firstly, when in the flow of doing deep work, watching animations delay your actions can be a source of frustration. While we can't speed up GitHub, we can speed up macOS. In the accessibility settings, check Display > Reduce Motion. This will speed up the interface and Mission Control animations. If you miss the garishness, you can turn it back off but chances are you will notice the system not getting in the way as much.

Secondly a tip for fellow Homebrew users. When you're ready to work through that difficult project tooling setup, it can be the worst time for Homebrew to decide to update it self, especially as this can take up to half a minute depending on how far behind your version is. Not now Homebrew! If you follow the instructions at Homebrew Autoupdate you can setup Homebrew to update itself in the background.

Finally, if you're using oh-my-zsh or bash equivalent, there will be a setting for it to update itself without prompting. Edit .zshrc and add DISABLE_UPDATE_PROMPT="true". I've not had any issues.

Cheers to a focused work experience!

 

Thinking whether to renew http://appsubscriptions.com

 

Console.app happens to be the best .log file viewer I've ever used, for any logs - not just macOs system ones.

 

>Some opt-outs may fail due to your browsers cookies settings. If you would like to set opt-out preferences using this tool you must allow third party cookies in your browser settings.

How to fail your GDPR legislation TrustArc / Truste. Consent is opt-in.

 

Saw on the news a train season ticket between Glasgow and Edinburgh is now £4200 a year. That’s £350 a month. For comparison, leasing a brand new Honda Jazz starts at £155 a month.

 

It seems that HomeBrew on Linux is a good way to install newer packages without having to trust PPA authors.

 

Pseudo elements and states are adding complexity to web design and are best uses sparingly. Every one adds a mode that must be tested individually and this adds up.

 

Going to have to investigate whether to improve Known or switch to another blogging system. How is WordPress when posting from mobile these days?

 

Faster rendering through a Local DNS Proxy

Unless you're using DNS over HTTP (DoH), you can speed up general DNS requests by running a local DNS proxy, and increase the expiry time of DNS queries. I'll go into this further once I've updated this post for DNSMASQ to do DoH.

The following configuration will speed up browsing in Safari for example.

Install DNSMASQ:

brew install dnsmasq

Load all configs from /etc/local/etc/dnsmasq.d/:

echo "conf-dir=/usr/local/etc/dnsmasq.d,*.conf" | sudo tee —append /usr/local/etc/dnsmasq.conf
mkdir -p /usr/local/etc/dnsmasq.d


Edit /usr/local/etc/dnsmasq.d/proxy.conf:

# Tell dnsmasq to get its DNS servers from this config file only.
no-resolv
# Add router dns
server=192.168.1.1

# cache for 1h
min-cache-ttl = 3600

Start DNSMASQ on boot and launch it:

sudo brew services start dnsmasq

Test:

dig cnn.com @127.0.0.1

Query time should be 0 the second time and an ANSWER SECTION should be returned. If that is the case open System Preferences > Network > Advanced > DNS > +

Enter: 127.0.0.1 and hit OK > Apply.

 

I start a zsh instance and I get interrupted by oh my zsh asking to update.

 

I ask homebrew to install a package and it starts updating formulas.

 

I initiate a new Github Pull Request on a forked repo and it default destination is upstream/master

 

I type a word and another word shows on the screen.