- Set Light mode
defaults write -g NSRequiresAquaSystemAppearance -bool Yes- Log out and log back in
- Set Dark mode
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "BTTWidgetName" : "Things To Do Today", | |
| "BTTTriggerType" : 639, | |
| "BTTTriggerTypeDescription" : "Apple Script Widget", | |
| "BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
| "BTTPredefinedActionType" : 195, | |
| "BTTPredefinedActionName" : "Run Apple Script (async in background)", | |
| "BTTInlineAppleScript" : "tell application \"Things3\"\r\tset firstItem to item 1 of every to do of list \"Today\"\r\tset firstName to name of firstItem\r\tdisplay notification \"COMPLETED: \" & firstName\r\tset status of firstItem to completed\rend tell", | |
| "BTTScriptType" : "AppleScript", | |
| "BTTEnabled2" : 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A colourful loading spinner. | |
| // By @marcedwards from @bjango. | |
| void setup() { | |
| size(512, 512, P2D); | |
| frameRate(30); | |
| smooth(8); | |
| noFill(); | |
| strokeWeight(10); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A loading spinner. | |
| // By @marcedwards from @bjango. | |
| void setup() { | |
| size(300, 300, P2D); | |
| frameRate(30); | |
| smooth(8); | |
| noFill(); | |
| stroke(255); | |
| strokeWeight(6); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Spotify ad skipper | |
| // @version 1.0 | |
| // @namespace http://tampermonkey.net/ | |
| // @description Detects and skips ads on spotify | |
| // @match https://*.spotify.com/* | |
| // @grant none | |
| // @run-at document-start | |
| // @downloadURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw | |
| // @updateURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw |
To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.
Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.
As an example, to bind Fn+PgUp to the play/pause media function:
I've been thinking about creating a font management service similar to traditional software package managers (e.g. Debian Aptitude, NPM, etc.)
The basic idea is this:
- There's a main repository of fonts that are free (as in free to distribute) that the working group hosts
- There's a small program that serves as the "manager", to be used or installed on client systems
- The "manager" can be configured to operate with multiple repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Syntax scheme | |
| const backgroundColor = 'rgb(40, 44, 52, 1)'; | |
| const foregroundColor = '#d6e9ff'; | |
| const cursorColor = '#2C85F7'; | |
| const borderColor = '#323E4D'; | |
| const colors = { | |
| black : backgroundColor, | |
| red : '#e26b73', | |
| green : '#6ac38a', | |
| yellow : '#e6c176', |
I made a little styling lib called glam
(some features are in development)
let's start off with the simplest use case. we'll make an 'index.html' page,
and assume we've setup our js bundler to output bundle.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sensible, short .zshrc | |
| # Gist page: git.io/vSBRk | |
| # Raw file: curl -L git.io/sensible-zshrc | |
| # GNU and BSD (macOS) ls flags aren't compatible | |
| ls --version &>/dev/null | |
| if [ $? -eq 0 ]; then | |
| lsflags="--color --group-directories-first -F" | |
| else | |
| lsflags="-GF" |