Skip to content

Instantly share code, notes, and snippets.

View jfredrickson's full-sized avatar

Jeff Fredrickson jfredrickson

View GitHub Profile
@jfredrickson
jfredrickson / Google-Meet-bookmarklet.md
Last active August 22, 2022 22:08
Google Meet bookmarklet

This makes it easy to copy the phone number and PIN for a Google Meet.

Setup

  1. Copy the minified script below (it's easier to copy if you open the Raw version)
  2. Create a bookmark in your web browser
  3. In the bookmark URL field, paste the minified script

Usage

@jfredrickson
jfredrickson / DisplayProductID-566
Last active May 17, 2019 20:50
How to get the Acer XR382CQK to show up as a monitor and not a TV in macOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DisplayProductName</key>
<string>Acer XR382CQK (Override)</string>
<key>DisplayVendorID</key>
<integer>1138</integer>
<key>DisplayProductID</key>
<integer>1382</integer>
@jfredrickson
jfredrickson / DefaultKeyBinding.dict
Created May 13, 2019 01:03
Remap Home/End keys on macOS
// ~/Library/KeyBindings/DefaultKeyBinding.dict
// Source: https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
@jfredrickson
jfredrickson / README.md
Last active February 24, 2019 04:51
Custom i3lock and autolock on suspend

Screen locker

A custom script that triggers a screen lock, suspending dunst notifications.

Also provides a systemd unit that executes the lock script upon system suspend.

Prerequisites

  • i3lock
  • dunst
@jfredrickson
jfredrickson / README.md
Last active November 17, 2022 20:14
Count pacman updates and display in polybar

Count updates

Checks for pacman updates every hour, and echoes the update count to /var/local/countupdates/count.

Polybar can then read this file and display the results.

Prerequisites

  • pacman-contrib
@jfredrickson
jfredrickson / disable_c6.md
Last active August 23, 2023 17:36
Disable AMD Ryzen C6 state to prevent system freezes
@jfredrickson
jfredrickson / README.md
Last active December 1, 2015 14:52 — forked from mbostock/.block
U.S. States TopoJSON