Skip to content

Instantly share code, notes, and snippets.

View ricsdeol's full-sized avatar

Ricardo Siqueira de Oliveira Leite ricsdeol

View GitHub Profile
ricsdeol /
Created May 7, 2024 21:46 — forked from jjb/
Using Jemalloc 5 with

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.


FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
ricsdeol / .gemrc
Last active December 4, 2023 20:37
gem: --no-document
ricsdeol / .zshrc
Last active December 4, 2023 20:37
Python version pyenv @ oh-my-zsh theme
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See
ricsdeol /
Last active September 23, 2023 19:18
Config WSL2 Ubuntu

Config WSL2 Ubuntu

Config Shared Drive projects

Create VHDX dirve

Mount-VHD -PATH "D:\Ricardo\projects.vhdx" -PassThru
wsl --mount \\.\PHYSICALDRIVE2
ricsdeol / ruby
Last active December 15, 2021 23:29
Clean Ruby and some databases Environment

Install some dependences

// improve battery perform
sudo add-apt-repository ppa:linrunner/tlp

sudo sh -c 'echo "deb [arch=amd64] $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

wget --quiet -O - | sudo apt-key add -
ricsdeol / resoursable.rb
Created October 1, 2020 01:14
# frozen_string_literal: true
module Resourceable
extend ActiveSupport::Concern
included do
before_action :set_resource, only: %i[show edit update destroy]
before_action :authorize_resource
helper_method :resource
ricsdeol / goal_ucase.rb
Last active November 10, 2020 21:05
Goals Ucase Exemple
require 'pp'
require 'bundler/inline'
gemfile do
source ''
gem 'u-case', '~> 4.2.1'
gem 'pry-byebug'
gem 'awesome_print'
gem 'activesupport', require: 'active_support/all'
ricsdeol /
Last active July 5, 2020 01:27
Post install ubuntu
sudo add-apt-repository ppa:linrunner/tlp
sudo sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - | sudo apt-key add -
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
ricsdeol /
Created May 18, 2020 17:37 — forked from chuckg/
Splunk Storm recipes for Heroku logs.

Splunk Recipes for Heroku

A collection of Splunk recipes for Heroku logs. Instructions for setting up Splunk Storm with Heroku can be found here. For the vast majority of these recipes you'll need to have enabled the Heroku labs feature, log-runtime-metrics, for your application.

ricsdeol / fino-time-asdf.zsh-theme
Created August 11, 2019 15:53
oh-my-zsh fino-time theme adapter to use asdf
# fino-time.zsh-theme
# Use with a dark background and 256-color terminal!
# Meant for people with RVM and git. Tested only on OS X 10.7.
# You can set your computer name in the ~/.box-name file if you want.
# Borrowing shamelessly from these oh-my-zsh themes:
# bira
# robbyrussell