This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "cmd+[Semicolon]", | |
"command": "workbench.action.terminal.new", | |
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile" | |
}, | |
{ | |
"key": "ctrl+shift+`", | |
"command": "-workbench.action.terminal.new", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
# MySQL Database | |
mysql: | |
image: mysql:8.0 | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"auto_complete": true, | |
"auto_complete_triggers": [], | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 17, | |
"highlight_line": true, | |
"ignored_packages": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.0-apache | |
WORKDIR /var/www | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV APACHE_DOCUMENT_ROOT="/var/www/public" | |
RUN \ | |
apt-get update -y && \ | |
apt-get install -y --no-install-recommends curl git zip unzip libzip-dev && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = [ | |
'a' => [ | |
'b' => 'Hello', | |
], | |
]; | |
$b = [ | |
'a' => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = [ | |
'a' => 'Hello', | |
'c' => 'd', | |
]; | |
$b = [ | |
'a' => 'Goodbye', | |
'c' => 'd', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original: https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file | |
source .env | |
export $(cut -d= -f1 .env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gems | |
export PATH="/usr/local/lib/ruby/gems/2.6.0/bin:$PATH" | |
# Composer | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
# PHP 7.1 | |
#export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
#export PATH="/usr/local/opt/[email protected]/sbin:$PATH" | |
## brew unlink php && brew link [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo -e "\\e[32mWait...\\e[0m" | |
docker network create -d bridge db || true | |
echo -e "\\e[32mDone! db network created\\e[0m" | |
echo -e "\\e[32mWait...\\e[0m" | |
docker run -d -p 3306:3306 --name mysql --restart always \ | |
--network=db \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo -e "\\e[32mWait...\\e[0m" | |
docker network create -d bridge redis || true | |
echo -e "\\e[32mDone! redis network created\\e[0m" | |
echo -e "\\e[32mWait...\\e[0m" | |
docker run -d -p 6379:6379 --name redis --restart always \ | |
--network=redis \ |
NewerOlder