#1. Open apache environment variabled
$ sudo nano /etc/apache2/envvars
#2. Change following 2 lines
export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data
#1. Open apache environment variabled
$ sudo nano /etc/apache2/envvars
#2. Change following 2 lines
export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
<?php | |
$items = array( | |
'original' => 50, | |
'v1' => 20, | |
'v2' => 10, | |
'v3' => 20, | |
); | |
$rand = rand(0,100); |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
separator: ";\n" | |
}, | |
dist: { | |
// the files to concatenate | |
src: [ |
function getXPaths (dom){ | |
//If dom has id and making sure no other dom has the same id | |
function hasUniquId (dom){ | |
return (dom.id && dom.id.length) && ($("[id="+dom.id+"]").size() > 1); | |
} | |
//If dom has any siblings , if yes then it's position | |
function getPositionInSiblings(dom){ |
{ vacancies: 1, | |
description: | |
[ 'Must be expertise in social media networking, search engine optimization and word press development.', | |
'PHP', | |
'Familiarity with the syntax and control structures of the given language.', | |
'Best practices for efficient and easier to maintain code.', | |
'Best practices for securing web applications.', | |
'Inserting, querying and managing data stored in databases or files.', | |
'Knowledge of PHP and database programming including:', | |
'The features and syntax of PHP data types, variables, constants and operators.', |
var _ = require('underscore'), fs = require('fs'); | |
var UglifyJS = require("uglify-js"); | |
var root = 'public/javascripts/modules/'; | |
var modules = ['Hadith']; | |
var FILE_ENCODING = 'utf-8', EOL = '\n'; | |
_.each(modules, function(module){ |
/* Initializing memcache client */ | |
var host = 'localhost', port = 11212; | |
var memcache = require('memcache'), | |
client = new memcache.Client(host, port); | |
client.port = host | |
client.host = port; | |
client.on('connect', function(){ console.log("we've connected"); }); | |
client.on('close', function(){ console.log("connection has been closed"); }); |
var dbConfig = { | |
db : null, | |
host : '127.0.0.1', | |
port : '27017', | |
name : 'test', | |
getConString : function(){ | |
return 'mongodb://' + this.host + | |
':' + this.port + '/' + this.dbName; |