Skip to content

Instantly share code, notes, and snippets.

View regismesquita's full-sized avatar

Regis David Souza Mesquita regismesquita

View GitHub Profile
@AlanGabbianelli
AlanGabbianelli / associate_file_extensions.md
Last active July 27, 2023 12:19
Associate various file extensions with a specified application on macOS

Purpose

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).

Dependencies

  • Homebrew
  • duti
  • The application to associate the file extensions with

Usage

@anabastos
anabastos / guestbook.gif
Last active May 5, 2023 17:28
guestbook.gif
guestbook.gif
@isalgueiro
isalgueiro / updateAWSecurityGroup.bash
Last active December 15, 2020 16:17 — forked from antonmry/updateAWSecurityGroup.bash
Simple bash script to update a Security Group matched by description and port in AWS with your Public IP
#! /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/"`
@schickling
schickling / Rakefile
Last active January 31, 2024 23:00
Activerecord without Rails
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)
@cmilfont
cmilfont / Palestras
Created May 15, 2012 10:47
Palestras JavaCE 2012
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