Skip to content

Instantly share code, notes, and snippets.

View lourinaldi's full-sized avatar

Lou Rinaldi lourinaldi

  • Connecticut, USA
View GitHub Profile
The Yale VPN uses Cisco AnyConnect.
If Cisco's Linux client works for you, congratulations.
If, like me, the official client leaves you stranded, then you need to install
OpenConnect and (assuming you are using Network Manager) the appropriate add-on for the NM applet.
On a Debian-based system, you can type the following command:
$ sudo apt-get install openconnect network-manager-openconnect network-manager-openconnect-gnome
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@caseywatts
caseywatts / MakingAGif.md
Last active April 27, 2018 20:56
Making a gif
@mislav
mislav / _readme.md
Last active May 15, 2024 11:03
tmux-vim integration to transparently switch between tmux panes and vim split windows

I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).

In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.

An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.

Here's how it should work:

@kljensen
kljensen / vj.sh
Last active November 14, 2018 17:37
A simple, encrypted journal using vim.
#!/usr/bin/env bash
##########################################################
#
# This is a shell script for keeping a journal that is
# * plaintext,
# * time-stamped,
# * encrypted, and
# * edited with vim.
#
@filler
filler / README.md
Created July 20, 2012 12:45
split and non-split centos openvpn configs

Hacky Openvpn

Drop both conf files into /etc/openvpn and /etc/init.d/openvpn should pick up on both and fire them up. Configure the ip addr of your host you wish to vpn through in the configs on the server lines.

Key difference is the openvpn-split.conf only pushes routes for netblocks you want to route over the vpn. In the below case, its the two routable /16s. The openvpn-everything.conf pushes a gateway down to clients, shunting all traffic through the vpn endpoint. Also push DNS servers if you have records locked up in campus DNS.

You also have to do all the easy-rsa business which is fairly well documented on the web. Drag the client certs which come from that business over to your vpn client. I use Tunnelblick in OS X.

Tested using openvpn-2.2.2-1.el5.rf from rpmforge on CentOS 5.8 in a Xen DomU.

rdj:cf3dcsunix silkey$ svn st
X trunk/common
X trunk/inputs/common
X trunk/inputs/core
M trunk/inputs/dcsunix/classes.cf
M trunk/inputs/dcsunix/main.cf
M trunk/dcsunix/linux/pub/etc/sudoers
Performing status on external item at 'trunk/inputs/core'