copied from https://markdown-it.github.io/
Advertisement :)
copied from https://markdown-it.github.io/
Advertisement :)
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'rotp' | |
status_only = (ARGV[0].to_s == '--status-only') | |
conf = YAML.load(File.read('./conf.yml')) | |
totp = ROTP::TOTP.new(conf['totp'], interval: 60).now |
set toggle to %TOGGLE% | |
set conf_name to "%NAME%" | |
set conf_user to "%USER%" | |
set conf_pass to "%PASS%" | |
set conf_index to -1 | |
if application "Tunnelblick" is running then | |
else | |
tell application "Tunnelblick" to activate | |
end if |