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
| 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 \ |
| version: '2' | |
| services: | |
| # app with php container | |
| app: | |
| restart: unless-stopped | |
| build: | |
| context: ./ | |
| dockerfile: app.docker | |
| volumes: |
| echo 192.168.33.199 chef-automate.test | sudo tee -a /etc/hosts |
| /* | |
| <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() { |
| # ========== | |
| # Laravel | |
| # ========== | |
| # Laravel folder permissions | |
| sudo chgrp -R www-data storage bootstrap/cache | |
| sudo chmod -R ug+rwx storage bootstrap/cache | |
| # ========== | |
| # SSH |
| #!/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 |
| SELECT | |
| `id`, | |
| `name` | |
| FROM | |
| `stations` | |
| WHERE | |
| ACOS( SIN( RADIANS( `latitude` ) ) * SIN( RADIANS( $fLat ) ) + COS( RADIANS( `latitude` ) ) | |
| * COS( RADIANS( $fLat )) * COS( RADIANS( `longitude` ) - RADIANS( $fLon )) ) * 6380 < 10 | |
| ORDER BY | |
| `distance` |
| <select name="metrics_reminder" class="form-control list-group-item" required> | |
| <option value="never" @if(old('course_reminder', $user->metrics_reminder) == 'never') selected @endif>Never</option> | |
| @foreach(config('anya.metrics_reminder_intervals') as $value) | |
| <option value="{{$value}}" @if(old('course_reminder', $user->metrics_reminder) == $value) selected @endif> | |
| Once in {{$value}} days | |
| </option> | |
| @endforeach | |
| </select> |
| cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" |