Skip to content

Instantly share code, notes, and snippets.

View machine.js
const NEXT = 'NEXT';
Machine({
id: 'Dog API',
initial: 'idle',
context: {
dog: null
},
states: {
idle: {
on: {
@twksos
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 .gitconfig
# curl https://gist.githubusercontent.com/twksos/9615515/raw/ > ~/.gitconfig
[color]
ui = true
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached