The following instructions outlines how to flash the firmware on a QMK Proton C controller for use in a SpaceCat Launch Pad.
This file contains 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
{ | |
"author": "David Gillies", | |
"documentation": "", | |
"keyboard": "kbdfans/kbd67/mkii_soldered", | |
"keymap": "davewongillies", | |
"layers": [ | |
[ | |
"KC_GRV", | |
"KC_1", | |
"KC_2", |
This file contains 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
# /etc/systemd/system/wakelock.service | |
[Unit] | |
Description=Lock the screen on resume from suspend | |
Before=sleep.target suspend.target | |
[Service] | |
User=daveg | |
Type=forking | |
Environment=DISPLAY=:0 |
Create a bookmark with the following code for the URL:
javascript:function ghnwsp()%7Bwindow.location%3Dwindow.location%2B%27%3Fw%3D1%27%3B%7Dghnwsp()%3Bvoid(0)
And then click it whenever you're looking at diffs to disable whitespace lines.
-
abs(float)
- Returns the absolute value of a given float. Example:abs(1)
returns1
, andabs(-1)
would also return1
, whereasabs(-3.14)
would return3.14
. See also thesignum
function. -
basename(path)
- Returns the last element of a path. -
base64decode(string)
- Given a base64-encoded string, decodes it and returns the original string.
This file contains 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
function aws_config | |
if not fgrep -q "[$argv]" ~/.aws/credentials | |
echo "Please specify a valid profile." | |
else | |
set token_expired false | |
if test $AWS_SESSION_EXPIRY | |
set now (date +%s) | |
# WARNING: this date command only works with GNU date |
This file contains 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
function aws_config | |
if not fgrep -q "[$argv]" ~/.aws/credentials | |
echo "Please specify a valid profile." | |
else | |
set -e AWS_ACCESS_KEY | |
set -e AWS_SECRET_KEY | |
set -g -x ATLAS_TOKEN (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"atlas_token\") { print \$3 }}" ~/.aws/credentials) | |
set account (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"account_id\") { print \$3 }}" ~/.aws/credentials) | |
set username (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"username\") { print \$3 }}" ~/.aws/credentials) | |
set mfarn "arn:aws:iam::$account:mfa/$username" |
To make a TOMMO NEOGEOX Arcard Stick work with Linux, copy 10-tommo-neogeox.rules
to /etc/udev/rules.d
This file contains 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
class ChefRunner < FPM::Cookery::Recipe | |
GOPACKAGE = "github.com/mlafeldt/chef-runner" | |
name "chef-runner" | |
version "0.8.0" | |
revision 1 | |
source "https://#{GOPACKAGE}/archive/v#{version}.tar.gz" | |
sha256 "a7de23f989f8353ecf838b551a8ceff09b83c8aeff2553b2c31d57615f8fcc53" | |
description "The fastest way to run Chef cookbooks" |
NewerOlder