Skip to content

Instantly share code, notes, and snippets.

View musamamasood's full-sized avatar
🎯
Focusing

Muhammad Usama Masood musamamasood

🎯
Focusing
View GitHub Profile
# How to reset the root password
/usr/libexec/webmin/changepass.pl /etc/webmin root PASSWORD
# https://www.virtualmin.com/
# http://www.webmin.com/
@musamamasood
musamamasood / gist:89d90215171774caadee
Last active March 17, 2016 20:53 — forked from seanmcn/gist:62a021a765ad4f8e593b
The Perfect Web Server - Nginx, Ajenti, Ubuntu on VPS
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
@musamamasood
musamamasood / functions.php
Last active March 15, 2016 16:24 — forked from billerickson/functions.php
Add blog to breadcrumbs, and remove category
<?php
/**
* Add Blog to Breadcrumbs, remove category and add pagination in breadcrumb.
* @author Bill Erickson, Masood U
* @link http://www.billerickson.net/adding-blog-to-genesis-breadcrumbs/
* @reference http://genesis.wp-a2z.org/page/2/?s=breadcrumb
*
* @param string original breadcrumb
* @return string modified breadcrumb
@musamamasood
musamamasood / multi-git.md
Created November 3, 2015 21:10 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.