Skip to content

Instantly share code, notes, and snippets.

twksos / CiscoVPNConnection.scpt
Last active Mar 25, 2021
Cisco VPN connection auto connect AppleScript
View CiscoVPNConnection.scpt
-- 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
View machine.js
const NEXT = 'NEXT';
id: 'Dog API',
initial: 'idle',
context: {
dog: null
states: {
idle: {
on: {
View .gitconfig
# curl > ~/.gitconfig
ui = true
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached