Skip to content

Instantly share code, notes, and snippets.

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

Duvan Jamid Vargas duvanjamid

🏠
Working from home
View GitHub Profile
@duvanjamid
duvanjamid / hangouts&jenkins.md
Last active May 24, 2018 21:51 — forked from tkhduracell/README.md
Configure Google Hangout notifications on Jenkins

Install plugins

  • instant-messaging plugin
  • Jabber Plugin plugin

Jenkins > Manage Jenkins > Configure System > Jabber Notification

  • Enable Jabber Notification
  • Jabber ID: <[email protected]>
  • Password: <your password>
  • Advanced
  • Server: talk.google.com
@duvanjamid
duvanjamid / nginx.conf
Created October 20, 2017 16:05 — forked from calebwoods/nginx.conf
Sample Nginx config for deployment of Angular.js app
server { listen 80;
server_name example.com;
access_log /var/log/example.com/nginx.access.log;
error_log /var/log/example.com/nginx.error.log;
root /var/www/apps/example.com/public;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
}
# .jsbeautifyrc (not found)

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@duvanjamid
duvanjamid / satak-duja
Created June 13, 2014 07:34
README.md
----------
----------
----------
----------
@duvanjamid
duvanjamid / Regex.java
Created May 10, 2014 08:30
Expesiones Regulares en java
// String con contenido html
String textoHtml="<div><h2>Titulo ejemplo</h2><span>Texto auxiliar</span></div>";
// Patron con expresion regular para etiquetas html
Pattern patron = Pattern.compile("<[^>]>");
Matcher match = patron.matcher(textoHtml);
// Texto plano reemplazando coincidencias por vacio ("")
String textoPlano = match.replaceAll("");
@duvanjamid
duvanjamid / javascript.js
Last active August 29, 2015 14:01
Css spinner animation
$(document).ready(function() {
$('.toggle').click(function() {
$('.spiner').toggleClass('stop');
});
$('.reverse').click(function() {
$('.spiner').toggleClass('inverse');
});
$('.js-mini').click(function() {
$('.spiner').toggleClass('spiner-mini');
});

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: