Skip to content

Instantly share code, notes, and snippets.

View Rubentxu's full-sized avatar
💭
Solo se que no se nada

Ruben Dario Rubentxu

💭
Solo se que no se nada
View GitHub Profile
@Rubentxu
Rubentxu / reactive_systems_bibliography.md
Created October 28, 2017 06:26 — forked from brendanzab/reactive_systems_bibliography.md
A reading list that I'm collecting while building my Rust ES+CQRS framework: https://github.com/brendanzab/chronicle

Functional, Reactive, and Distributed Systems Bibliography

Books

cat social/scripts/social-site.service
cat social/scripts/social-crawler.service
@Rubentxu
Rubentxu / set_proxy_ubuntu.sh
Created May 30, 2017 10:29 — forked from roskoff/set_proxy_ubuntu.sh
Script para configurar proxy en Ubuntu 12.04
#/bin/bash
echo 'Removiendo las configuraciones actuales del proxy en:'
sudo sh -c '(echo "g/^Acquire::http::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf'
sudo sh -c '(echo "g/^Acquire::https::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf'
sudo sh -c '(echo "g/^Acquire::ftp::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf'
echo '/etc/apt/apt.conf'
sudo sh -c '(echo "g/^http_proxy/d"; echo "wq") | ex -s /etc/environment'
sudo sh -c '(echo "g/^https_proxy/d"; echo "wq") | ex -s /etc/environment'
sudo sh -c '(echo "g/^ftp_proxy/d"; echo "wq") | ex -s /etc/environment'
git pull
git submodule sync # Ensure the submodule points to the right place
git submodule update # Update the submodule
git submodule foreach git checkout master # Ensure subs are on master branch
git submodule foreach git pull origin master # Pull the latest master
@Rubentxu
Rubentxu / getlogs.go
Created February 26, 2017 14:27 — forked from yifan-gu/getlogs.go
sdjournal example
package main
import (
"fmt"
"io"
"github.com/coreos/go-systemd/sdjournal"
)
func main() {
@Rubentxu
Rubentxu / Entitas-BT.cs
Created February 21, 2017 12:28 — forked from mzaks/Entitas-BT.cs
Sketch for Entitas-CSharp Behaviour Tree implementation
// Based on http://www.gamasutra.com/blogs/ChrisSimpson/20140717/221339/Behavior_trees_for_AI_How_they_work.php
public enum NodeStatus
{
Success, Failure, Running
}
public interface IBehaviorNode
{
NodeStatus Execute(Entity entity);
@Rubentxu
Rubentxu / angular-bc.js
Created July 1, 2016 10:10 — forked from ThomasBurleson/angular-bc.js
Angular: decorates/intercepts $controller service
/**
* @license AngularJS
* (c) 2010-2012 AngularJS http://angularjs.org
* License: MIT
*/
/**
* Backward compatibility module for AngularJS
* @author Vojta Jina <vojta.jina@gmail.com>
*
@Rubentxu
Rubentxu / .gitconfig
Created May 13, 2016 13:05 — forked from lvl-svasseur/.gitconfig
git mergetool config (by command line or .gitconfig)
[merge]
tool = intellij
# tool = Kaleidoscope
[diff]
tool = intellij
# tool = Kaleidoscope
# intellij mergetool config
[mergetool "intellij"]
cmd = /Applications/IntelliJ\\ IDEA\ 13\\ CE.app/Contents/MacOS/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
@Rubentxu
Rubentxu / main.cpp
Created March 31, 2016 08:48 — forked from Jiwan/main.cpp
Final C++14 example for my post - An introduction to C++'s variadic templates: a thread-safe multi-type map
#include <iostream>
#include <memory>
#include <string>
#include "repository.hpp"
// Incomplete types used as compile-time keys.
struct Key1;
struct Key2;
@Rubentxu
Rubentxu / repository_shared_ptr.cpp
Created March 30, 2016 08:48 — forked from Jiwan/repository_shared_ptr.cpp
C++11 example for my post - An introduction to C++'s variadic templates: a thread-safe multi-type map - using shared_ptr
#include <iostream>
#include <string>
struct DefaultSlotKey;
template <class Type, class Key = DefaultSlotKey>
class Slot
{
public:
std::shared_ptr<Type> doGet() const