Last active
August 8, 2020 04:39
-
-
Save heaversm/3d106e9237b84ba937c179eedfb15d42 to your computer and use it in GitHub Desktop.
Server Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -S localhost:8080 | |
#boots a local php server | |
python -m SimpleHTTPServer | |
#boots a local http server on python 2 | |
python -m http.server | |
#boots a local http server on python 3 | |
sass --watch main.scss main.css | |
#sass watch compile from/to | |
pbcopy < ~/.ssh/id_rsa.pub | |
#copy your ssh keys to clipboard | |
ps -Flww -p THE_PID | |
#get more info on a process in linux | |
lsof -i 8080 | |
#get the processes running on a given port | |
# Deploy CORS-Anywhere with Heroku | |
git clone https://github.com/Rob--W/cors-anywhere.git | |
cd cors-anywhere/ | |
npm install | |
heroku create | |
git push heroku master | |
#issue certbot ssl | |
sudo certbot --apache -d [subdomain].mikeheavers.com | |
#dump mysql db | |
./mysqldump -u root -p [db_name] > [path_to_export/filename].sql | |
#get location of php.ini | |
php -i | grep “Loaded Configuration File” | |
#unzip stuff | |
sudo unzip file.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment