Skip to content

Instantly share code, notes, and snippets.

Rubén Caro rubencaro

  • Barcelona
Block or report user

Report or block rubencaro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rubencaro /
Last active Sep 10, 2017
GNOME Config

GNOME Config

Custom CSS

File at .config/gtk-3.0/gtk.css

headerbar entry,
headerbar spinbutton,
rubencaro /
Last active Aug 28, 2017
DOT auto render script
function get_mtime {
ls -l --time-style=+%s "${1?}" | cut -d' ' -f6
function go_render {
while true;
rubencaro / elixir.xml
Last active Jul 22, 2017
Kate syntax highlight file for elixir
View elixir.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language
SYSTEM 'language.dtd'>
Elixir syntax highlighting definition for Kate.
Copyright (C) 2014 by Rubén Caro (
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
rubencaro / combinations.ex
Created May 27, 2017
Ursula's explosion of keys
View combinations.ex
defmodule Ursula.Combinations do
@keys ~w(a b c d e)
@doc """
Returns any combination of the elements in `enum` with exactly `k` elements.
Repeated elements are handled intelligently.
## Examples
iex> combinations([1, 2, 3], 2) |> Enum.to_list
rubencaro / gist:9545060
Last active Nov 9, 2016
Reversible encryption for url json data
View gist:9545060
require 'openssl'
require 'digest/sha1'
require 'base64'
require 'json'
def go_demo!
key = Digest::SHA1.hexdigest("clave1")[0..15] # 16bytes => 128bits
iv = 'clave2 con chicha'[0..15] # 16bytes forced
data = { esto: 'es', un: 'hash', en: 'ruby' }
# initialization file (not found)
rubencaro / dynamic_chart.html
Created Mar 3, 2016 dynamic loading example
View dynamic_chart.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Charty Crap</title>
<script src=""></script>
<canvas id="chart" width="400" height="200"></canvas>
View Mine.kateschema
[Default Item Styles - Schema Mine]
Base-N Integer=ffff54ff,ffff54ff,0,,,,-,-,,---
Data Type=ffc0c0ff,ff54ff54,0,,,,-,-,,---
Floating Point=ffff54ff,ffff54ff,0,,,,-,-,,---
rubencaro / ruby.xml
Created Oct 31, 2014
Ruby syntax file for Kate
View ruby.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
Ruby syntax highlighting definition for Kate.
Copyright (C) 2004 by Sebastian Vuorinen (sebastian dot vuorinen at helsinki dot fi)
Copyright (C) 2004 by Stefan Lang (
Copyright (C) 2008 by Robin Pedersen (
Copyright (C) 2011 by Miquel Sabaté (
rubencaro /
Last active Aug 29, 2015
py3status modules
# -*- coding: utf-8 -*-
# custom compiled modules for py3status
# ----------------------------------------------------------------- #
# Notes:
# 1. netdata will check 'eth0' interface by default. You can
# change it by changing 'self.net_interface' variable in 'GetData'
# class.
You can’t perform that action at this time.