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 | |
# vim: ts=4 sw=4 et | |
# | |
# Auto-snapshotting script intended to be cron'ed, | |
# taking automatic snapshots of particular VM, logging that actions, | |
# and providing means of restoring specific snapshots. | |
# Included with functionality of rotating them (like logrotate). | |
# | |
# Example cron entry for this script: |
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 | |
# === how to use it? === | |
# Create new APPLET on IFTTT.COM: | |
# THIS = webhooks (give it any name, and note: name + key) | |
# THAT = select phone notification, and in notification text put two variables: VALUE1 / VALUE2 | |
# | |
# Run this script via cron ONCE per day - that's all :) | |
# Requrements: You need command line CURL on your server | |
# === Author === |
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
# wget -i this_file | |
http://www.oreilly.com/programming/free/files/files/microservices-for-java-developers.pdf | |
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf | |
http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.pdf | |
http://www.oreilly.com/programming/free/files/java-the-legend.pdf | |
http://www.oreilly.com/programming/free/files/functional-programming-python.pdf | |
http://www.oreilly.com/programming/free/files/reactive-microservices-architecture-orm.pdf | |
http://www.oreilly.com/programming/free/files/migrating-cloud-native-application-architectures.pdf | |
http://www.oreilly.com/programming/free/files/software-architecture-patterns.pdf |
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
//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.ahead(1); |
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
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 { |
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
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 { |