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 / 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 {
@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:05
imlmpe
//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);
# 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
@unkn0w
unkn0w / packtpub_free.sh
Last active October 14, 2018 08:05
Get title of free book available on PacktPub everyday, and send it to phone as notification via IFTTT service (Android/iOS)
#!/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 ===
@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: