This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
# generate server.xml with the following command: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# run as follows: | |
# python simple-https-server.py | |
# then in your browser, visit: | |
# https://localhost:4443 | |
import BaseHTTPServer, SimpleHTTPServer | |
import ssl |
// The main openFrameworks include | |
#include "ofMain.h" | |
// Poco is included in openFrameworks 0.8.0 | |
#include "Poco/Net/HTTPClientSession.h" | |
#include "Poco/Net/HTTPRequest.h" | |
#include "Poco/Net/HTTPResponse.h" | |
#include "Poco/Base64Encoder.h" | |
#include "Poco/Net/HTMLForm.h" | |
#include "Poco/Net/StringPartSource.h" | |
#include "Poco/StreamCopier.h" |
This demonstrates how to make client side certificates with go | |
First generate the certificates with | |
./makecert.sh test@test.com | |
Run the server in one terminal | |
go run server.go |
// Copyright (c) 2017 Ismael Celis | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all |
# Creating keys | |
# | |
cp -rv /usr/share/doc/openvpn/examples/easy-rsa/2.0/ /config/easy-rsa2 | |
# Edit vars | |
vi /config/easy-rsa2/vars | |
cd /config/easy-rsa2/ | |
source ./vars |
[Unit] | |
Description=Python Virtualenv service example | |
After=network.target | |
[Service] | |
User=my_user | |
Group=my_group | |
Environment=VIRTUAL_ENV=/home/my_user/.virtualenvs/my_venv | |
Environment=PATH=$VIRTUAL_ENV/bin:$PATH | |
ExecStart=$VIRTUAL_ENV/bin/my_entrypoint |
#!/bin/vbash | |
# CONFIG | |
wan=dhcp | |
lan=192.168.1.1 | |
lan_segment=192.168.1.0 | |
vpn_segment=192.168.5.0 | |
domain=apertoire.org | |
lease_start=192.168.1.200 | |
lease_stop=192.168.1.245 |