This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name ip.domain.tld; | |
add_header Content-Type text/plain; | |
return 200 $remote_addr; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE TEMPLATE (within server block): | |
# ------------------------------------------------------------------------------ | |
# include ssl_params; | |
# ssl_certificate /root/.acme.sh/domain.com/fullchain.cer; | |
# ssl_certificate_key /root/.acme.sh/domain.com/domain.com.key; | |
# ssl_trusted_certificate /root/.acme.sh/domain.com/fullchain.cer; | |
# ------------------------------------------------------------------------------ | |
# SOURCE: https://gist.github.com/plentz/6737338 | |
ssl on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:local_npm] | |
command=/Users/USER/.nvm/versions/node/v6.3.1/bin/local-npm | |
directory=/Users/USER/Tools/local-npm | |
environment=PATH="/Users/USER/.nvm/versions/node/v6.3.1/bin:%(ENV_PATH)s" | |
user=USER | |
autostart=true | |
autorestart=true | |
stderr_logfile=syslog | |
stdout_logfile=syslog | |
process_name=%(program_name)s_%(process_num)02d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install php7.0-cli php7.0-fpm php7.0-curl php7.0-mbstring php7.0-mysql php7.0-xml php7.0-zip php7.0-gd -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::bucket.com/*" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local phpunit | |
phpunit() { | |
if [ -f "./vendor/bin/phpunit" ]; then | |
php ./vendor/bin/phpunit "$@"; | |
else | |
echo "Unable to locate phpunit in ./vendor/bin"; | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:gogs] | |
directory=/home/git/go/src/github.com/gogits/gogs/ | |
command=/home/git/go/src/github.com/gogits/gogs/gogs web | |
autostart=true | |
autorestart=true | |
startsecs=10 | |
stdout_logfile=/var/log/gogs/stdout.log | |
stdout_logfile_maxbytes=1MB | |
stdout_logfile_backups=10 | |
stdout_capture_maxbytes=1MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
\DB::enableQueryLog(); | |
// Code that triggers DB queries (User::create(), User::with('relation')->get(), etc) | |
$pdo = \DB::getPdo(); | |
$queries = collect(\DB::getQueryLog())->map(function($log) use ($pdo) { | |
$query = $log['query']; | |
foreach($log['bindings'] as $binding) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ "$(uname)" == "Darwin" ]; then | |
echo -e "\n# Installing dependencies\n" | |
brew install imagemagick | |
brew install ffmpeg | |
echo -e "\n# Installing lolcommits\n" | |
sudo gem install lolcommits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git bundle create ../"${PWD##*/}".bundle --all |