Skip to content

Instantly share code, notes, and snippets.

View Mohamed-Ghareeb's full-sized avatar

Mohamed Ghareeb Mohamed-Ghareeb

View GitHub Profile
@Mohamed-Ghareeb
Mohamed-Ghareeb / README.md
Created September 8, 2024 21:22 — forked from moaalaa/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).

Test SSH key:

# laravel Aliases
alias migrate='php artisan migrate'
alias rollback='php artisan migrate:rollback'
alias mfseed='php artisan migrate:fresh --seed'
alias seed='php artisan db:seed'
alias mfresh='php artisan migrate:fresh'
alias a='php artisan'
#!/bin/sh
username=$1
version=${2:-'8.1'}
ownership=${3:-'test'}
dir=${4:-'public'}
domain=$username.$ownership
root="/var/www/$username/$dir"
parent="/var/www/$username"
## put the options in /etc/mysql/my.cnf file
-----------------------------------------------
sudo nano /etc/mysql/my.cnf && sudo service mysql restart
[mysqld]
innodb_buffer_pool_size = 4G
innodb_log_buffer_size = 256M
## Install Mysql & phpmyadmin
------------------------------
sudo apt install unzip -y
sudo wget -O /usr/share/phpmyadmin.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip && sudo unzip /usr/share/phpmyadmin.zip -d /usr/share/ && sudo mv /usr/share/phpMyAdmin-5.2.1-all-languages /usr/share/phpmyadmin && sudo rm /usr/share/phpmyadmin.zip
sudo apt install mysql-server -y