- Check for an existing
.gitignore
file in the project directory
ls -a
<?php | |
/** | |
* Override the extra HTML that Views uses to wrap its output | |
*/ | |
remove_shortcode( 'wpv-layout-start' ); | |
remove_shortcode( 'wpv-layout-end' ); | |
add_shortcode( 'wpv-layout-start', array( $this, '__blank' ) ); | |
add_shortcode( 'wpv-layout-end', array( $this, '__blank' ) ); |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
Demonstrates how to handle the window's focus
and blur
events.
This code does not depend on any third-party libraries like jQuery.
Press minus + shift + s
and return
to chop/fold long lines!
Video on this Gist: https://www.youtube.com/watch?v=zvpLDuRY4ss&feature=c4-overview&list=UUj8_147vA3FQ1quI_CjciIQ | |
#Initialize a bare repo on the webserver. This would preferably be outside of your public website dir but if you are on a shared host you may not have that option. I like to make a folder just outside of the live folder called git. So for me it would look like this… | |
$ cd /var/www | |
$ mkdir git && cd git | |
$ git init –-bare | |
#Now you need to create a post-receive hook that will check out the latest tree from the Git repo you just setup into the /var/www/html folder where you want your website to be. You can make this whatever folder you want your code to end up in. | |
#This will create a file called post-receive in the hooks dir of the git repo. |