Skip to content

Instantly share code, notes, and snippets.

@twksos
twksos / machine.js
Created February 4, 2021 22:32
Generated by XState Viz: https://xstate.js.org/viz
const NEXT = 'NEXT';
Machine({
id: 'Dog API',
initial: 'idle',
context: {
dog: null
},
states: {
idle: {
on: {
@twksos
twksos / CiscoVPNConnection.scpt
Last active July 31, 2023 20:50
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
# 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