Don't defer close on writable files
Scheduling In Go : Part I - OS Scheduler
Scheduling In Go : Part II - Go Scheduler
Scheduling In Go : Part III - Concurrency
| #!/bin/bash | |
| currentFolder=${PWD##*/} | |
| echo -e "$Cyan \n Updating System.. $Color_Off" | |
| sudo apt-get update -y && sudo apt-get upgrade -y | |
| echo -e "$Cyan \n Installing Apache2 $Color_Off" | |
| sudo apt-get install apache2 |
| # ========== | |
| # Laravel | |
| # ========== | |
| # Laravel folder permissions | |
| sudo chgrp -R www-data storage bootstrap/cache | |
| sudo chmod -R ug+rwx storage bootstrap/cache | |
| # ========== | |
| # SSH |
| /* | |
| <a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-token="{{ csrf_token() }}" data-confirm="Are you sure?"> | |
| */ | |
| (function() { |
| echo 192.168.33.199 chef-automate.test | sudo tee -a /etc/hosts |
| version: '2' | |
| services: | |
| # app with php container | |
| app: | |
| restart: unless-stopped | |
| build: | |
| context: ./ | |
| dockerfile: app.docker | |
| volumes: |
| FROM php:7.4-fpm | |
| # Install any needed packages | |
| RUN apt-get update -yqq && \ | |
| apt-get install -yqq --no-install-recommends \ | |
| apt-utils \ | |
| openssl \ | |
| libzip-dev zip unzip \ | |
| git \ | |
| mariadb-client \ |