This script is designed to associate various file extensions with a specified application on macOS. By default, it associates the file extensions with Visual Studio Code - Insiders (because that's what I use).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
publicIP=`dig +short myip.opendns.com @resolver1.opendns.com` | |
securityGroupIds="sg-stuffstuff" | |
ruleDescription="This is the string we're using to find our rule" | |
## Consult previous one | |
awsOutput=`aws ec2 describe-security-groups --group-ids $securityGroupIds` | |
ipRangeIndex=`echo $awsOutput | gron | grep $ruleDescription | sed "s/.\+IpRanges\[\([0-9]\+\)\].\+/\1/"` |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tiago Bastos | |
https://speakerdeck.com/u/bastos/p/nao-esta-feito-ate-estar-testado | |
http://www.youtube.com/watch?v=_gcaYrxA6lE&feature=youtu.be | |
Luca Bastos | |
http://www.slideshare.net/lucabastos/machine-learning-java-ce-conference-2012-fortaleza-ce | |
Loiane | |
http://www.slideshare.net/loianeg/javace-conference-2012-extjs-4-vraptor | |
http://www.slideshare.net/loianeg/javace-conference-ext-gwt-gxt-3 |