Skip to content

Instantly share code, notes, and snippets.

View unkn0w's full-sized avatar
💭
mrugalski.pl

Jakub 'unknow' Mrugalski unkn0w

💭
mrugalski.pl
View GitHub Profile
@unkn0w
unkn0w / vm-auto-snapshot.sh
Last active February 5, 2020 19:39 — forked from mgeeky/vm-auto-snapshot.sh
Script to manage auto-snapshots for specified VirtualBox VM. Able to rotate snapshots, create, restore and delete ones.
#!/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:
@unkn0w
unkn0w / robot.js
Created December 5, 2012 07:04 — 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 {
@unkn0w
unkn0w / robot.js
Created December 5, 2012 07:02
Zolmeister
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 {