Skip to content

Instantly share code, notes, and snippets.

View rubencaro's full-sized avatar

Rubén Caro rubencaro

View GitHub Profile
@rubencaro
rubencaro / README.md
Last active March 14, 2024 20:26
Python installation guide

Python installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and its python plugin, then install Python

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

@rubencaro
rubencaro / setup_go.md
Last active February 19, 2024 09:04
Golang installation guide

Golang installation guide

Since Golang version 1.11 this process is finally (almost) as easy as it should (!!). You can see full docs here. For older guides see here.

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Installing everything needed the first time

Install asdf and its golang plugin, then install golang

@rubencaro
rubencaro / install_elixir.md
Last active September 30, 2023 03:58
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.

@rubencaro
rubencaro / README.md
Last active December 25, 2022 09:57
Kubernetes development environment settings

Kubernetes development environment settings

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

This solution does not use Docker at all

See this if you don't know how's that even possible. Understand this and this to see why is it advisable not to depend on Docker at all.

Install tooling to manage containers and VMs, and the CRI-O runtime

@rubencaro
rubencaro / cloudSettings
Last active March 12, 2022 07:13
Visual Studio Code Sync Settings Gist
{"lastUpload":"2022-03-12T07:13:12.685Z","extensionVersion":"v3.4.3"}
@rubencaro
rubencaro / setup_kotlin.md
Last active April 9, 2021 19:13
Kotlin/Java Installation Guide

Kotlin/Java installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and some plugins, then install Java, Kotlin & Gradle

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

@rubencaro
rubencaro / install-snx-checkpoint
Last active March 15, 2021 12:08 — forked from ikurni/install-snx-checkpoint
How to install SNX Checkpoint VPN client in Fedora 33
### Install few required packages to run SNX
sudo dnf install -y java-1.8.0-openjdk.x86_64 icedtea-web.x86_64 libstdc++.i686 libX11.i686 libpamtest.i686 libnsl.i686
### Download compat-libstdc++ driver and install it
wget https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
sudo dnf install -y ./compat-libstdc++-33-3.2.3-72.el7.i686.rpm
### Install snx_linux.sh
### Download snx_linux_30.sh file from Checkpoint
sudo ./snx_install_linux30.sh
@rubencaro
rubencaro / gist:9545060
Last active May 7, 2020 20:59
Reversible encryption for url json data
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' }
@rubencaro
rubencaro / rerun.sh
Last active August 21, 2019 12:58
Rerun script
#!/usr/bin/env bash
# Living in https://gist.github.com/rubencaro/633cd90065d399d5fe1b56e46440d2bb
# Loosely based on https://github.com/tartley/rerun2
ignore_secs=0.25
clear='false'
verbose='false'
ignore_until=$(date +%s.%N)
excludes='\.git|\.coverage|\.cache|tmp|env|deps|_build|\.elixir_ls|cover|target|\.vscode'
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=