Skip to content

Instantly share code, notes, and snippets.

View shabayekdes's full-sized avatar
❤️
code. eat. sleep. loop

Esmail Shabayek shabayekdes

❤️
code. eat. sleep. loop
View GitHub Profile
# How to install and run kubernetes locally (Ubuntu)
## 1. Intsall [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
## 2. Intsall [MiniKube](https://minikube.sigs.k8s.io/docs/start/)
## 3. Add Docker to Sudo group:
```bash
# (required) to be able to start minikube
$ sudo groupadd docker
@shabayekdes
shabayekdes / fix_github_https_repo.sh
Created December 2, 2021 22:08 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@shabayekdes
shabayekdes / laravel-permissions.md
Last active November 29, 2022 12:02 — forked from Daniyal-Javani/permissions
Set up File Permissions for Laravel

Local Development

sudo chown -R $USER:www-data .
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache