This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// executes a single function | |
function single(callback){ | |
callback(); | |
} | |
function b(){ | |
console.log("I'm b"); | |
} | |
function d(){ |
NewerOlder