Skip to content

Instantly share code, notes, and snippets.

@MnMTech
MnMTech / Copy directory to server over SSH.sh
Created July 20, 2015 07:19
Copy directory to server over SSH
tar -cz . | ssh -i /path/to/local/key/file.pem user@hostname -- 'tar -C/the/remote/path/to/target/folder -xz'
@MnMTech
MnMTech / Custom Glyphicon CSS.css
Last active August 29, 2015 14:22
Custom Glyphicon CSS
.custom-glyphicon-class:before{
content:"";/*this is the content required for the link icon. Change to suit your own requirements*/
/*These are copied from the parent .glyphicon class*/
display:inline-block;
font-family: "Glyphicons Halflings";
font-style: normal;
font-weight: 400;
position: relative;
line-height: 1;
/*These rules can be adjusted to position and size your icon*/
@MnMTech
MnMTech / Bootstrap 3 Glyphicon Link class CSS.css
Created June 9, 2015 08:01
Bootstrap 3 Glyphicon Link class CSS
@MnMTech
MnMTech / Proper Sticky Footer CSS.css
Last active August 29, 2015 14:22
Proper Sticky Footer CSS
@MnMTech
MnMTech / Proper Sticky Footer HTML.html
Last active August 29, 2015 14:22
Proper Sticky Footer HTML
@MnMTech
MnMTech / Running Laravel 5 artisan migrations.sh
Last active August 29, 2015 14:22
Running Laravel 5 artisan migrations
#using the artisan alias
artisan migrate
@MnMTech
MnMTech / Create Laravel 5 artisan CLI alias.sh
Last active August 29, 2015 14:22
Create Laravel 5 artisan CLI alias
alias artisan="php /var/www/html/projectname/artisan"
@MnMTech
MnMTech / Update package dependencies in composer.json.sh
Last active August 29, 2015 14:22
Update package dependencies in composer.json
#edit composer.json first
composer update
@MnMTech
MnMTech / Install & enable PHP Mcrypt on Ubuntu 14.04.sh
Last active August 29, 2015 14:22
Install & enable PHP Mcrypt on Ubuntu 14.04
apt-get install php5-mcrypt
php5enmod mcrypt
service apache2 restart
@MnMTech
MnMTech / .htaccess file to redirect traffic from web root into Laravel project sub directory.sh
Last active August 29, 2015 14:22
.htaccess file to redirect traffic from web root into Laravel project sub directory
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# remove www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [NE,R=301,L]