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
/* ----- RESET (based on the work of Richard Clark - http://richclarkdesign.com) ----- */ | |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,menu,nav,section,menu,time,mark,audio,video,summary,figcaption{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;} | |
body{line-height:1;} | |
article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block;} | |
nav ul{list-style:none;} | |
blockquote,q{quotes:none;} | |
blockquote:before,blockquote:after, | |
q:before,q:after{content:'';content:none;} | |
a{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;background:transparent;} | |
ins{background-color:#ff9;color:#000;text-decoration:none;} |
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
package | |
{ | |
import flash.display.Sprite; | |
import flash.events.ErrorEvent; | |
import flash.events.UncaughtErrorEvent; | |
import flash.external.ExternalInterface; | |
public class Console extends Sprite | |
{ | |
public function Console():void |
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
chgrp -R webeditor gitrepo.git | |
chmod -R g+swX gitrepo.git |
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
<?php | |
// This is the default file for the site. Usually index.php | |
$default = 'index.php'; | |
// The name of this file. | |
// Set this value for the URL in Custom Error Properties of your website in IIS. | |
// Goto: IIS Manager > Websites > [Site Name] > Properties > Custom Errors > | |
// 404 & 404;2 & 404;3 > URL (Requires a '/' prefix in IIS). | |
$thisfile = '404-handler.php'; | |
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
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /usr/local/nginx/conf/nginx.conf | |
# pidfile: /usr/local/nginx/logs/nginx.pid |
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
#!/bin/sh | |
domain=$2 | |
available_dir="/usr/local/nginx/sites-available" | |
enable_dir="/usr/local/nginx/sites-enabled" | |
enable() { | |
if [ -e "$available_dir/$domain" ] | |
then | |
sudo ln -s $available_dir/$domain $enable_dir/$domain |
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
location / { | |
index index.php; | |
try_files $uri $uri/ /index.php$args; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
} | |
location ~ \.php { | |
proxy_set_header X-Real-IP $remote_addr; |
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
html | |
{ | |
background: #fff url('../Main_bg.jpg') no-repeat top center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
height: 100%; | |
width: 100%; | |
text-rendering: optimizeLegibility; |
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
<?php | |
class HTML | |
{ | |
public static function __callStatic($tag,$args) | |
{ | |
$options = array_shift($args); | |
$content = ($args)? array_shift($args) : ""; | |
return self::element($tag,$options,$content); | |
} |
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
class Foo | |
{ | |
static $foobar = 5; | |
function &bar() | |
{ | |
return self::$foobar; | |
} | |
} |
OlderNewer