Skip to content

Instantly share code, notes, and snippets.

View Shohan494's full-sized avatar
:octocat:
Working from home

Shohanul Alam Shohan494

:octocat:
Working from home
View GitHub Profile
@Shohan494
Shohan494 / Laravel PHP7 LEMP AWS.md
Created December 6, 2017 19:41 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@Shohan494
Shohan494 / getPhpServerVariables.php
Created May 7, 2020 17:20
basic php server variables
<?php
$indicesServer = array('PHP_SELF',
'argv',
'argc',
'GATEWAY_INTERFACE',
'SERVER_ADDR',
'SERVER_NAME',
'SERVER_SOFTWARE',
'SERVER_PROTOCOL',
'REQUEST_METHOD',
@Shohan494
Shohan494 / System Design.md
Created May 10, 2020 22:36 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@Shohan494
Shohan494 / gitflow-breakdown.md
Created May 10, 2020 22:38 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

lets-git

0. we have to create a repository in github, which is optional, we can directly start work in our local machine,

- inside our work directory, project root we will type - `git init`
- this will create our git repository from very beginning 
- we will start work from local master branch (main branch by default)

1. you will obviously develop some cool applications or whatever, solve some tough problems through code

- so you will write code, change them, test them
  • anything you do, you should mark the changes with - git diff, git log, git status
@Shohan494
Shohan494 / gist:88729e5ed18d50146a833d2656bb2c03
Last active May 11, 2020 12:06 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
## Install APCu on Windows
Assumptions
-I assume that you know what is APC - Alternative PHP cache
-You want to install APCu because APC is not compatible anymore with PHP 5.5.x
-You want to install APCu for wamp, xampp. Mostly windows web development platforms for PHP
Instructions
Pre: All directory locations might be different for you depending on your wamp installation folder and your PHP/apache versions.