Skip to content

Instantly share code, notes, and snippets.

@andrewh
andrewh / anyconnect.scpt
Last active April 12, 2024 08:48
Applescript to automate the Cisco AnyConnect SSL VPN client on OS X Mavericks
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor
-- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 4. Enable Applescript Editor and System UI Server
-- 5. Trigger script from the menu
-- 6. Enjoy being connected
tell application "Cisco AnyConnect Secure Mobility Client"
activate
end tell
@davidroth
davidroth / UIAlertHelper.cs
Created July 11, 2011 11:18
A simple helper class for monotouch which provides you an easy to use API for showing alerts with buttons. The class will handle the reference tracking and alert queue for you.
namespace Fusonic.Monotouch.Utils
{
public class ButtonAction
{
public ButtonAction (string title, Action callback)
{
Title = title;
Callback = callback;
}