Skip to content

Instantly share code, notes, and snippets.

View jtrobman's full-sized avatar
💭
Hello world.

Jason Trobman jtrobman

💭
Hello world.
View GitHub Profile
@iMerica
iMerica / viscosity-to-ios-connect.rb
Last active June 5, 2025 17:26 — forked from chrisboulton/viscosity-to-ios-connect.rb
Quickly convert all of your Viscosity connections into OVPN configuration files for OpenVPN for iOS (bundles certificates and keys in the files too)
Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf").each do |file|
certificate_files = ['ca', 'cert', 'key', 'tls-auth']
config_dir = File.dirname(file)
connection_name = nil
new_config = []
File.read(file).lines.each do |line|
line.strip!
if line.start_with?('#viscosity name')
@blech75
blech75 / README.md
Last active March 19, 2024 00:50
notify-send adapter

notify-send adapter for Mac OS X

This allows you to receive desktop notifications from grunt running inside of a local vagrant box.

How to install

Install grunt-notify and add to dev dependencies

This is done on the guest VM (within the vagrant box).

sqltrim ()
{
sed -e '/INSERT INTO `accesslog/d' -e '/INSERT INTO `apachesolr/d' -e '/INSERT INTO `cache/d' -e '/INSERT INTO `migrate_message_/d' -e '/INSERT INTO `search_/d' -e '/INSERT INTO `watchdog/d' $1 > $1.trimmed;
mv $1.trimmed $1
}