Skip to content

Instantly share code, notes, and snippets.

View Shipu's full-sized avatar

Shipu Ahamed Shipu

View GitHub Profile
Shipu / Dockerfile
Created December 12, 2021 13:11 — forked from aramalipoor/Dockerfile
Docker + Alpine + Newrelic + PHP (Kubernetes / AbarCloud)
View Dockerfile
# Prepare required directories for Newrelic installation
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \
# Download and install Newrelic binary
export NEWRELIC_VERSION=$(curl -sS | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \
cd /tmp && curl -sS "${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \
Shipu /
Created May 1, 2021 00:50 — forked from msurguy/
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at

Shipu /
Created September 14, 2020 08:41 — forked from robhrt7/
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
Shipu / full-setup-18
Created April 21, 2019 03:26 — forked from TuserSheikh/full-setup-18
startup for ubuntu
View full-setup-18
#!/usr/bin/env bash
if [[ -z `grep "net.ipv6.conf.all.disable_ipv6 = 1" /etc/sysctl.conf` ]]; then
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
Shipu /
Created July 16, 2018 18:23 — forked from itsmelion/
Mac OSX SUPER-Configuration
# xcode command line - Select: "Get xcode" and go get a coffee (preferably far from your desk :)
xcode-select --install
# homebrew
/usr/bin/ruby -e "$(curl -fsSL"
# will ask to install the command line tools for macOS if the previous step was not executed
brew tap caskroom/cask
brew tap caskroom/versions
Shipu /
Created April 8, 2018 19:14
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).

Accessing the Container