Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
ascendbruce / README.md
Last active October 28, 2025 01:50
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@ascendbruce
ascendbruce / find_illegal_windows_filename.sh
Created March 6, 2018 08:40
Find filenames contain illegal windows characters on Mac/Linux -- regex pattern match windows reserved characters
# Source: https://stackoverflow.com/questions/19008614/find-files-with-illegal-windows-characters-in-the-name-on-linux
# reserved characters for filename on windows: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
find . -name '*[<>:/\\|?*]*'
@ascendbruce
ascendbruce / README.md
Last active August 13, 2020 19:16
error when rake db:migrate with postgresql 9.6 and postgis 2.4. error message Server is version 9.6, library is version 10.0

error message

PG::InternalError: ERROR:  incompatible library "/usr/local/lib/postgresql/postgis-2.4.so": version mismatch
DETAIL:  Server is version 9.6, library is version 10.0.
: CREATE EXTENSION IF NOT EXISTS "postgis"
/Users/bruce/Projects/HB-Backend/db/migrate/20151013213623_enable_postgis.rb:3:in `change'
-e:1:in `<main>'

Caused by:
@ascendbruce
ascendbruce / README.md
Last active August 5, 2018 07:44 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Install dependency

Get Homebrew installed on your mac if you don't already have it.

brew install highlight

Highlight your source