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 / React Native Issues & fixes.
Last active September 5, 2017 05:24
React native android running emulator issues.
Well basically the following are issues on running android emulator.
react native commands:
I. react-native run-android
1. issue: Error: Unable to open class file R.java [duplicate] OR Unable to open class file \R.java: Permission denied
fix: Open android studio, close current project and create a new one, re-run react command.
reference: https://stackoverflow.com/questions/3796490/error-unable-to-open-class-file-r-java
2. issue: (Physical device running issue) Unable to load script from assets 'index.android.bundle'....
fix: Access dev menu by shaking the device, goto dev settings, goto debug server host & port for device, add the machine ip and server port e.g 192.168.1.34:8081
3. issue: react native configuration with the default not found "this normally occur once you uninstall a package"
@tidalgo22
tidalgo22 / Frontend Developer Tools
Created September 6, 2017 07:18
Frontend Developer Tools
1. http://chir.ag/projects/name-that-color/#FF0005 - Identifying color name.
@tidalgo22
tidalgo22 / Server node installation in ubuntu 16.04 & 14.04
Last active October 4, 2017 10:32
Installation of latest node.js on ubuntu 16.04 & 14.04
Step 1: Add Nodejs PPA
Node.js is available in two versions, first is current (most recent version) and another is LTS. Select which version you need to install on the system. Then use one of following commands to install PPA on your system. Node.js officially provides these PPA’s.
Use Current Release: At te last update of this tutorial, Node.js 8.0 is the current Node.js release available.
Command:
$ sudo apt-get install python-software-properties
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Use LTS Release : At te last update of this tutorial, Node.js 6.11 is the LTS release available.
Command:
@tidalgo22
tidalgo22 / Iinstall socket.io with laravel 5.4
Created September 9, 2017 02:29
How to install socket.io with laravel 5.4.
1. follow the laravel broadcasting installation. locate the socket.io section.
ref: https://laravel.com/docs/5.4/broadcasting#driver-prerequisites
2. laravel does not include a Socket.IO server implementation.
luckily we have a community driven Socket.IO server is currently maintained at the tlaverdure/laravel-echo-server GitHub repository.
- we need to make sure that the requirements are there.
Laravel 5.3
Node 5.0+
Redis 3+
- incase you an old node is installed follow this instruction https://gist.github.com/tidalgo22/d7ae7fa298247d6e98b349ffd4e3e591
this helps you install latest node and npm in your server.
@tidalgo22
tidalgo22 / Ubuntu Commands
Created September 11, 2017 06:33
Ubuntu Command List
mkdir myfolder - create folder
rm -rf mydir - In the above example, the "mydir" directory, along with all files and directories within that directory, would be deleted with no prompt or message.
sudo kill `sudo lsof -t -i:9001` - kill the running instance on a port.
sudo chmod 770 -r /var/www/subdir - make a folder writeable.
Ubuntu References:
~ -tilde instructs nginx to perform a case-sensitive regular expression match, instead of a straight string comparison.
^ -matches the beginning of the input. For example, ^/photos/.*$ would match paths beginning in '/photos/'. By itself, ^ is a shortcut for all paths (since they all have a beginning).
* -matches all strings.
@tidalgo22
tidalgo22 / HTML SEO Standards
Created September 21, 2017 05:51
Understanding HTML SEO Standards
HTML SEO Standards
Search engines can pick up ranking signals from specific HTML elements. (Here are the most important HTML elements)
 Title tag :
Imagine that you wrote 100 different books but gave them all the same exact title. How would anyone understand that they are all about different topics?
Imagine that you wrote 100 different books, and while they did have different titles, the titles weren’t very descriptive — maybe just a single word or two. Again, how would anyone know, at a glance, what the books were about?
HTML titles have always been and remain the most important HTML signal that search engines use to understand what a page is about.
According to Matt Cutts a former head of web spam team in google. Bad page title will be ignored, and Google will writes its own title from content and links of the page.
 Meta Description:
@tidalgo22
tidalgo22 / Database Management
Created September 25, 2017 05:22
Database Tools and Tutorials.
ERD Tool: https://www.lucidchart.com/
ERD Tutorial: https://www.youtube.com/watch?v=QpdhBUYk7Kk&list=PL5olS7Cifr15TOTk-NofU9oPreMOcBZZM
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
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