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:
As configured in my dotfiles.
start new:
tmux
start new with session name:
os | |
from flask_extended import Flask | |
app = Flask(__name__) | |
app.config.from_yaml(os.join(app.root_path, 'config.yml')) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
# Create and deploy a Python/Flask "hello world" app on Heroku. | |
# by James Thornton, http://jamesthornton.com | |
# To run it, do: | |
# $ heroku login | |
# $ bash setup.sh helloworld | |
# $ cd helloworld |
Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.
As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.
Here's how to get it set up on Mac OS X:
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
import com.amazonaws.auth.BasicAWSCredentials | |
import com.amazonaws.services.s3.AmazonS3Client | |
import com.amazonaws.AmazonClientException | |
import com.amazonaws.AmazonServiceException | |
import java.io.File | |
import java.io.BufferedReader | |
import java.io.InputStreamReader | |
import java.io.FileOutputStream | |
import org.apache.commons.io.IOUtils |
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask_httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost