Skip to content

Instantly share code, notes, and snippets.

View razzul's full-sized avatar
🏠
Working from home

Razzul razzul

🏠
Working from home
View GitHub Profile
@razzul
razzul / ubuntu.md
Last active December 25, 2018 03:15
ubuntu lamp

Install LAMP Stack On Ubuntu 16.04

LAMP

Install Apache

$ sudo apt-get update
$ sudo apt-get install apache2

Test Apache

@razzul
razzul / comparison-operators.md
Last active November 28, 2017 10:00
Difference between == and ===

Loose comparisons with ==

TRUE FALSE 1 0 -1 "1" "0" "-1" NULL array() "php" ""
TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE TRUE FALSE FALSE TRUE FALSE
FALSE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE TRUE FALSE TRUE
1 TRUE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE
0 FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE TRUE TRUE
-1 TRUE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE
"1" TRUE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE
@razzul
razzul / git_ignore.md
Created April 27, 2017 07:04
igore file from a git dir

$ git status
$ echo "*.ignore.php" > .gitignore
$ git status

@razzul
razzul / DataTable.md
Created April 24, 2017 05:43
DataTable population

DataTable

#CSS

th.sorting:after {
	content: url('themes/default/images/arrow.gif');
}
th.sorting_asc:after {
	content: url('themes/default/images/arrow_up.gif');
@razzul
razzul / LNMP.md
Last active April 11, 2017 07:00
Learn how to install & configure Nginx, MySQL and PHP on an Ubuntu server

Learn how to install & configure Nginx, MySQL and PHP on an Ubuntu server.

Command Rundown

Here are the commands used:

Install some basics:

sudo apt-get update
sudo apt-get install -y wget curl vim tmux htop software-properties-common
@razzul
razzul / heroku.md
Created April 5, 2017 09:51
Heroku Config

heroku
laravel new laravel-heroku
web: vendor/bin/heroku-php-apache2 public
git init
git add .
git commit -m "First commit"
heroku create
heroku config:add \
git push heroku master
heroku addons:add heroku-postgresql:hobby-dev

@razzul
razzul / submile.md
Last active February 15, 2019 07:45
Sublime config

Material Theme

SUBLIME TEXT : INSTALLING MATERIAL THEME

Easy installation

You can install this awesome theme through the Package Control.

  1. Press ⌘/Ctrl + ⇧ + P to open the command palette.
  2. Type Package Control: Install Package and press enter. Then search for Material Theme.
@razzul
razzul / curl.md
Created March 15, 2017 06:38
cURL error 60: SSL certificate problem

Remove col from listing

STEP 1:

public function index()
{
	$this->listing_cols = array_diff($this->listing_cols, ['description']);
@razzul
razzul / andriod-studio-open-failed-after-install.md
Created February 20, 2017 08:35
Android Studio unable to open after install

Open the folder bin under the directory where you installed your Android Studio.
Find the file idea.properties and open it with Notepad++, UltraEdit, or other edit tools.
Add disable.android.first.run=true as the final line and save the file.
Restart Android Studio.