Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
NapoleonWils0n / iphone dont resize text.css
Created November 1, 2012 20:30
css: iphone dont resize text
@media only screen and (max-device-width: 480px) {
html {-webkit-text-size-adjust: none;}
}
@NapoleonWils0n
NapoleonWils0n / progress bar.css
Created November 1, 2012 20:31
css: progress bar
#progress {
background: white url('progressbar.png') repeat-x 0 0;
}
@webkit-keyframes spin {
from { background-origin: 32px 0; }
to { background-origin: 0 0; }
}
@NapoleonWils0n
NapoleonWils0n / reset.css
Created November 1, 2012 20:31
css: reset
/* Eric Meyer's Reset Reloaded *//* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}body {line-height: 1;}ol, ul {list-style: none;}blockquote, q {quotes: none;}/* remember to define focus styles! */:focus {outline: 0;}/* remember to highlight inserts somehow! */ins {text-decoration: none;}del {text-decoration: line-through;}/* tables still need 'cellspacing="0"' in the markup */table {border-collapse: collapse;border-spacing: 0;}
@NapoleonWils0n
NapoleonWils0n / triangle.css
Created November 1, 2012 20:32
css: triangle
/* Triangle */
.arrow-up {
width:0px;
height:0px;
border-left:5px solid transparent; /* left arrow slant */
border-right:5px solid transparent; /* right arrow slant */
border-bottom:5px solid #2f2f2f; /* bottom, add background color here */
margin:0 auto; /* centers the arrow within the parent container */
@NapoleonWils0n
NapoleonWils0n / Apache_force_download_in_directory.txt
Created November 2, 2012 00:07
apache: force download in directory
<Directory "/Users/username/Sites/downloads/">
<Files *.mp4>
ForceType video/mp4
Header add Content-Disposition attachment
</Files>
</Directory>
@NapoleonWils0n
NapoleonWils0n / Apache_rewrite_to_Amazon_S3.txt
Created November 2, 2012 00:10
apache: apache rewrite to amazon s3 bucket
<Directory "/www/sitename/folder/">
<IfModule mod_rewrite.c>
RewriteEngine ON
RewriteRule ^(.*) http://bucktname.s3.amazonaws.com/folder/$1
</IfModule>
</Directory>
@NapoleonWils0n
NapoleonWils0n / drupal6_apache_vhost.txt
Created November 2, 2012 00:52
apache: apache vhost
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
AllowOverride None
Order deny,allow
Deny from all
</Directory>
@NapoleonWils0n
NapoleonWils0n / gzip.htaccess.txt
Created November 2, 2012 00:54
apache: gzip htaccess
<VirtualHost *:80>
ServerAdmin webmaster@example.co.uk
ServerName example.co.uk
ServerAlias www.example.co.uk
DirectoryIndex index.php
DocumentRoot /var/www/wordpress/html/
<Directory /var/www/wordpress/html/>
Options -Indexes
@NapoleonWils0n
NapoleonWils0n / wp-config Redirect.txt
Created November 2, 2012 00:56
apache: wp-config redirect
Redirect 301 /wp-config.php http://svr.gov.ru
@NapoleonWils0n
NapoleonWils0n / vhost.txt
Created November 2, 2012 00:57
apache: virtual host
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews