Skip to content

Instantly share code, notes, and snippets.

View isamert's full-sized avatar

İsa Mert Gürbüz isamert

View GitHub Profile
@miclf
miclf / macos_keyboard_shortcuts_exporter_importer.php
Last active June 2, 2024 20:58
A small tool to automatically export and import custom macOS keyboard shortcuts.
#!/usr/bin/env php
<?php
// Determine which command has been called.
$cmd = (!empty($argv[1])) ? strtolower($argv[1]) : null;
// If an invalid number of arguments has been passed (or if no argument
// was given at all), display help information.
if ($argc < 2 || $argc > 3 || !in_array($cmd, ['save', 'load'])) {