Skip to content

Instantly share code, notes, and snippets.

In case you are interested on some of the tools I mentioned I am gonna just leave a list of links here:

I also mentioned these three CLI tools written in Rust:

Keybase proof

I hereby claim:

  • I am beagleknight on github.
  • I am beagleknight (https://keybase.io/beagleknight) on keybase.
  • I have a public key ASCt0klgwwiMK4hvFeihxIwd-gqX0MpNH0cogYEAQ_Woogo

To claim this, I am signing this object:

apiVersion: v1
kind: Pod
metadata:
name: hello-pod
labels:
zone: prod
version: v1
spec:
containers:
- name: hello-ctr
class MigrateTemplateTextsToSettings < ActiveRecord::Migration[5.1]
class Feature < ApplicationRecord
self.table_name = :decidim_features
end
def up
template_texts = execute "SELECT * from decidim_accountability_template_texts"
template_texts.each do |template_text|
feature = Feature.find(template_text["decidim_feature_id"])
feature.settings["global"].merge!(
@beagleknight
beagleknight / cloudSettings
Created April 5, 2017 12:24
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-04-05T12:24:48.989Z","extensionVersion":"v2.6.2"}
@beagleknight
beagleknight / cloudSettings
Last active April 5, 2017 12:23
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-04-05T12:23:24.411Z","extensionVersion":"v2.6.2"}
docker run --restart=always --name redis -p 6379:6379 -v /var/lib/redis:/data -d redis
docker run --restart=always --name mysql -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql
docker run --restart=always --name mongo -p 27017:27017 -v ~/mongodb:/data/db -d mongo
Itnig attends NoSQL Matters 2014 in Barcelona
@beagleknight
beagleknight / tumblr_game.js
Created November 8, 2013 23:07
Simple game for my tumblr
var CANVAS_WIDTH = 200,
CANVAS_HEIGHT = 100,
canvas = document.getElementById("microgame"),
ctx = canvas.getContext("2d"),
player = {
x: 30,
y: CANVAS_HEIGHT - 20,
w: 20,
h: 20,
score: 0,
@beagleknight
beagleknight / main.js
Created December 10, 2012 18:19
Script position
var csv = require('csv'),
fs = require('fs');
csv()
.from.stream(fs.createReadStream(__dirname + "/scores.csv"))
.to.path(__dirname + "/scores_with_position.csv")
.transform(function (data, index) {
data.push(index + 1);
return data;
});