Skip to content

Instantly share code, notes, and snippets.

View Bullrich's full-sized avatar

Javier Bullrich Bullrich

View GitHub Profile
@Bullrich
Bullrich / polkadot.md
Created March 25, 2024 09:57
Bullrich at Polkadot

I’m Javier Bullrich, member of the Engineering Automation team.

Project I worked for the Polkadot ecosystem:

Creation of the UI for the Polkadot Faucet (before we only had the matrix bot which was not ideal)

Custom tooling to approve PR which takes fellows and their ranks as required user.

Other small projects

@Bullrich
Bullrich / machine.js
Created February 15, 2023 13:49
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'fetch',
initial: 'get_config_file',
context: {
retries: 0,
matchedRules: 0,
reviews: 0,
requiredReviews: 0,
problems: 0
},
@Bullrich
Bullrich / ubuntu.sh
Created March 16, 2021 15:01
The scripts I ran on every fresh Ubuntu installation
echo "Installing docker"
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world
sudo usermod -aG docker $USER
# if docker still fails look into https://docs.docker.com/engine/install/linux-postinstall/
@Bullrich
Bullrich / .gitconfig
Created January 15, 2021 16:32
My Ubuntu 20.10 setup
[alias]
tree = log --graph --all --decorate --pretty=oneline --abbrev-commit
tree-one = log --graph --decorate --oneline --abbrev-commit
nuke = !git reset --hard && git clean -xdf
reboot = !git reset --hard && git clean -df
@Bullrich
Bullrich / PoolManager.cs
Created September 15, 2020 19:27
Easy to use pool manager for Unity3D
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
/// <summary> Object Pool by Bullrich </summary>
/// <para> Simple generic object pool.
/// To use do the following example </para>
/// <code> public MyCustomPool myCustomPool;
///
@Bullrich
Bullrich / machine.js
Last active June 22, 2020 18:34
Generated by XState Viz: https://xstate.js.org/viz
const authMachine = Machine(
{
id: "auth",
initial: "unauthorized",
context: {
errorMessage: undefined,
user: undefined
},
states: {
unauthorized: {
@Bullrich
Bullrich / .zshrc
Last active June 4, 2023 22:07
My personal MacBook setup to do after factory resets.
# Path thingy goes above
ZSH_THEME="avit"
plugins=(git git-flow brew colorize zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
@Bullrich
Bullrich / Attractor.cs
Created August 8, 2017 18:13
Attractor sample for adding attraction between planets
using System.Collections.Generic;
using UnityEngine;
[RequireComponent((typeof(Rigidbody)))]
public class Attractor : MonoBehaviour
{
public static List<Attractor> Attractors;
private const float G = 667.4f;
public Rigidbody rb;
@Bullrich
Bullrich / Recursividad.cs
Last active July 7, 2017 17:43
Varios ejercicios de recursividad
// 1
bool multiploDeTres(int N){
// si n es 0 significa que es divisible por 3
if (N == 0)
return true;
// si es menor no lo es
else if (N < 0)
return false;
// si es mayor que 0 le restamos 3 infinitamente y volvemos a hacer la funcion
// hasta que llegue al punto en el cual si es menor o igual a 0