아래 명령어로 생성하는 nova resource 관련 snippets.
php artisan nova:resource MyResource
#!/bin/bash | |
git clone https://github.com/kornelski/pngquant | |
cd pngquant | |
git checkout -b 2.12.3 | |
sudo yum install libpng-devel -y | |
make | |
sudo make install |
#!/bin/bash | |
function usage { | |
echo "USAGE: $0 param.."; | |
echo -e "\t-s SERVICE: service full path"; | |
echo -e "\t-d DESCRIPTION: service desc"; | |
echo -e "\t-r RUNAS : specify the Unix user/group of processes"; | |
echo -e "\t-p PARAM: param to pass service running"; | |
echo -e "\t-t TARGET: param to pass target(default multi-user)"; | |
## | |
server { | |
listen 80; | |
server_name minio.example.com; | |
# To allow special characters in headers | |
ignore_invalid_headers off; | |
# Allow any size file to be uploaded. | |
# Set to a value such as 1000m; to restrict file size to a specific value | |
client_max_body_size 0; | |
# To disable buffering |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Aws\S3\S3Client; | |
use League\Flysystem\AwsS3v3\AwsS3Adapter; | |
use League\Flysystem\Filesystem; | |
use Storage; |
#!/bin/bash | |
TMP1=/tmp/tmp-black-list | |
NGINX_LOG=/var/log/nginx/error.log | |
grep '.php\|.cfg' ${NGINX_LOG} | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | sort | uniq | awk '{print "deny "$0";"}' > ${TMP1} | |
## copy original block ips file | |
D=$(date '+%Y-%m-%d') |
/var/log/nginx/*.log { | |
daily | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 640 nginx adm | |
sharedscripts | |
postrotate |
## | |
## git config --global core.excludesfile ~/.gitignore | |
## laravel default gitignore | |
/node_modules | |
/public/hot | |
/public/storage | |
/storage/*.key | |
/vendor | |
/nova |
"시스템에 부착된 장치가 작동하지 않습니다." 란 메시지가 나오고 WSL 이 동작 안 함.
#!/bin/bash | |
sudo yum install gcc -y | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make MALLOC=libc |