This file contains 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
NameVirtualHost *:80 | |
# | |
# SSL | |
# | |
SSLCertificateFile /etc/apache2/pki/tls/certs/server.crt | |
SSLCertificateKeyFile /etc/apache2/pki/tls/private/server.key | |
SSLProtocol -all +TLSv1 +SSLv3 | |
SSLCipherSuite HIGH:!aNULL:-MD5 |
This file contains 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
#!/usr/local/bin/macruby | |
framework 'QuartzCore' | |
framework 'AVFoundation' | |
class NSColor | |
def toCGColor | |
# approach #2 | |
components = [redComponent, greenComponent, blueComponent, alphaComponent] | |
color_space = CGColorSpaceCreateWithName(KCGColorSpaceGenericRGB) |
This file contains 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
/* CPU STATS - at the end of output record */ | |
#ifdef LINUX_SMP | |
/* First the number of CPUs */ | |
fprintf(fh, "%d,", sfBaseStats->sfProcPidStats->iCPUs); | |
/* Next, stats for each CPU (a triple) */ | |
for(iCtr = 0; iCtr < sfBaseStats->sfProcPidStats->iCPUs; iCtr++) | |
{ | |
usr= sfBaseStats->sfProcPidStats->SysCPUs[iCtr].user; | |
sys= sfBaseStats->sfProcPidStats->SysCPUs[iCtr].sys; |
This file contains 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
$:.unshift File.dirname(__FILE__) | |
require 'socket' | |
require 'resolv' | |
require 'ipaddr' | |
require 'yaml' | |
require 'whois/server/server' | |
# Module for manage all Whois Class | |
module Whois |
This file contains 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
<div class='round'> | |
LookyCode! | |
</div> |
This file contains 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
.shadow { | |
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=‘gray’); | |
-ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=‘gray’)"; | |
} |
This file contains 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
def xor(key) | |
if key.kind_of?(String) | |
kenum = key.bytes.cycle | |
else | |
kenum = key.to_s(16).bytes.cycle | |
end | |
self.to_s(16).bytes.map {|b| b ^ kenum.next }.pack("C*") | |
end | |
This file contains 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
function changeclass() { | |
var NAME = document.getElementById("more") | |
NAME.className="more loading" | |
} |
This file contains 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
var loaded = false; | |
function startLoading() { | |
loaded = false; | |
window.setTimeout('showLoadingImage()', 1000); | |
} | |
function showLoadingImage() { | |
var el = document.getElementById("more"); | |
if (el && !loaded) { |
This file contains 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
function changeclass() { | |
var NAME = document.getElementById("more") | |
NAME.className="more loading" | |
} |