Skip to content

Instantly share code, notes, and snippets.

View igreg's full-sized avatar

Gregory Becker igreg

  • Notonthehighstreet.com
  • London, UK
View GitHub Profile
@igreg
igreg / private.xml
Created January 4, 2013 17:06
KeyRemap4MacBook xml file to access brightness, volume and multimedia keys with a mechanical keyboard on Mac OS X (tested with Mac OS X 10.7 and 10.8)
<?xml version="1.0"?>
<root>
<item>
<name>@Mechanical keyboards</name>
<item>
<name>Ctrl+Enter to Fn+Enter</name>
<identifier>private.crtl_enter_to_fn_enter</identifier>
<autogen>--KeyToKey-- KeyCode::RETURN, ModifierFlag::CONTROL_L, KeyCode::RETURN, ModifierFlag::FN</autogen>
<autogen>--KeyToKey-- KeyCode::RETURN, ModifierFlag::CONTROL_R, KeyCode::RETURN, ModifierFlag::FN</autogen>
</item>

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@igreg
igreg / tm-log.sh
Last active January 6, 2019 20:15
#!/bin/sh
filter='processImagePath contains "backupd" and subsystem beginswith "com.apple.TimeMachine"'
if [ "$1" = "12h" ]; then
# show the last 12 hours
start="$(date -j -v-12H +'%Y-%m-%d %H:%M:%S')"
echo ""
// ==UserScript==
// @name Custom Toolbar Injector
// @version 1
// @description Add a useful toolbar to AWS nav header
// @author Gregory Becker
// @match https://console.aws.amazon.com/*
// @match https://*.console.aws.amazon.com/*
// @grant none
// @license MIT
// ==/UserScript==
# Generated by Powerlevel10k configuration wizard on 2021-04-13 at 19:55 BST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 32822.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# angled separators, sharp heads, round tails, 1 line, compact, many icons, concise,
# transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#