Skip to content

Instantly share code, notes, and snippets.

View ahmedash95's full-sized avatar

Ahmed Ammar ahmedash95

View GitHub Profile

Laravel 5 Interview Questions

This is a compiled list of Laravel interview questions. If Laravel is an engineer's PHP framework of choice, they definitely have potential to be a good candidate, but a lot of new PHP engineers have been into Laravel too. The framework itself is very welcoming to newcomers, which makes it easy for beginners to feel that they know more than they really do.

General Questions

1. How long have you been using Laravel?

This question can help decide what level of questions to ask.

@ahmedash95
ahmedash95 / install_ffmpeg_ubuntu.sh
Created June 29, 2016 21:58 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@ahmedash95
ahmedash95 / webpack.config.js
Created July 5, 2016 02:39 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@ahmedash95
ahmedash95 / phalconphp_php7_ubuntu_16_04.sh
Last active August 1, 2016 23:45 — forked from Tosyn/phalconphp_php7_ubuntu_16_04.sh
PhalconPhp with PHP7 Installation on Ubuntu 16.04
#!/bin/bash
# PhalconPhp with PHP7 installation on ubuntu:16.04
sudo apt-get update
sudo apt-get install -y php7.0-fpm \
php7.0-cli \
php7.0-curl \
php7.0-gd \
@ahmedash95
ahmedash95 / READ.ME
Last active October 5, 2016 09:53
SMS-Egypt Class
## SMS-EGYPT LARAVEL CLASS
in .env file set these configs
SMS_USERNAME=
SMS_PASSWORD=
SMS_SENDER=
then use it as
@ahmedash95
ahmedash95 / replace_text.js
Last active December 4, 2016 23:41
nodes html changer
window.replaceTextIndex = [];
function replaceText(element, text, newText) {
var regextPattern = new RegExp(text, "g");
if (typeof element === 'string' || element instanceof String)
element = document.querySelector(element);
element.childNodes.forEach(function(node, index) {
if (node.tagName == "P" || node.tagName == "DIV" || node.tagName == undefined || node.tagName == "SPAN") {
if (node.tagName == undefined && node.nodeValue != "") { // it's text
if(node.nodeType != Node.COMMENT_NODE && node.nodeValue.trim().length > 0)
{
@ahmedash95
ahmedash95 / Glyphs.php
Created October 19, 2016 15:54
Glyphs Class for UTF8
<?php
/**
* This file is part of the AIP package.
*
* (c) Khaled Al-Sham'aa <khaled@ar-php.org> && Maher El Gamil <maherbusnes@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include<iostream>
#include<algorithm>
#include <cmath>
#include <limits>
#include <iomanip>
using namespace std;
struct Item{
double value;
#!/usr/bin/python
import requests
import re
import urllib2
from bs4 import BeautifulSoup
class url_grabber:
def __init__(self,url):
self.url = url
@ahmedash95
ahmedash95 / mongo-installer.sh
Created November 30, 2016 13:04
MongoDB Installer
apt-get update
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update
apt-get install -y mongodb-org=3.2.11 mongodb-org-server=3.2.11 mongodb-org-shell=3.2.11 mongodb-org-mongos=3.2.11 mongodb-org-tools=3.2.11