Skip to content

Instantly share code, notes, and snippets.

View tidalgo22's full-sized avatar
🏠
Working from home

Rheman Tidalgo tidalgo22

🏠
Working from home
View GitHub Profile
@tidalgo22
tidalgo22 / XDebug Setup
Created March 5, 2018 06:31
XDebug Setup
https://gist.github.com/odan/1abe76d373a9cbb15bed
@tidalgo22
tidalgo22 / What is Composer ?
Created March 5, 2018 06:20
Understanding Composer
http://developed.be/2014/08/29/composer-dump-autoload-laravel/
@tidalgo22
tidalgo22 / MySql Commanline
Created March 2, 2018 15:42
MySql not recognized
https://stackoverflow.com/questions/5920136/mysql-is-not-recognised-as-an-internal-or-external-command-operable-program-or-b
@tidalgo22
tidalgo22 / .env.example
Last active April 17, 2018 06:23
Laravel with SMTP Gmail Setup
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD= App password for 2-step verification
MAIL_ENCRYPTION=tls
[email protected]
@tidalgo22
tidalgo22 / Node Server with Https
Created November 28, 2017 01:36
Node Server with Https
var app = require('express')();
var fs = require('fs');
var options = {
key: fs.readFileSync('/etc/nginx/ssl/name.key'),
cert: fs.readFileSync('/etc/nginx/ssl/name.crt'),
ca: fs.readFileSync('/etc/nginx/ssl/name.crt')
};
var server = require('https').Server(options, app);
var io = require('socket.io')(server);
@tidalgo22
tidalgo22 / Noder Server with nginx
Created November 28, 2017 01:34
Noder Server with nginx
Setting up a node server with nginx.
https://medium.com/@utkarsh_verma/configure-nginx-as-a-web-server-and-reverse-proxy-for-nodejs-application-on-aws-ubuntu-16-04-server-872922e21d38
@tidalgo22
tidalgo22 / Port is open, but connection refused
Created October 20, 2017 08:11
firewall - Port seems to be open, but connection refused
The port is running already it can be check through netstat -a.
But openning in browser refuses the connection.
This is due to firewall blocking the port, It needs to be allowed.
Check all port allowed by firewall:
sudo ufw status
Allow a port
sudo ufw allow 8890
https://askubuntu.com/questions/166068/port-seems-to-be-open-but-connection-refused
@tidalgo22
tidalgo22 / Git Commands
Last active April 17, 2018 06:22
Git commands
git clone https://github.com/.....
git add index.html - adding the file for commit.
git status - checks the changes
git commit -m "added index.html"
git push - will sync it to your repository
git pull - pulling down the github files to your working directory.
git reset <file or dir> - reset add
git reset - reset all add
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
https://askubuntu.com/questions/851847/how-to-enable-and-disable-php7-modules-in-linux-server-16-4
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-14-04-server
https://www.rosehosting.com/blog/install-laravel-on-ubuntu-16-04/
How to fix Error: laravel.log could not be opened?
sudo chmod -R 777 storage