Missing write access to /usr/local/lib/node_modules is not write permission, npm official solution is to create a new folder with permissions, install npm package in this new folder. This method does not apply to Microsoft Windows system. Create a folder in the user’s root directory (the name does not have to be .
Due to my busy work schedule my personal web site was dated. So much so that it was a few releases behind schedule. I had built it using Ghost (headless Node.js CMS) and by quickly building some Docker containers I managed to upgrade the database relatively fast. I have built many data driven dynamic sites most based on PHP or Perl.
These are index folders, the presence of which can be quite annoying. To locate them if you’re feeling ok about automatically deleting them then: On a Synology NAS you can disable feature as follows warn: The runkey of service [pkgctl-SynoFinder] has been set to “No"
I use nfs quite a lot. It allows local access to remote files i.e. the remote folder is mounted locally so you can access the remote files locally. Often overlooked, make sure the proper NFS RPC-based services are enabled for portmap (not required for nfs4). Issue the following command as root:
Look whether the version you like is available. For a producion server you may not want to install the very latest. yum search php56 Here I have gone for php56 i.e. php-5.6 as I needed it for the latest mediawiki I was looking to install for my documentation. sudo service php-fpm stop sudo yum remove php-* sudo yum install php56 yum list installed | grep php You may want the following extenstions
At times you see that a particular image or so is not found when loading a web page and you are at a loss where the call came from. At least I had that today when I noticed that a menu image was called. The command to search for that is actually really straight forward:
I use yui-compressor to minify my files. It’s so easy. In Ubuntu (15.04) it’s available via apt-get. To install it (on Ubuntu) type the following in your terminal window apt-get install yui-compressor The command structure to run it is yui-compressor SOURCE > TARGET e.g. yui-compressor public/css/custom.css > public/css/custom.min.css
I needed to generate a .htaccess redirect file where each line has a simple command redirect 301 old-file new-file The file called crawl-error.txt with all the required urls that needed a redirect was quite long so I did the following in no time. First ensure that the file is really a proper text file as otherwise whatever you want to append will be prepended instead.
I discovered that it is not possible, at least not for the same user, to have two git projects in the same account as github uses the ssh key to identify your repository. Once I realized that this was the problem, the quick fix was to clone the repository in another account.
I have a web server which needs to link to a MS SQL server (not my choice). In my case I use Plack which calls the database in four steps. The catch I often struggle with is that some other files with the same name may float around and which you may not be aware off.
I did a fresh install the other day of Ubuntu 14.04 on a little notebook for my daughter. All worked out of the box with the exception of the wireless which had worked before using version 12. The following terminal commands may give you a clue as to which network controller you have.
No doubt you have, like me, one or more documents that you would like extra protected. How can you remember all your passwords, access codes, urls etc which you know you should not have available in plain text. In Linux there are several tools that make file encrypting easy. I like to use a little tool called ccrypt for its simplicity.
After my server was attacked and brought down by the Chinese I wasn’t certain whether or not the machine was compromised. I decided though to move my mail to Google Apps instead, preferring a good sleep over worries of another more ferocious attack. As my mail wasn’t on a live machine I could not use Google’s suggestion of using their API.
- OLDER POSTS
- page 1 of 5