sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
Possible values for ext-name: | |
bcmath | |
bz2 | |
calendar | |
ctype | |
curl | |
dba | |
dom | |
enchant |
FROM php:7.4-fpm-alpine | |
WORKDIR "/application" | |
# Install essential build tools | |
RUN apk add --no-cache \ | |
git \ | |
yarn \ | |
autoconf \ | |
g++ \ | |
make \ |
So, you're a hobbyist or maybe even a user in a small-scale business capacity and you have some kind of headless Linux (or other *nix) box, maybe it's a VPS or a Raspberry Pi, and you want it to be able to email you with alerts (setting up monitoring is a separate subject!)
I went round in circles with this for a while, because it seemed like such a
NPROC=$(getconf _NPROCESSORS_ONLN) | |
mkdir -p /usr/src/php/ext | |
cd /usr/src/php/ext | |
pecl bundle redis | |
docker-php-ext-configure redis --enable-redis-igbinary --enable-redis-lzf | |
docker-php-ext-install -j${NPROC} redis | |
cd - |
php artisan tinker | |
$tables = DB::select('SHOW TABLES'); | |
$tables_in_database = "Tables_in_".Config::get('database.connections.mysql.database'); | |
DB::statement('SET FOREIGN_KEY_CHECKS=0;'); | |
foreach ($tables as $table) { | |
Schema::drop($table->$tables_in_database); | |
} |
{ | |
"files.autoSave": "onFocusChange", | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "Fira Code SemiBold, Consolas, 'Courier New', monospace", | |
"editor.fontSize": 20, | |
"editor.wordWrap": "wordWrapColumn", | |
"editor.tabSize": 2, | |
"prettier.requireConfig": false, | |
"prettier.semi": false, | |
"editor.codeActionsOnSave": { "source.fixAll": true }, |
// app/Http/Controllers/DashboardController.php | |
<?php | |
namespace App\Http\Controllers; | |
use App\Models\Visitor; | |
use Illuminate\Support\Facades\DB; | |
class DashboardController extends Controller | |
{ |
# Para um novo projeto, crie esta estrutura | |
[dev-user1] $ mkdir projeto | |
[dev-user1] $ cd projeto | |
[dev-user1] $ git init | |
[dev-user1] $ touch README | |
[dev-user1] $ git add . | |
[dev-user1] $ git commit -am "Initial commit" | |
# Crie no servidor um repositório do tipo bare para "guardar" os commits | |
[bare-server1] $ mkdir -p /git/projeto |