Skip to content

Instantly share code, notes, and snippets.

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
@oki
oki / sync.rb
Last active December 12, 2015 12:19 — forked from subimage/sync.rb
Capistrano db:sync - synchronize production database with developer machine.
namespace :db do
desc "Load production data into development database"
task :sync, :roles => :db, :only => { :primary => true } do
require 'yaml'
# Gets db yml from server, because we don't store it on dev boxes!
get "#{current_path}/config/database.yml", "tmp/prod_database.yml"
prod_config = YAML::load_file('tmp/prod_database.yml')
local_config = YAML::load_file('config/database.yml')
@oki
oki / robot.js
Created December 4, 2012 21:50 — forked from AndreMeira/robot.js
Dummy goes
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
robot.turn(45);
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
@oki
oki / robot.js
Created December 4, 2012 21:43 — forked from randompast/robot.js
uBot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};