From Metaphox for Metaphox
- XCode
xcode-select --install
- iTerm2 http://iterm2.com/
-- A global variable for the Hyper Mode | |
k = hs.hotkey.modal.new({}, "F17") | |
-- Trigger existing hyper key shortcuts | |
k:bind({}, 'm', nil, function() hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"}, 'm') end) | |
-- OR build your own | |
launch = function(appname) |
-- hattip https://github.com/lodestone/hyper-hacks | |
-- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907 | |
-- A global variable for the sub-key Hyper Mode | |
k = hs.hotkey.modal.new({}, 'F18') | |
-- Hyper+key for all the below are setup somewhere | |
-- The handler already exists, usually in Keyboard Maestro | |
-- we just have to get the right keystroke sent |
<select2 | |
v-model="something" | |
:options="[{ id: 1, text: '', selected: true }]" | |
multiple | |
placeholder | |
></select2> |
<?php | |
namespace App\Http\Middleware; | |
class CaptureRequestExtension | |
{ | |
public function handle($request, $next) | |
{ | |
if ($request->route()->parameter('_extension') !== null) { | |
$request->attributes->set('_extension', substr($request->route()->parameter('_extension'), 1)); |
# Thanks to this post: | |
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
$ brew install cabextract | |
$ cd ~/Downloads | |
$ mkdir consolas | |
$ cd consolas | |
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
$ cabextract PowerPointViewer.exe | |
$ cabextract ppviewer.cab |
From Metaphox for Metaphox
xcode-select --install
<?xml version="1.1" encoding="UTF-8"?> | |
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 3.0.2.59 on 2016-03-07 at 15:15 (SGT)--> | |
<keyboard group="126" id="-12870" maxout="1" name="x_layout"> | |
<layouts> | |
<layout first="0" last="17" mapSet="16c" modifiers="f4"/> | |
<layout first="18" last="18" mapSet="984" modifiers="f4"/> | |
<layout first="21" last="23" mapSet="984" modifiers="f4"/> | |
<layout first="30" last="30" mapSet="984" modifiers="f4"/> | |
<layout first="194" last="194" mapSet="984" modifiers="f4"/> |
Layout info: | |
{ | |
"id": "com.apple.keylayout.DVORAK-QWERTYCMD", | |
"lang": "en" | |
} | |
isUSStandard: false | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| HW Code combination | Key | KeyCode combination | Pri | UI label | User settings | Electron accelerator | Dispatching string | WYSIWYG | | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| KeyA | a | A | | A | a | A | [KeyA] | | |
Open the iTerm preferences ⌘+
, and navigate to the Profiles tab (the Keys tab can be used, but adding keybinding to your profile allows you to save your profile and sync it to multiple computers) and keys sub-tab and enter the following:
⌘+←Delete
Send Hex Codes:
0x18 0x7f
– Less compatible, doesn't work in node and won't work in zsh by default, see below to fix zsh (bash/irb/pry should be fine), performs desired functionality when it does work.0x15
– More compatible, but typical functionality is to delete the entire line rather than just the characters to the left of the cursor.⌘+fn+←Delete
or ⌘+Delete→
Send Hex Codes:
0x0b
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |