This is a Git Style Guide inspired by How to Get Your Change Into the LinuxKernel, the git man pages and various practices popular among the community.
$ find . -name '*.php' | xargs wc -l
$ find . -name '*.js' -or -name '*.php' | xargs wc -l | grep 'total' | awk '{ SUM += $1; print $1} END { print "Total text lines in PHP and JS",SUM }'
$ cloc --exclude-lang=DTD,Lua,make,Python .
I seem to have resolved this by putting
deb http://cz.archive.ubuntu.com/ubuntu trusty main
in
/etc/apt/sources.list
(as mentioned on the Ubuntu site at libsystemd-journal0), then doing apt-get update
, apt-get install libsystemd-journal0
and apt-get install docker-engine
.
HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
find ./ -type d -exec chmod 755 {} \;
find ./ -type f -exec chmod 644 {} \;
$ sudo add-apt-repository ppa:ondrej/php
Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. By leveraging JavaScript on both the front-end and the back-end, development can be more consistent and be designed within the same system.
In this guide, we'll show you how to get started with Node.js on an Ubuntu 16.04 server.
If you are looking to set up a production Node.js environment, check out this link: How To Set Up a Node.js Application for Production.
#!/bin/sh | |
versionMaj="1" | |
versionMin="0" | |
versionRev="1" | |
version="$versionMaj.$versionMin-$versionRev" | |
echo "Removing old Postman tarballs" | |
rm -f $(ls Postman*.tar.gz) |
PhpStorm should use the same permissions as the user that runs/ launches the script (yourself). Add yourself to the www-data group, or set up a new group.
Let's say you created a new group called "www-pub" and added yourself to it as per instructions.
Remember to log out and back in to have the new group membership take effect. Test your group membership with the groups command.
Then, change permissions of the /var/www directory as follows:
$ chown -R :www-pub /var/www
export SYMFONY_ENV=prod | |
composer install --no-dev --optimize-autoloader |