Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
[ | |
{ | |
"province": "اردبیل", | |
"cities": [ | |
"اردبیل", | |
"اصلاندوز", | |
"آبی بیگلو", | |
"بیله سوار", | |
"پارس آباد", | |
"تازه کند", |
module.exports = { | |
/** | |
* Print Width | |
* https://prettier.io/docs/en/options.html#print-width | |
* | |
* Specify the line length that the printer will wrap on. | |
* | |
* printWidth: <int> | |
* default: 80 | |
*/ |
This is a simple guide for myself about how to replicate my current eOS setup if I ever need to. These are my themes, customazations and tweaks to the OS, categorized and clearly written down for future me if he ever needs it.
Always update when installing an new OS.
(Archlinux in my case)
Reset all settings and extensions. Like a fresh and clean VSCode installation.
~/.vscode-oss
folder and the ~/.config/Code - OSS/
folder
~
is a shorthand for your user folder/home/username
but should work on all unix systems
WARNING: This will remove all your settings and installed extensions without any prompt
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)
Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:
Up Arrow
: Will show your last commandDown Arrow
: Will show your next commandTab
: Will auto-complete your commandCtrl + L
: Will clear the screen