Skip to content

Instantly share code, notes, and snippets.

@morad7
morad7 / gist:33d8866cca0f23a60d715009575cbf72
Created April 20, 2018 09:08 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@morad7
morad7 / Q&A GUIDE - PHP.md
Created September 3, 2016 12:06 — forked from tachymetre/Q&A GUIDE - PHP.md
UI-101 (PHP)
  1. Declare a new variable in PHP equal to the number 3 php $number = 3;

  2. How do you check if a variable has been set in PHP? php isset($var);

@morad7
morad7 / newdrupalsite
Created March 9, 2016 16:34 — forked from mohamedrez/newdrupalsite
New drupal site
#!/bin/bash
# This script creates virtual hosts and prepares your drupal directory.
# you should put it under /usr/local/bin/
# and run it with sudo newvhost
# Set the path to your localhost
www=/var/www
echo "Enter directory name under $www"
@morad7
morad7 / README.md
Created November 14, 2015 21:48 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet