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
require "webrick" | |
server = WEBrick::HTTPServer.new({ | |
:BindAddress => "localhost", | |
:Port => 8080 | |
}) | |
server.mount_proc("/") do |req, res| | |
puts req | |
end | |
server.start |
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 | |
header('Content-Type: application/json'); | |
$secret = 'hogehoge'; | |
$repo = 'hoge'; | |
function generate_response($code) { | |
$response = array( | |
'200' => array( | |
'status' => 'success', |
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
#!/usr/bin/ruby | |
require "http" | |
require "json" | |
@url = "http://api.twitpic.com/2/users/show.json" | |
@page = 1 | |
if ARGV[0] != nil | |
if ARGV[1] == nil | |
loop do |
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
OpenSSL> s_client -connect smtp.gmail.com:587 -starttls smtp | |
CONNECTED(00000003) | |
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA | |
verify error:num=20:unable to get local issuer certificate | |
verify return:0 | |
--- | |
Certificate chain | |
0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com | |
i:/C=US/O=Google Inc/CN=Google Internet Authority G2 | |
1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2 |
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
using System; | |
using System.Linq; | |
public class Stap | |
{ | |
static string stap; | |
static int i = 0; | |
static void Main(string[] args) | |
{ |
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
i = 1 | |
loop do | |
s = ("A".."Z").to_a.sample(4).join | |
print "#{s}細胞!" | |
if s =~ /STAP/ | |
puts "\n\n#{i}回目で陽性かくにん!\nよかった☆" | |
break | |
end | |
i += 1 | |
end |
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
<6>[ 0.000000] Initializing cgroup subsys cpu | |
<5>[ 0.000000] Linux version 3.0.8-02825-g9e39b8c (ubuntu@ip-10-166-55-151) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #1 SMP PREEMPT Sat Aug 3 23:03:37 PDT 2013 | |
<4>[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387f | |
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
<4>[ 0.000000] Machine: OMAP4 Bowser4 board | |
<4>[ 0.000000] ATAGS:gyro_cal_size=36. | |
<4>[ 0.000000] 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
<4>[ 0.000000] 000: 00 00 00 24 00 05 FB CA FF FD C1 78 FF FE 80 FB | |
<4>[ 0.000000] 001: FF FF BD 8F FF FF FC 80 FF FF FE 60 00 00 09 E0 | |
<4>[ 0.000000] 002: A4 83 1E E0 |
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
require "socket" | |
def inquiry(host, domain) | |
whois = "" | |
socket = TCPSocket.open(host, 43) | |
socket.puts domain | |
while socket.gets != nil do | |
str = socket.gets | |
whois << str if str != nil | |
end |
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
[ 10.140] | |
X.Org X Server 1.15.1 | |
Release Date: 2014-04-13 | |
[ 10.141] X Protocol Version 11, Revision 0 | |
[ 10.141] Build Operating System: Linux 3.14.0-4-ARCH x86_64 | |
[ 10.142] Current Operating System: Linux archvpc.localdomain 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 20:40:47 CEST 2014 x86_64 | |
[ 10.142] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=50e60c39-9e20-4000-8c19-2bdebf1939cd rw quiet | |
[ 10.142] Build Date: 14 April 2014 08:39:09AM | |
[ 10.142] | |
[ 10.143] Current version of pixman: 0.32.4 |
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 SandBox | |
def self.exec(code) | |
result = nil | |
Timeout::timeout(5) do | |
result = Thread.new do | |
$SAFE = 4 | |
instance_eval(code) | |
end.value | |
end | |
return result |