Skip to content

Instantly share code, notes, and snippets.

View ayoubjamouhi's full-sized avatar

Ayoub JAMOUHI ayoubjamouhi

View GitHub Profile
@ayoubjamouhi
ayoubjamouhi / top-brew-packages.txt
Created August 19, 2023 10:46 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@ayoubjamouhi
ayoubjamouhi / Fix.md
Created August 1, 2023 13:32 — forked from reytech-dev/Fix.md
ZONE_CONFLICT: 'docker0' already bound to a zone
  1. Check if docker zone exists in firewall-cmd
$ firewall-cmd --get-active-zones
  1. If "docker" zone is available, change interface to docker0 (not persisted)
$ sudo firewall-cmd --zone=docker --change-interface=docker0
  1. If "docker" zone is available, change interface to docker0 (persisted, thanks rbjorklin)
step1. Stop your databases
service mysqld stop
step2. Modify /etc/my.cnf file add "skip-grant-tables"
vi /etc/my.cnf
[mysqld]
skip-grant-tables
step3. Start mysql
https://www.getpostman.com/
First part from https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
rm postman.tar.gz
sudo ln -s /opt/Postman/Postman /usr/bin/postman
But when launching postman from command prompt got an error:
C-b { move the current pane to the previous position
Here are more shortcuts for moving panes around:
C-b } move the current pane to the next position
C-b C-o rotate window ‘up’ (i.e. move all panes)
C-b M-o rotate window ‘down’
C-b ! move the current pane into a new separate
window (‘break pane’)
C-b :move-pane -t :3.2
split window 3's pane 2 and move the current pane there
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:ayoubjamouhi/app.bootleads.net.git
git push -u origin main
cd/Go to the project folder
Setup the virtual environment pipenv install
Activate the virtual environment pipenv shell
Install django pip3 install django
Run the project pipenv run python manage.py runserver
add privileges : GRANT ALL PRIVILEGES ON *.* TO 'tolkien'@'%';
mysql -u user -p -h 127.0.0.1 database < sql.sql
On server A:
$ scp -r /path/to/directory someuser@serverB:/path/to/files/.
The above command will copy the files from serverA to serverB using someuser (a user on serverB). The directory (/path/to/directory) will be copied as a directory to the directory on serverB into the directory /path/to/files/.