Skip to content

Instantly share code, notes, and snippets.

Reading someone else code

Gustavo Giménez GusGA

Reading someone else code
  • Santiago, Chile
View GitHub Profile
GusGA / 99-sysctl.conf
Last active Sep 28, 2021
Instalación db oracle
View 99-sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 5178150
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
GusGA / alacritty.yml
Created Jun 27, 2021 — forked from sts10/alacritty.yml
My Alacritty config yml for MacOS (compliant with v 0.4.1-dev)
View alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
# TERM env customization.
# If this property is not set, alacritty will set it to xterm-256color.
View SES_CMD.txt
Nombre de alias DUOC
Se ha completado el comando correctamente.
Nombre de usuario SES2501
Nombre completo
GusGA / flatten.exs
Last active Jun 10, 2019
Flatten implementation written in elixir without language helpers functions
View flatten.exs
defmodule Flatten do
@moduledoc """
List flatten recursive implementation without language helpers
@doc """
Flat a nested list of list.
Returns list flattend.
GusGA /
Last active Sep 25, 2021
Guía de configuración de equipos en packet tracer

Script de comandos de packet tracer

Equipo Switch

Entrar en modo EXEC privilegiado

Ejecutar el comando enable

Switch> enable
GusGA /
Last active Apr 15, 2019
Self learning erlang path based on Erlang solutions training topics

Erlang solutions topics per course

Basic Erlang


  • Understanding of the basics of Erlang
  • Read/Write/Design Erlang Programs
  • Provides basics needed to attend the OTP course


  • Background
  • Basic Erlang
GusGA / flatten.erl
Created Jul 31, 2018
flatten array
View flatten.erl
flat(List) -> flat(List, []).
flat([], Acc) -> Acc;
flat([H | T], Acc) -> flat(H, flat(T, Acc));
flat(H, Acc) -> [H | Acc].
GusGA /
Last active Jul 10, 2018
Posible Erlang test questions

When Link to or monitor a erlang process


  • Have a dependency on a process (i.e: you can't run if a specific process dies). This fits great into supervisor trees.
  • Have a bidirectional dependency, where a parent can't run if the child dies, and you also want to kill the child if the parent dies in turn.
  • Only need 1 link between processes (remember that if A and B are linked, all subsequent calls to link/2 will be ignored).
  • You are a supervisor, or you want some kind of physical relationship between your processes in your architecture (i.e: you actually need to die or restart or try something out to fix the situation that led to the death of your child.


View strong_params_helpers.rb
module StrongParamsHelpers
extend Grape::API::Helpers
def permitted_params
@permitted_params ||= declared(params, include_missing: false, include_parent_namespaces: false)