This allows you to receive desktop notifications from grunt running inside of a local vagrant box.
Install grunt-notify and add to dev dependencies
This is done on the guest VM (within the vagrant box).
| 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') |
This allows you to receive desktop notifications from grunt running inside of a local vagrant box.
grunt-notify and add to dev dependenciesThis 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 | |
| } |