This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# somewhere in the server section of any nginx config | |
# http://www.marceleichner.de/blog/on-demand-image-creation-and-static-delivery-with-nginx/ | |
location ~* \.(png|gif|jpg|jpeg)(\?[0-9]+)?$ { | |
# try existing files, or put request to index.php | |
try_files $uri /thumbnailer.php?image=$uri; | |
# old method when try_files did not exist | |
# if (!-f $request_filename) { | |
# rewrite ^/(.*)$ /thumbnailer.php?image=$1 last; | |
# break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastcgi_pass unix:/tmp/php.sock; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/ | |
rsync -avz -e 'ssh -p000' remoteuser@remotehost:/remote/dir /this/dir/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* test | |
*/ | |
background: #8DCFCA; | |
background: linear-gradient(45deg, #8DCFCA, #BDD5D5); | |
min-height:100%; | |
color: #425F5C; | |
font-size: 72px; | |
text-align: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #7C9D54; | |
background: linear-gradient(45deg, #7C9D54, yellow); | |
background: #A8D26E; | |
background: linear-gradient(45deg, #A8D26E, #B0CB8F); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* j | |
*/ | |
background: #D2C9AE; | |
background: linear-gradient(90deg, #D2C9AE, #38708B 40%, #0C314A); | |
min-height:100%; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Typing animation with pure CSS | |
* Revised. Browser support (as of Feb 2012): Firefox, IE10 | |
*/ | |
@keyframes typing { from { width: 0; } } | |
@keyframes blink-caret { 50% { border-color: transparent; } } | |
h1 { | |
font: bold 200% Consolas, Monaco, monospace; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# where the magic is done ! | |
RewriteRule (.*)/$ $1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?url=$1 [PT,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
@import url("http://fonts.googleapis.com/css?family=Norican"); | |
@import url("http://fonts.googleapis.com/css?family=Graduate"); | |
@import url("http://fonts.googleapis.com/css?family=Arvo:700"); | |
html { | |
background: #f06; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tar a folder | |
tar -pczf web.tar.gz web/ | |
# untar | |
tar xvfz web.tar.gz | |
tar xfz web.tar |
OlderNewer