Skip to content

Instantly share code, notes, and snippets.

View javymarmol's full-sized avatar

Heyner Javier Marmol javymarmol

View GitHub Profile
@javymarmol
javymarmol / centos_send_mail.txt
Created July 11, 2019 17:39
solve "Connection could not be established with host smtp"?
If your SELinux is in enforcing mode, you need to turn on httpd_can_sendmail and httpd_can_network_connect booleans.
You can verify if SELinux status is enforcing by running this command:
$ sestatus
...
Current mode: enforcing
...
Check status of httpd sendmail and network connect booleans:
@javymarmol
javymarmol / intent_map_android.java
Created December 31, 2019 03:32
Intent para abrir mapa en android
//Con latitude y longitude
Uri gmmIntentUri = Uri.parse("geo:0,0" + "?q=" + trayecto.getLatitude() + "," + trayecto.getLongitude());
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
// Con dirección
Uri gmmIntentUri = Uri.parse("geo:0,0" + "?q=" + trayecto.getAddress());
@javymarmol
javymarmol / .eslintrc
Created February 10, 2020 14:30
configuracion eslint 2019 react
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb"],
"globals": {
"document": false,
"escape": false,
@javymarmol
javymarmol / .gitignore
Last active February 10, 2020 14:40
gitignore for React.js
# Created by .ignore support plugin (hsz.mobi)
### Example user template template
### Example user template
# IntelliJ project files
.idea
*.iml
out
gen
### Node template