Skip to content

Instantly share code, notes, and snippets.

View antialias's full-sized avatar

Thomas Hallock antialias

View GitHub Profile
@antialias
antialias / simple-thunk.js
Created August 16, 2018 19:59
Simple Thunk API Request
import {
API_BUTTON_CLICK,
API_BUTTON_CLICK_SUCCESS,
API_BUTTON_CLICK_ERROR,
} from './actions/consts';
import { getDataFromAPI } from './api';
const getDataStarted = () => ({ type: API_BUTTON_CLICK });
const getDataSuccess = data => ({ type: API_BUTTON_CLICK_SUCCESS, payload: data })
const getDataError = message => ({ type: API_BUTTON_CLICK_ERROR, payload: message });
@antialias
antialias / vpn_connection.scpt
Last active April 8, 2020 00:14 — forked from adgedenkers/vpn_connection.scpt
Toggles VPN connectino. Stores your VPN password in the keychain.
#!/usr/bin/osascript
on run argv
tell application "System Events"
-- get current clipboard contents as a string
set CurrentClipboard to the clipboard as string
-- set the clipboad to your password
-- start playing with the VPN
tell current location of network preferences