Installing docker and couchbase on CentOS 7

Installing docker on CentOS 7 sudo yum install docker sudo systemctl enable docker sudo systemctl start docker Install the docker image: sudo docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase and open the configuration wizard http://localhost:8091 to enable your docker container on boot, find…

Auto generate requirements.txt for your python3 and python2 projects

I noticed when I used pip freeze it would output way more than I needed for requirements on my smaller python projects. After some looking around I found pipreqs in pip pireqs can be installed using pip like so: 1.) pip install pipreqs 1.) python3 -m pip install pireqs 2.…

Restoring mssql .bak file Linux mssql server

To restore a mssql database backup to a linux host, using default microsoft install locations: /opt/mssql-tools/bin/sqlcmd -S hostname -U user -P Password! -Q "RESTORE DATABASE [mydatabase] FROM DISK = N'/tmp/backupStandard.bak' WITH FILE = 1, NOUNLOAD, REPLACE, NORECOVERY, STATS = 5" If you see an error…

Google Vision API Image detection 101

We're handling 200,000 images from customers so far, keeping the peace can be tough. User uploaded content is always questionable, and being a closed network I'd like to keep irritated customers to a minimum. Google Vision API allows you to filter out the bad images systematically. I'm just getting…

Installing MS-SQL on CentOS 7

This setup is using an instance within Google Cloud Platform's Compute Engine, but it should work about anywhere running CentOS 7+. I added this here because I needed to try mssql on Centos, an unsupported distro. Other howto's online I found did not work, or did not completely set it…