Skip to content

Instantly share code, notes, and snippets.

View vjpandian's full-sized avatar
🏠

Vijay Pandian vjpandian

🏠
  • CircleCI
  • Toronto, ON
  • 00:00 (UTC -04:00)
View GitHub Profile
@vjpandian
vjpandian / vagrant-scp.sh
Last active September 16, 2015 19:50 — forked from colindean/vagrant-scp.sh
A quick way to transfer a file to the home directory on a Vagrant VM
#!/bin/sh
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'`
scp ${OPTIONS} "$@" || echo "Transfer failed. Did you use 'default:' as the target?"
import java.util.ArrayList;
import java.util.List;
/* root with three children
O
/ | \
O O O
/ / \ \ | \
O O O O O O