Skip to content

Instantly share code, notes, and snippets.

View afiefsky's full-sized avatar
🚀
the quick brown fox jumps over the lazy dog

Muhammad Afief Farista afiefsky

🚀
the quick brown fox jumps over the lazy dog
  • Fore Coffee
  • Jakarta, Indonesia
View GitHub Profile
@afiefsky
afiefsky / mamp_conf.md
Last active August 30, 2019 11:36
MAMP Configuration Snippet

MAMP Configurations Snippet

CLI Login

/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot

Or

mysqld -u root -p
@skyzha
skyzha / Debug Query.txt
Last active August 16, 2019 04:08
I used this when have problems selecting data from pivot table
\DB::enableQueryLog();
$all = TrainingDetail::event()
->with(['student' => function($query) use($request) {
$query->where('myb_fullname', 'LIKE', '%'.$request->search.'%');
$query->groupBy('id');
}])
->with(['teacher' => function($query) use($request) {
$query->where('myb_fullname', 'LIKE', '%'.$request->search.'%');
$query->groupBy('id');
}])
@ankurk91
ankurk91 / 1-elementary-os-apps.md
Last active December 25, 2023 19:14
elementary OS 5.1 Hera

elementaryOS Apps and Configs

⚠️ No longer maintained! ⚠️

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common
@seyhunak
seyhunak / git-flow.md
Last active May 9, 2022 12:13
Git Flow - Cheatsheet

Git-Flow

Initialize a Repository for git-flow

git flow init -d

(Omit -d if you want to select values other than the defaults.)

Features

@vitorbritto
vitorbritto / rm_mysql.md
Last active May 20, 2024 19:44
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql