Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
using System; | |
using System.Net; | |
using System.DirectoryServices; | |
using System.DirectoryServices.Protocols; | |
using System.Security.Permissions; | |
namespace LdapConnection | |
{ | |
[DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true)] | |
public class LdapConnect |
using System; | |
using System.Net; | |
using System.DirectoryServices; | |
using System.DirectoryServices.Protocols; | |
using System.Security.Permissions; | |
namespace LdapConnection | |
{ | |
[DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true)] | |
public class LdapConnect |
function clone(obj) { | |
if (null == obj || "object" != typeof obj) return obj; | |
var copy = new obj.constructor(); | |
for (var attr in obj) { | |
if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr]; | |
} | |
return copy; | |
} |
<?php | |
// This file walks you through the most common features of PHP's SQLite3 API. | |
// The code is runnable in its entirety and results in an `analytics.sqlite` file. | |
// Create a new database, if the file doesn't exist and open it for reading/writing. | |
// The extension of the file is arbitrary. | |
$db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); | |
<?php | |
/** | |
* The __halt_compiler() function will stop the PHP compiler when called. | |
* You can then use the __COMPILER_HALT_OFFSET__ constant to grab the contents of the PHP file after the halt. | |
* In this example a PHP template is stored after the halt, to allow simple separation of logic from templating. | |
* The template is stored in a temporary file so it can be included and parsed. | |
* | |
* See: https://github.com/bobthecow/mustache.php/blob/dev/src/Mustache/Loader/InlineLoader.php | |
* http://php.net/manual/en/function.halt-compiler.php | |
*/ |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Image Zoom With jQuery</title> | |
<style type="text/css"> | |
#view { | |
border: 1px solid #333333 ; | |
overflow: hidden ; | |
position: relative ; |