Skip to content

Instantly share code, notes, and snippets.

codekipple

Block or report user

Report or block codekipple

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@codekipple
codekipple / gist:ea3080d0775a54019447be8148c01e8c
Created Sep 2, 2019
Change mac values for InitialKeyRepeat and KeyRepeat
View gist:ea3080d0775a54019447be8148c01e8c
The default values for InitialKeyRepeat and KeyRepeat are:-
InitialKeyRepeat: 25
KeyRepeat: 2
# Show InitialKeyRepeat and KeyRepeat values
defaults read NSGlobalDomain InitialKeyRepeat
defaults read NSGlobalDomain KeyRepeat
# Set values for InitialKeyRepeat and KeyRepeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12
@codekipple
codekipple / gist:9d200983693baf118eaccc096e25684a
Created Jun 7, 2019
Remove folders and files from git history
View gist:9d200983693baf118eaccc096e25684a
git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
git gc
git push origin master --force
credit: https://stackoverflow.com/a/17824718/1589726
@codekipple
codekipple / 5.gif
Last active Apr 10, 2019
a long one instead.
@codekipple
codekipple / 3.gif
Last active Apr 10, 2019
short stylesheet,
@codekipple
codekipple / gist:ef7083e595f4cd81eff464398e1798a7
Created May 31, 2017
Magento modal UI 'clickableOverlay' problem
View gist:ef7083e595f4cd81eff464398e1798a7
/*
Close modal because the 'clickableOverlay' method is broken on Magentos modal
Look into fixing this globally and submitting a patch
https://github.com/magento/magento2/issues/7399
*/
$(document).mouseup(function(e) {
var container = $('.my-modal .modal-inner-wrap');
// if the target of the click isn't the container nor a descendant of the container
if (!container.is(e.target) && container.has(e.target).length === 0)
You can’t perform that action at this time.