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
/* 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
#!/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
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/bin/env ruby | |
# | |
# Proof-of-Concept exploit for Rails SQL Injection (CVE-2013-0156) | |
# | |
# ## Advisory | |
# | |
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
# | |
# ## Caveats | |
# |
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
1.e4 e5 | |
2.Nf3 Nc6 | |
3.d4 Qf6 | |
4.dxe5 Nxe5 | |
5.Bg5 Nxf3+ | |
6.Qxf3 Qxg5 | |
7.Bc4 Qc1+ | |
8.Ke2 Qxh1 | |
9.Qxf7+ Kd8 | |
10.Qxf8# |
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
[White "Riveen"] | |
[Black "mephux"] | |
[Result "0-1"] | |
1.e4 d5 2.exd5 Qxd5 3.f4 Bf5 4.g3 Nf6 5.Nf3 Be4 6.d4 Bxf3 7.Rg1 Bxd1 8.Kxd1 Qxd4+ 9.Ke1 Qxg1 10.Kd2 Nc6 11.Nc3 Rd8+ 12.Ke2 Qxh2+ 13.Kf3 Nd4+ 14.Ke3 Qxg3+ 15.Kd2 Qxf4+ 16.Kd1 Qxf1+ 17.Kd2 Ne4+ 18.Ke3 Qf3# | |
0-1 |
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
[White "edizx"] | |
[Black "mephux"] | |
[Result "0-1"] | |
1.e4 d5 2.exd5 Qxd5 3.Nc3 Qe5+ 4.Be2 Nc6 5.Nf3 Qe6 6.O-O Nf6 7.Ng5 Qf5 8.d3 h6 9.Nge4 Nxe4 10.Nxe4 e5 11.f4 Be6 12.fxe5 Qxe5 13.Bf4 Bc5+ 14.Kh1 Qxb2 15.Nxc5 O-O-O 16.Nxe6 fxe6 17.Bf3 Nd4 18.Be5 Qxc2 19.Bxd4 Qxd1 20.Rfxd1 Rxd4 21.Rab1 b6 22.Rb5 Rhd8 23.Be4 c5 24.Rf1 Ra4 25.Rb2 g5 26.Rf6 Rxe4 27.h3 Re1+ 28.Kh2 Rxd3 29.Rxh6 c4 30.Rf2 c3 31.Rh7 Rd8 32.Rc2 Re3 33.Rxa7 Rd2 34.a4 Rxc2 | |
0-1 |
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
{ | |
"event_id": 10750, | |
"sensor": { | |
"name": "snorby.org", | |
"interface": "eth0", | |
"id": 0, | |
"filter": null, | |
"encoding": null, | |
"detail": null | |
}, |
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 Blah = { | |
hello: function(items) { | |
var self = this; | |
_.each(items, function() { | |
self.items.push(item.json); | |
}); | |
}, | |
something: function() { |