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 "sslclient.h" | |
#include "Log.h" | |
SSLClient::SSLClient(boost::asio::io_service& io_service, | |
boost::asio::ssl::context& context, | |
boost::asio::ip::tcp::resolver::iterator endpoint_iterator, char request[max_length]) | |
: m_socket(io_service, context), m_request(request) | |
{ | |
m_socket.set_verify_mode(boost::asio::ssl::verify_peer); |
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
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for the iPhone. | |
# Creates a set of universal libraries that can be used on an iPhone and in the |
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
# Builds a Boost framework for the iPhone. | |
# Creates a set of universal libraries that can be used on an iPhone and in the | |
# iPhone simulator. Then creates a pseudo-framework to make using boost in Xcode | |
# less painful. | |
# | |
# To configure the script, define: | |
# BOOST_LIBS: which libraries to build | |
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 5.1) | |
# | |
# Then go get the source tar.bz of the boost you want to build, shove it in the |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
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/local/bin/python | |
from pyPdf import PdfFileWriter, PdfFileReader | |
import random | |
from pprint import pprint as pp | |
import sys | |
# sys.setrecursionlimit(10000000) | |
seed = 'BN9F' | |
pile = [1] | |
def getNumber(): |
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/local/bin/python | |
import pyPdf | |
import sys | |
def main(): | |
pdf = pyPdf.PdfFileReader(open(sys.argv[0])) | |
if pdf.getIsEncrypted(): | |
print "Kryptert" | |
else: | |
print "Ikke kryptert" |
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 | |
# convert OpenLDAP schema file to LDIF file | |
# | |
# Copyright 2012 NDE Netzdesign und -entwicklung AG, Hamburg | |
# Written by Jens-U. Mozdzen <[email protected]> | |
# Copyright 2014 jaseg <[email protected]> | |
# | |
# Permission is granted to use, modify and redistribute this file as long as | |
# - this copyright notice is left unmodified and included in the final code |
OlderNewer