Skip to content

Instantly share code, notes, and snippets.

@bjeanes
bjeanes / README.md
Last active June 5, 2020 06:37
Using a Yubikey on OS X in non-QWERTY layouts

Using a Yubikey on OS X in non-QWERTY layouts

Using Karabiner This uses Karabiner (previously called KeyRemap4Macbook) to re-map just the Yubikey device back to QWERTY at the OS-level, but only when you aren't already using QWERTY!

Instructions

  1. Install Karabiner.
use std::default::Default;
#[deriving(Show)]
struct Person {
age: u8
}
impl Default for Person {
fn default() -> Person { Person { age: 0 } }
}
### Keybase proof
I hereby claim:
* I am bjeanes on github.
* I am bjeanes (https://keybase.io/bjeanes) on keybase.
* I have a public key whose fingerprint is C726 E9B7 6E41 1A87 6AFE EF7B 98A8 21F7 8D73 53C4
To claim this, I am signing this object:
There once was a secretive atom
And no one had managed to crack 'im
Somebody figured it out
And what it could bring about
But then there was project Manhattan
@bjeanes
bjeanes / README
Last active February 2, 2020 08:13 — forked from jnbt/repairMKV.sh
Synology-compatible script to repair mkv files
https://forums.plexapp.com/index.php/topic/63691-how-to-automated-linux-script-for-fixing-broken-mkv-files-works-with-sickbeard-too/
@bjeanes
bjeanes / gist:7801445
Created December 5, 2013 07:21
[OS X] Set Caps Lock to Control for all attached keyboards
tell application "System Preferences"
activate
reveal pane "Keyboard"
end tell
tell application "System Events" to tell process "System Preferences" to tell window "Keyboard"
click button "Modifier Keys…" of tab group 1
tell sheet 1
-- if more than one keyboard is plugged in, an extra pop up button is shown
if (name of every pop up button) contains "Select keyboard:" then
dep 'haskell', template: 'bin' do
installs {
via :brew, 'haskell-platform'
}
provides %w[alex cabal happy]
end
dep 'heroku', template: 'bin' do
installs {
via :brew, 'heroku-toolbelt'
@bjeanes
bjeanes / assets.rake
Last active May 30, 2016 13:02
Faster non-digest asset compilation on Rails.
require 'fileutils'
Rake::Task["assets:precompile:nondigest"].clear
namespace :assets do
namespace :precompile do
# Override the expensive re-generation of non-digested assets
# and just symlink to the digested versions!
task :nondigest do
reg = /\A
type Vector []Value
type List list.List
type Map map[Value]Value
type Set map[Value]bool
type Int int
type String string