Home
Losers Wiki
Cancel

nginx

Install (based around this) after adding the official repo via these instructions apt-get install nginx apt-get install php5-fpm apt-get install fcgiwrap # for cgi cp /usr/share/doc/fcgiwrap/exam...

nextcloud

running occ commands run as www-data eg. sudo -u www-data php /usr/share/nginx/nextcloud/occ db:add-missing-indices

networkdays-function

Similar to excel function; create function dbo.fn_networkdays ( @Startdate date , @Enddate date , @BankHol int = 0 ) RETURNS INT AS BEGIN    declare  @days int = 0    while @enddate >= @startd...

network

netflix

netflix sub-genre codes

nagios

nagios---checking-quorum-drives

shell script for checking quorum drives on multiple windows nodes #!/bin/bash # check_quorum.sh # # K Sotiroff 23 Oct 2014 # # checks quorum drives no matter what node they sit on. # usage () { ...

nagios---acknowledging-alerts-via-email

1. point an email address at your server. eg; nagios@yourserver.com 2. add a pipe to /etc/aliases; eg;  nagios:     "| /usr/local/nagios/libexec/eventhandlers/emailhandler.php" 3. run newaliase...

mysql-resetting-root-password

kill mysql create a file with the following lines in it; UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root'; FLUSH PRIVILEGES; start mysql passing in init file; mysqld_...

mysql-replication-with-innobackupex

If the master server is running innobackupex, then get the prepared backup directory (must be prepared) and copy it across to the slave. The do this; Stop the slave; service mysql stop Move the ...