Skip to content

Instantly share code, notes, and snippets.

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
## 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
run_nodeapp() {
cd $PROJECT/$1/$2
if [[ $3 == -u ]]; then
yarn
else
yarn dev
fi
}
goto_dir() {
#!/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)
* npm --add-python-to-path='true' --debug install --global windows-build-tools
* npm config set msvs_version 2015
* npm i node-sass@latest
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/
sudo addgroup --system docker
sudo usermod -aG docker ${USER}
#!/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