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 | |
/** | |
* Class used for resampling images | |
*/ | |
class Resampler | |
{ | |
/** | |
* Resample an image | |
* |
# 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 |
<?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. |
#!/bin/bash -ex | |
# SETUP PERMISSIONS | |
VPATH=${1%/} | |
GROUP_WEBWORK=${2} | |
WEBSERVER="www-data" | |
HELP="\nHelp: This script is used to fix permissions\nPlease provide the following arguments:\n\t 1) Path to web root\n\t 2) Shared workgroup of website. AKA group ownership\nNote: \"www-data\" (apache default) is assumed as the owner of the web files.\n\nUsage: [sudo] bash ${0##*/} [web_root_path] [group_name]\n" | |
[ -z "$VPATH" ] && VPATH=`pwd` # is null, use present dir | |
[ -z "$GROUP_WEBWORK" ] && GROUP_WEBWORK=webwork # is null, set default |
var swipeFunc = { | |
touches : { | |
"touchstart": {"x":-1, "y":-1}, | |
"touchmove" : {"x":-1, "y":-1}, | |
"touchend" : false, | |
"direction" : "undetermined" | |
}, | |
touchHandler: function(event) { | |
var touch; | |
if (typeof event !== 'undefined'){ |
/* HTML */ | |
<div class="container"> | |
<div class="child"></div> | |
<div> | |
/* Basic Style */ | |
.container { | |
width: 500px; |
/** | |
* To get started install | |
* express bodyparser jsonwebtoken express-jwt | |
* via npm | |
* command :- | |
* npm install express bodyparser jsonwebtoken express-jwt --save | |
*/ | |
// Bringing all the dependencies in | |
const express = require('express'); |