Where are you based in the UK? | How would you describe what you do? | Is your primary skill set(s) | How old are you? | How many years have you been a web professional? | How many years have you been freelance? | What is your DAY (not hourly) rate? | DAY RATE (clean) | What is your HOUR (not daily) rate? | HOUR RATE (clean) | How do you primarily charge clients? | Do you normally request a deposit before starting work on a project? | Do you normally use a contract? | Do you mostly work … | What is the average value of projects you work on? | What is your gender? | Do you primarily charge a fixed rate or does your rate vary between clients? | What is the average amount of time spent working on a project? | How many projects do you tend to work on at any on time? | What is your normal invoicing terms? | Where do you primarily work? | On average, how many hours a day do you normally work? | On average, how many days a week do you normally work? | Do you have an accountant? | What accounting software do you use, if any? | Accounting software (clean) | Is fr |
---|
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |
#!/bin/bash | |
# Install dependencies | |
# older ubuntus | |
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
# xenial | |
apt install build-essential libsqlite3-dev ruby-dev | |
# Install the gem | |
gem install mailcatcher --no-ri --no-rdoc |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
intitle:index.of .bash_history | |
intitle:index.of .sh_history | |
intitle:"Index of" index.html.bak | |
intitle:"Index of" index.php.bak | |
intitle:"Index of" index.jsp.bak | |
intitle:"Index of" ".htpasswd" htpasswd.bak | |
inurl:backup intitle:index.of inurl:admin | |
"Index of /backup" | |
intitle:"Index of" index.html~ | |
intitle:"Index of" index.php~ |
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt
.
As it is not possible to change the ports used for the standalone
authenticator and I already have a nginx running on port 80/443, I opted to use the webroot
method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com
and example.com
).
For this, I placed config files into etc/letsencrypt/configs
, named after <domain>.conf
. The files are simple:
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge
.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {
#!/bin/bash | |
pushd . | |
dir=$(pwd) | |
cd $2 | |
$1 --preserve-paths --relative-only $(find $dir/$3 -iname "*.gcda") >/dev/null | |
echo "#!/usr/bin/python | |
import json,sys,codecs |
#!/bin/bash | |
# | |
# This version uses September 2017 august stretch image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |