Skip to content

Instantly share code, notes, and snippets.

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

Adham El Banhawy Banhawy

🏠
Working from home
View GitHub Profile
<section>
<div class="container">
<div class="row">
<div class="col"></div>
<div class="col-12">
<div class="jumbotron">
<h1>Proactive Marketing & PR Report</h1>
<h2>October 2016</h2>
<h2>University Relations</h2>
</div>
@Banhawy
Banhawy / Browser Sync + SASS Setup
Last active July 15, 2017 23:54
Gulp file to watch and compile sass files and reloads browser on changes
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var uglify = require('gulp-uglify');
var useref = require('gulp-useref');
var cssnano = require('gulp-cssnano');
var runSequence = require('run-sequence');
// Basic Gulp task syntax
gulp.task('hello', function() {
{
"1": {
"leader": "Barak Obama",
"years": "1961 - present",
"wiki": "https://en.wikipedia.org/wiki/Barack_Obama",
"cover": "https://rooseveltcdc.files.wordpress.com/2016/01/flag.png?w=1500",
"pic": ["http://s1.lemde.fr/image/2016/01/13/534x0/4846180_6_6bb8_barack-obama-a-profite-de-son-adresse-au_5a3d3534c49599cad78039f91b7c2855.jpg", "http://pixel.nymag.com/imgs/daily/vulture/2016/08/11/11-obama-sex-playlist.w529.h529.jpg", "http://i2.cdn.cnn.com/cnnnext/dam/assets/160105151652-obama-90-sec-large-169.jpg", "http://15130-presscdn-0-89.pagely.netdna-cdn.com/wp-content/uploads/2016/04/obama-mic-drop.jpg"],
"quotes": [ "Torture is how you create enemies, not how you defeat them.", "There's not a liberal America and a conservative America - there's the United States of America.", "Do something, Congress. Do anything.", "Change doesn't come from Washington. Change comes to Washington.", "It took a lot of blood, sweat and tears to get to where we are today, but we have just begun. Today we begin in ea
@Banhawy
Banhawy / create-react-app package.json with SASS
Created August 15, 2017 02:16
Using create-react-app with SASS
{
"name": "activity-counter",
"version": "0.1.0",
"private": true,
"dependencies": {
"node-sass-chokidar": "0.0.3",
"npm-run-all": "^4.0.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-scripts": "1.0.11"
{
"name": "twitch",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.0",
"node-sass-chokidar": "0.0.3",
"npm-run-all": "^4.1.1",
{
"presets": ["latest", "stage-0", "react"]
}
@Banhawy
Banhawy / .eslintrc.js
Last active February 19, 2018 18:39
integrating eslint into any project with babel
module.exports = {
"parser": 'babel-eslint',
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
@Banhawy
Banhawy / Find-Admin-Url-Command
Last active January 24, 2019 16:30
[Magento: Finding Admin Url] On the server's Magento folder's root type the following command #magento #php
php bin/magento info:adminuri
@Banhawy
Banhawy / Creat new admin user command
Last active January 24, 2019 10:23
[Magento: Create a New Admin User] Using the Command-line #magento #php
php bin/magento admin:user:create --admin-user="<username>" --admin-password="<password>" --admin-email="<email>" --admin-firstname="Admin" --admin-lastname="Admin"
@Banhawy
Banhawy / Secure-Copy
Created January 25, 2019 16:54
[SCP] Copy files from and to remote servers #linux #bash
# Copy one single local file to a remote destination
scp /path/to/source-file user@host:/path/to/destination-folder/
# Copy one single file from a remote server to your current local server
scp user@host:/path/to/source-file /path/to/destination-folder
# Copy one single file from a remote server to another remote server
scp user1@server1:/path/to/file user2@server2:/path/to/folder/
# Copy multiple files with one command