Skip to content

Instantly share code, notes, and snippets.

View mofaruk's full-sized avatar

Md. Omar Faruk mofaruk

View GitHub Profile

Check disk usage

sudo du -h --max-depth=1

Potential cleanups

  1. Clean docker logs
truncate -s 0 /var/lib/docker/containers/**/*-json.log

This cancels noise using PulseAudio

Step 1:

Add the following lines on /etc/pulse/default.pa if not added

load-module module-filter-heuristics
load-module module-filter-apply
load-module module-echo-cancel aec_args="analog_gain_control=0 digital_gain_control=0"
@mofaruk
mofaruk / .bash_profile
Created July 31, 2020 14:09 — forked from sheikhwaqas/.bash_profile
Recommended Bash Profile for Mac OS X
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Generators Package
@mofaruk
mofaruk / setup-lemp.sh
Created July 31, 2020 14:08 — forked from sheikhwaqas/setup-lemp.sh
Install the LEMP stack on Ubuntu 16.04 LTS with Composer, Ruby, Sass & Compass
###############################################################################
# Install nGinx and PHP 7 on Ubuntu 16.04 LTS
###############################################################################
# Install nGinx Server
apt install nginx
# Install PHP & and it's respective packages
apt install php-common php-fpm php-mysql php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mysql php7.0-opcache php7.0-readline php-bcmath php-bz2 php-calendar php-ctype php-curl php-date php-enchant php-gd php-intl php-mbstring php-mcrypt php-mongodb php-soap php-sqlite3 php-tidy php-xdebug php-xml php-xml-parser php-xml-rpc2 php-xml-serializer php-xml-svg php-xmlrpc php-zip