Skip to content

Instantly share code, notes, and snippets.

View khanzadimahdi's full-sized avatar
🤔
Don't ration passion!

mahdikhanzadi khanzadimahdi

🤔
Don't ration passion!
View GitHub Profile
@khanzadimahdi
khanzadimahdi / fontwawesome-icons-4.7.json
Created September 25, 2018 17:09
fontawesome 4.7 icons list json
{
"icons": [
"fa fa-glass",
"fa fa-music",
"fa fa-search",
"fa fa-envelope-o",
"fa fa-heart",
"fa fa-star",
"fa fa-star-o",
"fa fa-user",
@khanzadimahdi
khanzadimahdi / laravel-multiple-upload.php
Last active January 23, 2019 20:19
laravel upload helper (upload single or multiple files + retrieve uploaded file's info)
<?php
if(!function_exists('fileUpload')){
/**
* upload files (single and multiple)
*
* @param \Illuminate\Http\Request $request
* @param $inputName
* @param string $disk
* @return array|mixed
@viktorpetryk
viktorpetryk / mailhog-install.md
Last active February 3, 2025 14:27
MailHog installation on Ubuntu

Install & Configure MailHog

  1. Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
  1. Make MailHog as a service
@chuckrincon
chuckrincon / ConfigServiceProvider.php
Last active October 10, 2023 14:13
Load all your lumen config files painless.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
class ConfigServiceProvider extends ServiceProvider
{
@asukakenji
asukakenji / 0-go-os-arch.md
Last active February 22, 2025 17:27
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active March 5, 2025 16:55
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@sidja
sidja / Dockerfile
Created January 23, 2017 02:11
How to change time zone in docker container ubuntu
FROM ubuntu:16.04
ENV TZ=Australia/Melbourne
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN dpkg-reconfigure --frontend noninteractive tzdata

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active March 7, 2025 05:00
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active January 23, 2025 04:13
Ubuntu 22/24 - PHP development (php 7.4 / 8.4, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu Server
export DEBIAN_FRONTEND=noninteractive
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2