Skip to content

Instantly share code, notes, and snippets.

View quimic-gist's full-sized avatar

quimic-gist quimic-gist

View GitHub Profile
@quimic-gist
quimic-gist / gist:2a607cef1f36d9803ba5b228b8692479
Last active September 19, 2019 08:03
Sync with repo without cloning (keeping local files)
#This will leave local unmanaged files untouched
# Clone just the repository's .git folder into an empty temporary directory
git clone --no-checkout my-project-repo my-project.tmp # might want --no-hardlinks for cloning local repo
# Move the .git folder to the directory with the files.
mv my-project.tmp/.git ./
# Delete the temporary directory
rmdir my-project.tmp
@saetia
saetia / gist:1623487
Last active May 1, 2024 19:55
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