Skip to content

Instantly share code, notes, and snippets.

View fintelia's full-sized avatar

Jonathan Behrens fintelia

  • Microsoft
  • Seattle, WA
  • 22:03 (UTC -07:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fintelia on github.
  • I am fintelia (https://keybase.io/fintelia) on keybase.
  • I have a public key ASDLZM-PcZcUp2w1gK0w6Z1upw-ylPBS0axAEp8x3rSEiAo

To claim this, I am signing this object:

@fintelia
fintelia / csail-passwordless-ssh.md
Created July 1, 2019 19:43
Truly passwordless SSH for login.csail.mit.edu

commands

$ sudo pacman -S krb5
$ ktutil
ktutil:  add_entry -password -p kerberos_username -k 1 -e aes256-cts-hmac-sha1-96
ktutil:  write_kt /home/username/.kerberos-keytab

files

~/.k5identity

@fintelia
fintelia / geoloc.html
Created November 24, 2017 18:26
Geoloc
<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
</head>
<body>
<div id="canvasDiv" align="center">
@fintelia
fintelia / rust-format-region.el
Created May 25, 2017 15:13
Elisp script for applying rustfmt to a region of a buffer
(defun rust--format-call-positions (buf start end)
"Format BUF using rustfmt."
(with-current-buffer (get-buffer-create "*rustfmt*")
(erase-buffer)
(insert-buffer-substring buf)
(if (zerop (call-process-region (point-min) (point-max) rust-rustfmt-bin t t nil "--file-lines" (format "[{\"file\":\"stdin\", \"range\":[%d,%d]}]" (line-number-at-pos start) (line-number-at-pos end))))
(progn
(if (not (string= (buffer-string) (with-current-buffer buf (buffer-string))))
(copy-to-buffer buf (point-min) (point-max)))
@fintelia
fintelia / Cornell VPN Setup in Debian.md
Last active October 4, 2019 15:33
Instructions for connecting to the Cornell VPN without relying on the Cisco AnyConnect tool

###Step 1: Install Necessary Packages We will need the vpnc package:

$ sudo aptitude install vpnc

###Step 2: Download the PCF file We now need to the connection details for Cornell's VPN which can be found in CornellVPN.pcf. If that link doesn't work, you may have better success here http://www.it.cornell.edu/services/vpn/howto/archive/pcfcampwinxp.cfm

###Step 3: Extract Connection Details In a terminal run the following command (from the same directory as CornellVPN.pcf)