(credit: @tomo_e ใใ)
- Sho Miyamoto / @webseals
- ๆฐๅ 2 ๅนด็ฎ
- ใฆใงใใใผใ
| #!/bin/bash | |
| PARAMATER="laravel-env" | |
| REGION="eu-central-1" | |
| WEB_DIR="/var/www/laravel" | |
| WEB_USER="www-data" | |
| # Get parameters and put it into .env file inside application root | |
| aws ssm get-parameter --with-decryption --name $PARAMATER --region $REGION --query Parameter.Value | sed -e 's/^"//' -e 's/"$//' -e 's/\\n/\n/g' -e 's/\\//g' > $WEB_DIR/.env | 
| # Make zsh start INSTANTLY with this one weird trick. | |
| # | |
| # https://asciinema.org/a/274255 | |
| # | |
| # HOW TO USE | |
| # | |
| # 1. Download this script. | |
| # | |
| # curl -fsSL -o ~/instant-zsh.zsh https://gist.github.com/romkatv/8b318a610dc302bdbe1487bb1847ad99/raw | |
| # | 
| ; if you're using the starter bundle file `docker/php/php-fpm.d/docker.conf` | |
| [global] | |
| daemonize = no | |
| pid = run/php-fpm.pid | |
| [www] | |
| listen = /usr/local/var/run/php-fpm.sock | |
| listen.owner = www-data | |
| listen.group = www-data | |
| listen.mode = 0660 | 
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node to find it, or use it directly in the command:
| /* | |
| href | |
| โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| origin โ | |
| โโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ โ | |
| โ authority โ | |
| โ โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ | |
| โ โ host resource | |
| โ โ โโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโดโโโโโโโโโโโโฌโโโโโโโโ | |
| โ โ hostname โ pathname โ โ | 
| <?php | |
| if (! function_exists('take')) { | |
| /** | |
| * Run functions consecutively by piping through the result of one | |
| * into the next. | |
| * | |
| * @param mixed $value A value | |
| * | |
| * @return object | |
| */ |