Skip to content

Instantly share code, notes, and snippets.

View fabiotnt's full-sized avatar

Fabio Nicolau fabiotnt

View GitHub Profile
@fabiotnt
fabiotnt / README.md
Created July 1, 2025 22:40
Cloud SQL Inventory Script for Google Cloud Projects

Cloud SQL Inventory Script for Google Cloud Projects

This Bash script lists all accessible GCP projects and inspects if they contain Cloud SQL instances. For each SQL instance, it extracts detailed metadata including:

  • Project ID
  • Instance name
  • Database version
  • Region
  • Machine tier
  • Disk size & type
@fabiotnt
fabiotnt / convertMP4ToGifs.sh
Last active July 16, 2023 19:26
Simple Bash Script using FFMpeg to convert MP4 files to GIF
#!/bin/bash
#Check Dependecies
if ! command -v ffmpeg &> /dev/null
then
echo "ffmpeg command could not be found. It's a dependency to run this script"
exit
fi
if ! command -v ffprobe &> /dev/null
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 17:03 — forked from Ghabriel/robot.js
Robot04
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.rotateCannon(360);
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 17:00
The Monkey
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 16:56 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 05:54 — forked from cgardner/robot.js
derp
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {