If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
| PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` | |
| alias composer='php /Applications/MAMP/bin/php/${PHP_VERSION}/bin/composer.phar' | |
| export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH export |
| <?php | |
| /* | |
| The code below was found during a forensic investigation. It seems to be a mass mailer that is using the PHPMailer class to send mail | |
| from compromised web hosting providers. | |
| The "password" is 5307c392-ad5e-4909-adec-c9fd12572686, see below. | |
| Investigation was made by Jonas Lejon <jonas.githubgist at- triop.se> | |
| The signature for PHP.Trojan.Mailer-1 can only find the packed version of this file. |
| $(document).ready(function() { | |
| $("#contactForm").submit(function(e) { | |
| e.preventDefault(); | |
| var o = $(this).serializeArray(), | |
| t = $(this).attr("action"), | |
| i = $("#contactFormResponse"), | |
| n = $("#cfsubmit"); | |
| n.text(); | |
| return n.text("Sending..."), $.ajax({ | |
| url: t, |
| /*========== Mobile First Method ==========*/ | |
| /* Custom, iPhone Retina */ | |
| @media only screen and (min-width : 320px) { | |
| } | |
| /* Extra Small Devices, Phones */ | |
| @media only screen and (min-width : 480px) { |
| # add sudo user to www-data group | |
| # usermod on your user. So that would be | |
| sudo usermod -aG www-data srinivas | |
| # set perms with sudo user in accordance with apache user | |
| sudo chown -R srinivas:www-data . | |
| # change group perms of storage and cache folder to exlcusively support only apache user | |
| sudo chgrp -R www-data storage bootstrap/cache | |
| # declare user and group permissions on the same | |
| sudo chmod -R ug+rwx storage bootstrap/cache | |
| # unmask hack to set www-data for newly created files |
| .col-xs-offset-right-12 { | |
| margin-right: 100%; | |
| } | |
| .col-xs-offset-right-11 { | |
| margin-right: 91.66666667%; | |
| } | |
| .col-xs-offset-right-10 { | |
| margin-right: 83.33333333%; | |
| } | |
| .col-xs-offset-right-9 { |
| wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off example.com |
| Install Ruby Gems on Mac OS X without sudo | |
| 1. Add GEM_HOME to your .bash_profile | |
| For example, nano ~/.bash_profile and add | |
| export GEM_HOME=/Users/srinivas/.gem where the path is to your own Home folder | |
| 2. Add the gem executables to your system path | |
| Also in .bash_profile, add | |
| <IfModule mod_expires.c> | |
| ExpiresActive on | |
| ExpiresDefault "access plus 1 month" | |
| # CSS | |
| ExpiresByType text/css "access plus 1 year" | |
| # Data interchange | |
| ExpiresByType application/atom+xml "access plus 1 hour" |