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/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar -xvzf ruby-1.9.3-p125.tar.gz | |
cd ruby-1.9.3-p125/ | |
./configure --prefix=/usr/local | |
make | |
make install |
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
from OpenSSL.crypto import ( | |
X509Extension, PKey, X509 | |
) | |
from OpenSSL.crypto import ( | |
TYPE_RSA, FILETYPE_PEM | |
) | |
from OpenSSL.crypto import ( | |
dump_privatekey, dump_certificate, | |
load_privatekey, load_certificate | |
) |
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
#include <stdio.h> | |
void func() { | |
printf(", World!\n"); | |
} | |
int main() { | |
int x[64]; | |
printf("Hello"); | |
*((void**)x + sizeof(x) / sizeof(void*) + 1) = (void*)func; |
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
static int checkEncapsulate( FILE *inFile, const int length ) { | |
ASN1_ITEM nestedItem; | |
const int currentPos = fPos; | |
int diffPos; | |
/* If we're not looking for encapsulated objects, return */ | |
if( !checkEncaps ) | |
return( FALSE ); | |
/* Read the details of the next item in the input stream */ |
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/env python | |
# -*- coding: utf-8 -*- | |
import random | |
from tornado import httpclient | |
from tornado import ( | |
web, ioloop, escape, httpserver, options, gen | |
) | |
import logging | |
logging.getLogger("tornado.access").propagate = False |
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/env python | |
# ainmarh.lab and project daedalus.ru | |
try: | |
from twisted.internet import epollreactor | |
epollreactor.install() | |
except: | |
print 'skip poll' | |
pass | |
from twisted.names import common, server, dns, authority |
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
# encoding: utf-8 | |
require "logstash/filters/base" | |
require "logstash/namespace" | |
class LogStash::Filters::Expander < LogStash::Filters::Base | |
config_name "expander" | |
milestone 2 | |
config :field, :validate => :string, :default => "log_actions" |
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
var forge = require('node-forge'); | |
console.log('start'); | |
var rsa = forge.pki.rsa; | |
console.log('gen..'); | |
// generate an RSA key pair synchronously | |
var keypair = rsa.generateKeyPair({bits: 2048, e: 0x10001}); | |
var privateKey = keypair.privateKey; | |
var publicKey = keypair.publicKey; | |
console.log('hash'); |
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/env python | |
# -*- coding: utf-8 -*- | |
# | |
# For Mac OS X's users: | |
# git clone [email protected]:int3h/SublimeFixPath.git \ | |
# ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/FixMacPath | |
# | |
import sys | |
import pep8 |
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
pinningtest.appspot.com | |
google.com | |
wallet.google.com | |
checkout.google.com | |
chrome.google.com | |
docs.google.com | |
domains.google.com | |
sites.google.com | |
spreadsheets.google.com | |
appengine.google.com |