This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -cz . | ssh -i /path/to/local/key/file.pem user@hostname -- 'tar -C/the/remote/path/to/target/folder -xz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The parent class styles | |
.glyphicon { | |
display: inline-block; | |
font-family: "Glyphicons Halflings"; | |
font-style: normal; | |
font-weight: 400; | |
line-height: 1; | |
position: relative; | |
top: 1px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#using the artisan alias | |
artisan migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias artisan="php /var/www/html/projectname/artisan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#edit composer.json first | |
composer update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install php5-mcrypt | |
php5enmod mcrypt | |
service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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] |
NewerOlder