Skip to content

Instantly share code, notes, and snippets.

So the anyconnect client prevents forward of traffic from a VM to the VPN, which means virtual machines and docker containers which rely upon NAT won't work. OpenConnect allows you to get around this as it doesn't enforce ipfw rules upon you.

OpenConnect is a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

;;; packages.el --- rspec Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <[email protected]>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
#!/usr/bin/env ruby
require 'securerandom'
CURRENT_NO_DB_RECORDS = 6_146_992
FACTOR = 10
ITERATIONS = CURRENT_NO_DB_RECORDS * FACTOR
def compute_hash_frequency
hash_counts = { }
@smook1980
smook1980 / gist:b43ec2bdfaa9ef475b39
Last active August 29, 2015 14:05
Testing MRI threads with ActiveRecord's sql server driver. Shows the sql server driver blocks on IO under MRI.
#! /usr/bin/env ruby
# Adapted from slide 5 at http://www.slideshare.net/igrigorik/no-callbacks-no-threads-railsconf-2010
require 'bundler/setup'
require 'active_record'
require 'tiny_tds'
require 'active_record/connection_adapters/sqlserver_adapter'
ActiveRecord::Base.establish_connection(
:adapter => 'sqlserver',