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
| MIT License | |
| Copyright (c) 2025 Fabio Nicolau | Banana Groove Studios | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #!/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 |
| //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); |
| //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; |
| 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(); | |
| }; |
| 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 { |