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'
@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 <[email protected]>
*
@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
@Rubentxu
Rubentxu / cpp-install_instructions.md
Created February 13, 2016 12:18 — forked from FlorianWolters/cpp-install_instructions.md
Installation instructions for the C++ ecosystem

Installation instructions for the C++ ecosystem

This document contains installation instructions for some C++ tools and libraries. It uses the cross-platform build system [CMake][0] whenever the software to download, build, configure (and run) supports it.

By default the process is described for a *-nix operating system (OS).

The process described here works very good, if the installed software is added to the path. It is suggested to do this, by adding the following lines to the /etc/profile.local file: