Skip to content

Instantly share code, notes, and snippets.

View LuisPalacios's full-sized avatar
🏠
Working from home

Luis Palacios Derqui LuisPalacios

🏠
Working from home
View GitHub Profile
@LuisPalacios
LuisPalacios / hotkey_helpers.js
Created November 11, 2021 11:33 — forked from jiaaro/hotkey_helpers.js
Mac Automation – Javascript (JSX) Hotkey helpers
// How to use:
// 1. Open "Script Editor" (requires OS X 10.10 Yosemite)
// 2. Change the language from "AppleScript" to "JavaScript"
// 3. Paste the code below and replace the safari example.
//
// More info:
// https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html
var sys_events = Application("System Events");
@LuisPalacios
LuisPalacios / gist:afcb7817de9861397f5e
Created March 21, 2016 08:15 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@LuisPalacios
LuisPalacios / virt-manager-osx
Last active October 5, 2016 14:32 — forked from holms/virt-manager-osx
Install virt-manager osx
# Adapted to user HOME install
# Sources
mkdir -p $HOME/github
cd $HOME/github
git clone https://github.com/virt-manager/virt-manager
cd virt-manager
sudo port -v install intltool py27-pygtk