project-folder/
.git
wp-admin/
wp-content/
wp-includes/
.htaccess
| echo '1. Downloading WP-CLI in ~/bin/...' \ | |
| && cd ~ && mkdir bin && cd bin \ | |
| && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | |
| && chmod +x wp-cli.phar \ | |
| && echo '2. WP-CLI test...' \ | |
| && php wp-cli.phar --info \ | |
| && echo '3. Making wp alias...' \ | |
| && echo "alias wp='php ~/bin/wp-cli.phar'" >> ~/.bash_aliases \ | |
| && source ~/.bash_aliases \ | |
| && echo '4. Making bash wp alias to be available on each login...' \ |
| echo '1. Updating WP-CLI in /usr/local/bin/' \ | |
| && echo '2. Current version: ' \ | |
| && wp --version \ | |
| && cd /usr/local/bin \ | |
| && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | |
| && chmod +x wp-cli.phar \ | |
| && echo '3. WP-CLI test...' \ | |
| && php wp-cli.phar --version \ | |
| && echo '4. Replacing...' \ | |
| && sudo mv wp-cli.phar wp \ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <iframe name="preview" id="preview" src="javascript:var d=document.open();d.domain='example.com';d.close();void(0);" frameborder="0" height="100%" width="100%" allowfullscreen="true" allowtransparency="true"/> | |
| </body> | |
| </html> |
| RewriteEngine On | |
| RewriteRule ^$ public/ [QSA,L] | |
| RewriteCond %{REQUEST_FILENAME} !-f # if file doesn't exists | |
| RewriteCond %{REQUEST_FILENAME} !-d # if file doesn't exists | |
| RewriteCond %{REQUEST_URI} !^/public # if url without '/public' | |
| RewriteRule ^(.*)$ public/$1 [QSA,L] |
| <!-- as seen on http://openweb.eu.org/articles/html-media-capture --> | |
| <form action="index.php" method="post" enctype="multipart/form-data"> | |
| <input type="file" name="image" accept="image/*" capture /> | |
| <input type="file" name="video" accept="video/*" capture /> | |
| <input type="submit" value="Upload" /> | |
| </form> |
| # SECTION BEGIN SubDomainOnFolder | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^(blog|preprod)\. | |
| RewriteCond %{REQUEST_URI} !^/(blog|preprod)/ | |
| RewriteCond %{DOCUMENT_ROOT}/%1 -d | |
| RewriteRule ^(.*)$ %1/$1 [L] | |
| # SECTION END SubDomainOnFolder |
| #!/bin/bash | |
| cat <<EOF > result.txt | |
| Content 1 | |
| Content 2 | |
| Content 3 | |
| Content 4 | |
| EOF |
| /** | |
| * Found in http://mapbox.com footer (hover robot) | |
| */ | |
| .element:hover { | |
| -webkit-animation: rainbow 4s steps(36) infinite; | |
| } | |
| @-webkit-keyframes rainbow { | |
| from { -webkit-filter:hue-rotate(10deg); } | |
| to { -webkit-filter:hue-rotate(360deg); } |