Create supervisor config file for laravel
nano /etc/supervisor/conf.d/laravel-worker.conflaravel-worker.conf
| # Automatic nginx virtual subdomains with sub-folders or sub-directories | |
| # | |
| # Since the original source where I found this code is now offline, I have decided to mirror it here. | |
| # All credit goes to: http://web.archive.org/web/20150307193208/http://www.messaliberty.com/2010/10/automatic-nginx-virtual-subdomains-with-sub-folders-or-sub-directories | |
| # | |
| # Description: In my web root directory I wanted create a folder called photos, and another called | |
| # music using a sftp program. Without manually going back to the config file or to the shell I like to | |
| # be able to access them at photos.nginxdomain.com and music.nginxdomain.com. That is what this config does. | |
| # Redirect visitors from http://nginxdomain.com/ to http://www.nginxdomain.com/ |
| stages: | |
| - test | |
| # Variables: these have to match | |
| # the .env.example credentials in your Laravel app | |
| # use the default homestead/secret combination, since | |
| # that database gets created in the edbizarro/gitlab-ci-pipeline-php:7.1 | |
| # docker image. | |
| variables: | |
| MYSQL_ROOT_PASSWORD: root |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class Transactional | |
| { | |
| public function handle($request, Closure $next) | |
| { |
| lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 |
| #!/usr/bin/env bash | |
| set -e | |
| [ -z "$DEBUG" ] || set -x; | |
| usage() { | |
| echo "$0 <repo> <tag> [<release name>] [-- <asset>...]" >&2; | |
| } | |
| if [ "$1" = "-h" -o "$1" = "--help" ]; then |
| outputDir=/tmp/screenshots/framed | |
| mkdir -p ${outputDir} | |
| ########## | |
| # iPhone # | |
| ########## | |
| padPath=/tmp/iphone-pad.png | |
| convert -size 1125x185 xc:#e65562 ${padPath} | |
| for filePath in $(find /tmp/screenshots/ | grep iPhone | grep -v framed) ; do |
| #!/bin/bash | |
| # ===> Set these variables first | |
| branch="$GIT_BRANCH" | |
| # Example: "Jaskaranbir/MyRepo" | |
| repo_slug="$TRAVIS_REPO_SLUG" | |
| token="$GITHUB_TOKEN" | |
| version="$TRAVIS_TAG" | |
| # An automatic changelog generator |
| #!/usr/bin/env python3 | |
| # Joonas Kuorilehto 2013 | |
| # This script is Public Domain. | |
| import csv | |
| import subprocess | |
| import pipes | |
| from datetime import datetime | |
| import smtplib |