For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
#!/usr/bin/env python | |
# | |
# Proof of Concept: UDP Hole Punching | |
# Two client connect to a server and get redirected to each other. | |
# | |
# This is the client. | |
# | |
# Koen Bollen <meneer koenbollen nl> | |
# 2010 GPL | |
# |
1. Generate a pre-signed certificate for client1.example.com with the following command: | |
puppet cert --generate client1.example.com | |
Puppet will now generate and sign a client certificate in the name of client1. example.com. | |
2. Transfer the three required files; the private key, the client certificate, and the CA certificate, to the new client. These are found in the following locations: | |
/etc/puppet/ssl/private_keys/client1.example.com.pem | |
/etc/puppet/ssl/certs/client1.example.com.pem | |
/etc/puppet/ssl/certs/ca.pem | |
Transfer these to the corresponding directories on the client, and it will then be authenticated without the certificate request step. Note that the location of Puppet's SSL certs varies according to the ssldir setting in puppet.conf. |
#!/bin/sh | |
### functions | |
f() { echo "Failed."; exit; } | |
setup_net() | |
{ | |
echo "Configuring network" | |
while :; do |
AWS_ACCESS_KEY_ID="YOURAWSACCESSKEYID" | |
AWS_SECRET_KEY="YOURAWSSECRETKEY" | |
EC2_REGION=$(wget -q -O - http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk -F\" '{print $4}') | |
EC2_INSTANCE_ID=$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id) | |
EC2_CLOUDWATCH_NAMESPACE='WebService' | |
NGINX_CONNECTIONS=$(wget -q -O - http://127.0.0.1/nginx_status | grep 'connections' | awk '{print $3}') | |
/usr/bin/mon-put-data --region \"$EC2_REGION\" --metric-name HttpConnections --namespace \"$EC2_CLOUDWATCH_NAMESPACE\" --dimensions \"InstanceId=$EC2_INSTANCE_ID\" --value \"$NGINX_CONNECTIONS\" -I \"$AWS_ACCESS_KEY_ID\" -S \"$AWS_SECRET_KEY\" |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
cask_args appdir: '/Applications' | |
tap 'caskroom/cask' | |
tap "homebrew/cask-fonts" | |
tap 'caskroom/versions' | |
tap "homebrew/bundle" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "hsatac/toybox" | |
brew "coreutils" | |
brew "gnu-sed" |