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.3' | |
services: | |
mysql-sbase: | |
container_name: mysql | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: root |
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
- Create a file with notepad++ and save as file .bat | |
- Move .bat file to C:\Windows\System32 | |
Done! | |
## Step: | |
- Pass dir of destination to symlink to target varible(target) | |
- Pass dir of folder wanna symlink(dir) | |
- Pass app code(name) | |
Enjoy! | |
## Example: If you wanna symlink spop app to core: |
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
## Install execution script to PC | |
mkdir ~/.scripts | |
mkdir ~/bin | |
vim ~/.scripts/ws | |
# Copy execution script gist to this file | |
install ~/.scripts/ws ~/bin/ws | |
## Add completion | |
vim ~/.scrtipts/ws.bash | |
# Copy completion gist to ws.bash |
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
run_nodeapp() { | |
cd $PROJECT/$1/$2 | |
if [[ $3 == -u ]]; then | |
yarn | |
else | |
yarn dev | |
fi | |
} | |
goto_dir() { |
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
#!/bin/bash | |
_ws_completions() | |
{ | |
local cur prev firstword lastword complete_options complete_words | |
cur=${COMP_WORDS[COMP_CWORD]} | |
prev=${COMP_WORDS[COMP_CWORD-1]} | |
firstword=$(_get_firstword) | |
lastword=$(_get_lastword) |
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
* npm --add-python-to-path='true' --debug install --global windows-build-tools | |
* npm config set msvs_version 2015 | |
* npm i node-sass@latest |
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
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count={number size: example: 8} | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
grep SwapTotal /proc/meminfo | |
// Exp: https://linuxize.com/post/how-to-add-swap-space-on-debian-10/ |
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
sudo addgroup --system docker | |
sudo usermod -aG docker ${USER} |
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
#!/bin/bash | |
# Get postman app | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
#Create a Desktop Entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 |