Simple overview of use/purpose.
An in-depth paragraph about your project and overview of use.
| #!/bin/bash | |
| # Shell script to backup MySql database | |
| # To backup Nysql databases file to /backup dir and later pick up by your | |
| # script. You can skip few databases from backup too. | |
| # For more info please see (Installation info): | |
| # http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html | |
| # Last updated: Aug - 2005 | |
| # -------------------------------------------------------------------- | |
| # This is a free shell script under GNU GPL version 2.0 or above | |
| # Copyright (C) 2004, 2005 nixCraft project |
| from django import template | |
| register = template.Library() | |
| @register.filter | |
| def cool_number(value, num_decimals=2): | |
| """ | |
| Django template filter to convert regular numbers to a | |
| cool format (ie: 2K, 434.4K, 33M...) |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
| package xmpp.client.example; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.Collection; | |
| import org.jivesoftware.smack.AbstractXMPPConnection; | |
| import org.jivesoftware.smack.XMPPException; | |
| import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; | |
| import org.jivesoftware.smack.SmackException.NotConnectedException; |