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
#!/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 { |