Skip to content

Instantly share code, notes, and snippets.

View arefaslani's full-sized avatar

Aref Aslani arefaslani

View GitHub Profile
@fernandoaleman
fernandoaleman / mysql2-m1.md
Last active April 22, 2024 23:15
How to install mysql2 gem on m1 Mac

Problem

Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.

Solution

Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.

Replace mysql-client with whichever mysql package you are using

anonymous
anonymous / mate-term-solarize.sh
Created May 11, 2012 16:06
Shell script for setting mate-terminal color palette to use Solarized theme
#!/bin/sh
#
# Shell script that configures mate-terminal to use solarized theme
# colors. (I simply replaced in the original script every occurence
# of "gnome-terminal" with "mate-terminal" and every occurcence
# of "gconftool-2" with "mateconftool-2"; reverse these changes if
# using gnome and rename the script to its original name: "solarize"
#
# Written for Ubuntu 11.10, untested on anything else. (actually tested
# also on ArchLinux, seems to work fine here, tweak it to your needs :)
@MicahElliott
MicahElliott / rbenv-howto.md
Created April 17, 2012 18:11
Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev