wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
mv MailHog_linux_amd64 mailhog
chmod +x mailhog
sudo vi /etc/systemd/system/mailhog.service
https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ | |
http://matthieukeller.com/2016/12/lets-encrypt-certificate-for-offline-servers-with-ovh-dns.html | |
https://ungeek.fr/letsencrypt-api-ovh/ | |
https://certbot.eff.org/docs/using.html#certbot-command-line-options | |
https://github.com/certbot/certbot | |
https://github.com/antoiner77/letsencrypt.sh-ovh | |
/etc/letsencrypt/configs/\*.domain.xxx.conf | |
--------------------------------------------------------------------------------------------------- |
# Using edge-git ensures we're always pulling the latest | |
# You can lock into a specific version using the *-git tags | |
# on https://hub.docker.com/_/docker/ | |
image: docker:edge-git | |
services: | |
- docker:dind | |
# If you only need compose in a specific step definitely put this | |
# only in that step so it's not executed unnecessarily | |
before_script: |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use UserAgentParser\Exception\NoResultFoundException; | |
use UserAgentParser\Provider\WhichBrowser; | |
/** | |
* Class DeviceDetect |
<?php | |
namespace Deployer; | |
require 'recipe/laravel.php'; | |
require 'vendor/deployer/recipes/local.php'; | |
require 'vendor/deployer/recipes/rsync.php'; | |
require 'vendor/deployer/recipes/npm.php'; | |
// Configuration | |
set('ssh_type', 'native'); |
sudo chown -R $(whoami) /usr/local/Cellar | |
sudo chown -R $(whoami) /usr/local/Homebrew | |
sudo chown -R $(whoami) /usr/local/var/homebrew | |
sudo chown -R $(whoami) ${HOME}/Library/Caches/Homebrew | |
sudo chown -R $(whoami) ${HOME}/Library/Logs/Homebrew | |
sudo chown -R $(whoami) /usr/local/etc | |
sudo chown -R $(whoami) /usr/local/opt | |
sudo chown -R $(whoami) /usr/local/bin | |
sudo chown -R $(whoami) /usr/local/var | |
sudo chown -R $(whoami) /usr/local/share/man/man1 |
using Microsoft.Extensions.Logging; | |
using Moq; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Xunit; | |
namespace Knaap.Utilties | |
{ |
#!/usr/bin/env bash | |
FILE_PATH="${1}" | |
PHPSPEC_PATH="bin/phpspec" | |
if [[ "${FILE_PATH}" == "" ]]; then | |
echo "File path missing" | |
exit 1 |
# Sample Nginx config with sane caching settings for modern web development | |
# | |
# Motivation: | |
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
# and juicy version of your assets available. | |
# At some point, however, you want to show your work to testers, your boss or your client. | |
# After you implemented and deployed their feedback, they reload the testing page – and report | |
# the exact same issues as before! What happened? Of course, they did not have developer tools | |
# open, and of course, they did not empty their caches before navigating to your site. |