Skip to content

Instantly share code, notes, and snippets.

View jll90's full-sized avatar

Nicola Luongo jll90

View GitHub Profile
@jll90
jll90 / gist:a72ff1461c9918a2874cf4808f72e73f
Last active June 4, 2016 21:06
import geonames to postgresql
sudo -i -u postgres psql
CREATE DATABASE geonames;
DROP TABLE geoname;
CREATE TABLE geoname (
geonameid int,
name varchar(200),
asciiname varchar(200),
alternatenames varchar(12000),
@jll90
jll90 / install-mysql.sh
Created May 24, 2016 12:52
Remove older version of mysql and install mysql 5.6 - Ubuntu 16.04
#! bin bash
#removes older packages
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
#removes configuration files
sudo rm -rf /var/lib/mysql
@jll90
jll90 / install-ejabberd.sh
Last active October 7, 2018 11:34
Install ejabberd on centos7
#! bin bash
#This script installs a ejabberd on centos7
echo 'Updating packages...'
sudo yum update -y
echo 'Install wget'
sudo yum install wget -y
echo 'Download EPEL'
@jll90
jll90 / callbacks.js
Created January 22, 2016 02:05
Example of JavaScript callbacks.
// executes a single function
function single(callback){
callback();
}
function b(){
console.log("I'm b");
}
function d(){