Skip to content

Instantly share code, notes, and snippets.

Mohammad Shahrizal Prabowo rizalp

  • Indonesia
Block or report user

Report or block rizalp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rizalp /
Last active Jan 22, 2020
Minimal Build of PHP 7.4.1 Using Compiled From Source Sqlite3 on Ubuntu 18.04
rizalp / mirror.txt
Last active Dec 10, 2019
change ubuntu source.list to use mirror repository
View mirror.txt
sed -i -e 's,,mirror://,g' /etc/apt/sources.list
rizalp / mysql2 gem with mysql 5.7 brew
Last active Jan 1, 2020
install mysql2 gem by linking it with mysql 5.7 homebrew
View mysql2 gem with mysql 5.7 brew
brew install mysql@5.7
gem install mysql2 -v '0.4.8' -- --with-ldflags=-L/usr/local/opt/mysql@5.7/lib --with-cppflags=-I/usr/local/opt/mysql@5.7/include
rizalp /
Last active Oct 14, 2019
sqlite3 from source ubuntu

Or if using Bundler

  • bundle config build.sqlite3 --with-sqlite3-dir=$HOME/.local
rizalp / remove
Last active Mar 18, 2019
Remove Unused Package Ubuntu
View remove
sudo apt purge pidgin transmission-common libreoffice* thunderbird parole snapd firefox fonts-noto-cjk gnome-software
rizalp /
Created Feb 11, 2019
Install sqlite3 Ruby gem with homebrew's version of sqlite
gem install sqlite3 -- --with-sqlite3-include=/usr/local/Cellar/sqlite/3.27.1/include --with-sqlite3-lib=/usr/local/Cellar/sqlite/3.27.1/lib
rizalp /
Last active Jan 22, 2020
Disable Spectre/Meltdown Mitigation

In /etc/default/grub, modify:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off"

Then sudo update-grub

rizalp /
Last active Aug 6, 2019
macOs Mojave Rails Setup with jemalloc and gmp

Homebrew install

ruby -e "$(curl -fsSL"

Install Libraries

brew install rbenv ruby-build sqlite3 jemalloc gmp

Install Development Dependencies

sudo apt install curl
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update
You can’t perform that action at this time.