Skip to content

Instantly share code, notes, and snippets.

@chsivateja
chsivateja / NicelyDisplayGoogleHistory.py
Last active December 1, 2015 00:36 — forked from stratosgear/list.py
Nicely display Google history
#!/usr/bin/python2
import sys
import json
from datetime import datetime
if len(sys.argv) < 2:
print "Give me the json file to display!"
sys.exit(-1)
with open(sys.argv[1], 'r') as jsonFile:
@chsivateja
chsivateja / CiscoVPNConnection.scpt
Created November 20, 2015 23:23 — forked from twksos/CiscoVPNConnection.scpt
Cisco VPN connection auto connect AppleScript
-- Please set your vpn connection name and password here
set VPNName to "VPN name"
set VPNpassword to "VPN password"
tell application "System Events"
tell current location of network preferences
set VPNService to service VPNName
end tell
set isConnected to connected of current configuration of VPNService