- GPG command line tools - https://www.gnupg.org/download/
- Git (Windows only) - https://gitforwindows.org/
- Open Terminal. On windows: Open Git Bash terminal.
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
See this tweet for how I use this.
If it doesn't already exist, create a folder called chrome
in your profile folder. The easiest way to find your profile folder is in about:profiles
(there's a "Show in Finder" link for the folder on macOS). Be sure to choose the right profile is you have more than one.
Put userContent.css
above in the chrome
folder you just created.
// Bookmarklet for [Pins.app](https://get-pins.app/) (requires version 1.6+) | |
// Removes Google Analytics strings | |
// Removes Product Hunt query string | |
// Prefers canonical url if defined | |
// Uses selected text for description, falling back to meta description | |
// Removes pipes (|) from title | |
// To allow use on any website in Firefox, go to about:config and set security.external_protocol_requires_permission to false | |
// Copy this to your URL bar: | |
javascript:!function(){function e(e){var n="pins://launch?screen=newPost&",i=o();""===i&&(i=r()),n+="url="+encodeURIComponent(e),n+="&",n+="title="+encodeURIComponent(t()),n+="&",n+="description="+encodeURIComponent(i),document.location.href=n}function t(){var e=document.title;return e.replace(/\|/g,"-")}function n(){for(var e=document.getElementsByTagName("link"),t=0;t<e.length;t++)if(e[t].attributes.hasOwnProperty("rel")&&"canonical"===e[t].attributes.rel.textContent.toLowerCase())return e[t].attributes.href.textContent;var n,o=document.location.href.split(/[?&]([^&]+)/ |
@import Darwin; | |
@import Foundation; | |
@import IOKit; | |
// clang -fmodules -o brt brt.m && ./brt | |
// credit to @zhuowei for discovering the following APIs | |
typedef CFTypeRef IOAVServiceRef; | |
extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2); |
@import Darwin; | |
@import Foundation; | |
@import IOKit; | |
/******* | |
This should change the brightness level of a single external display connected to an M1 MBP or MBA relative to the current setting using DDC/CI. Reportedly does not work on M1 Mini. | |
Credits to @tao-j and @alin23 | |
Compile: |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Dart</string> | |
<key>fileTypes</key> | |
<array> | |
<string>dart</string> | |
</array> | |
<key>scopeName</key> | |
<string>source.dart</string> |
-- | |
-- Move this file to your neovim lua runtime path ie. ~/.config/nvim/lua/au.lua | |
-- | |
local cmd = vim.api.nvim_command | |
local function autocmd(this, event, spec) | |
local is_table = type(spec) == 'table' | |
local pattern = is_table and spec[1] or '*' | |
local action = is_table and spec[2] or spec | |
if type(action) == 'function' then |
-- Made with 'mini.colors' module of https://github.com/echasnovski/mini.nvim | |
if vim.g.colors_name ~= nil then vim.cmd('highlight clear') end | |
vim.g.colors_name = "achromat-darker" | |
-- Highlight groups | |
local hi = vim.api.nvim_set_hl | |
hi(0, "@attribute.builtin", { link = "Special" }) | |
hi(0, "@character.special", { link = "SpecialChar" }) |