Skip to content

Instantly share code, notes, and snippets.

View mahfuzul's full-sized avatar

Mahfuzul Hasan mahfuzul

View GitHub Profile
@mahfuzul
mahfuzul / virtualhost
Last active August 29, 2015 14:22 — forked from saniyat/virtualhost
# Make a file named virtualhost and place it in /usr/local/bin folder.
# Give +x permission to the file.
# use as
# virtualhost sitename.tld relative_path_to/var/www/
# i.e virtualhost d7.san d7
#!/bin/bash
### Set default parameters
action='create'
domain=$1
@mahfuzul
mahfuzul / setdrupal.sh
Last active August 29, 2015 14:13
setdrupal function download and extract Drupal from https://www.drupal.org
#!/bin/zsh
# @author: Mahfuzul Hasan <[email protected]>
# setdrupal function download and extract Drupal from https://www.drupal.org
# To execute this function run this commands:
# chmod +x setwp.sh
# ./setwp.sh
# or add this file as a source in your .zshrc / .bashrc file " source ~/bin/zsh/setdrupal.sh "
#
setdrupal(){
echo -n "Which version you want to download (ex. 7.34) ? "
@mahfuzul
mahfuzul / setwp.sh
Last active August 29, 2015 14:13
setwp function download and extract wordpress from https://wordpress.org
#!/bin/zsh
# @author: Mahfuzul Hasan <[email protected]>
# setwp function download and extract wordpress from https://wordpress.org
# To execute this function run this commands:
# chmod +x setwp.sh
# ./setwp.sh
# or add this file as a source in your .zshrc / .bashrc file " source ~/bin/zsh/setwp.sh "
#
setwp(){
echo "Downloading....."