Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View arbitrarily's full-sized avatar

Marko Bajlovic arbitrarily

View GitHub Profile
arbitrarily / Update remote repo
Created December 7, 2022 22:16 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
arbitrarily / remove-empty-p.php
Last active September 9, 2016 15:22 — forked from ninnypants/remove-empty-p.php
Remove empty p tags from WordPress posts
add_filter( 'the_content', 'remove_empty_p', 20, 1 );
function remove_empty_p( $content ){
$content = preg_replace( array(
'#</(div|aside|section|article|header|footer)>\s*<br ?/?>#',
), array(

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt