For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
import org.apache.commons.net.ftp.* | |
import java.io.InputStream | |
import java.io.ByteArrayInputStream | |
String ftphost = "127.0.0.1" | |
String ftpuser = "test" | |
String ftppwd = "test" | |
int ftpport = 21 |
#!/bin/bash | |
git clone https://github.com/Juev/go-scratch $1 | |
cd $1 | |
rm -rf .git | |
git init |
# Borrowed from: | |
# https://github.com/silven/go-example/blob/master/Makefile | |
# https://vic.demuzere.be/articles/golang-makefile-crosscompile/ | |
BINARY = superdo | |
VET_REPORT = vet.report | |
TEST_REPORT = tests.xml | |
GOARCH = amd64 | |
VERSION?=? |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
package org.telegram.example.SendMessage; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.entity.UrlEncodedFormEntity; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.message.BasicNameValuePair; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
import java.io.IOException; |
#!/bin/sh | |
# Flush out the list before we begin | |
ipfw -q -f flush | |
# Set rules command prefix | |
cmd="ipfw -q add" | |
vpn="tun0" | |
lan="vtnet0" | |
skip="skipto 500" |
#include <string.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include "rapidxml-1.13/rapidxml.hpp" | |
using namespace rapidxml; | |
using namespace std; |
#ifndef _MKDIO_CXX | |
#define _MKDIO_CXX | |
extern "C" { | |
#include <stdio.h> | |
#include <mkdio.h> | |
} | |
class MKIOT { | |
protected: |
To configure a IPFW firewall, first open up rc.conf
with:
sudo ee /etc/rc.conf
Now add the following lines to the end of this file, where the ssh port number is the most important port number to add and should be replaced with the port number chosen whilst configuring the SSH (not doing so will lock out all SSH users from the system. Each port that is required should be listed in the port number area (port 80
might also be useful to add as it is a standard port for http connections, as is port 443
for https that might also be useful to add) and firewall_logdeny
will tell the server to log any connection attept to the /var/log/security
file:
# Outputs the reading time | |
# Read this in “about 4 minutes” | |
# Put into your _plugins dir in your Jekyll site | |
# Usage: Read this in about {{ page.content | reading_time }} | |
module ReadingTimeFilter | |
def reading_time( input ) | |
words_per_minute = 180 |