This post is a reminder of how to install and run gsutil on Centos 6.6 running python 2.7
I`m a Software and Data enthusiast, this is my personal scratchpad (I forget a lot), who knows it might be of use ..
Tuesday, June 28, 2016
Sunday, June 19, 2016
C++ Input and Output
Since I have a thing about competitive programming like HackerRank and TopCoder, I decide to start blog about it while learning C++ again after 8 years not using it.
I wont explain much unless needed, since the code explains itself
The first one is pretty simple, it starts with input and output
I wont explain much unless needed, since the code explains itself
The first one is pretty simple, it starts with input and output
Thursday, June 16, 2016
Copy File using SSH in Ubuntu 16.04
its just my note on how to copy files between VM, this command can only works when ssh service is already set and running
Sunday, June 12, 2016
Find Active Session and Kill it on PostgreSQL
I happen to encounter a case when I want to drop a database and not allowed by system since there are an active session. I ended up having to restart database and the perform the drop. this is not ideal if there are more than 2 database or its already run on production, but here's how to do it
Restore PostgreSQL Database
Without having to use tools like pgAdmin, you can backup and restore database using console command
Install and Configure Supervisor on Ubuntu 16.04
The following will explain how to install and configure supervisor on Ubuntu
if you have a long running service that you want to activate on linux, say an apache web server, a jupyter notebook service,etc.. then you would want to have that service run and monitored by supervisor
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
It shares some of the same goals of programs like launchd, daemontools, and runit. Unlike some of these programs, it is not meant to be run as a substitute for init as “process id 1”. Instead it is meant to be used to control processes related to a project or a customer, and is meant to start like any other program at boot time.
if you have a long running service that you want to activate on linux, say an apache web server, a jupyter notebook service,etc.. then you would want to have that service run and monitored by supervisor
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
It shares some of the same goals of programs like launchd, daemontools, and runit. Unlike some of these programs, it is not meant to be run as a substitute for init as “process id 1”. Instead it is meant to be used to control processes related to a project or a customer, and is meant to start like any other program at boot time.
Saturday, June 11, 2016
Configure Network on Ubuntu 16.04
This step is to configure network on ubuntu when first installed
Turn off Automatic Updates on Ubuntu 16.04
Automatic updates on Ubuntu is good, but sometimes you want to turn automatic updates off, here's how to do it
Find out Largest directory size in Ubuntu 16.04
This commands will help you to identify which directory has the largest size, the result will be the list of directory and files with its size
...
747 M hue
781 M incubator-zeppelin-0.5.0
798 M zeppelin-0.5.0
...
...
747 M hue
781 M incubator-zeppelin-0.5.0
798 M zeppelin-0.5.0
...
Wednesday, June 8, 2016
Backup PostgreSQL Database
Without having to use tools like pgAdmin, you can backup and restore database using console
Labels:
Backup
,
Database
,
DB
,
Postgre
,
PostgreSQL
Install Logstash on Ubuntu 16.04
Steps to install logstash on ubuntu 16.04
Tuesday, June 7, 2016
Install Elasticsearch in Ubuntu 16.04
Steps to install Elasticsearch on Ubuntu 16.04
Labels:
Big Data
,
Elastic
,
Elasticsearch
,
ELK
,
Ubuntu
Monday, June 6, 2016
Subscribe to:
Posts
(
Atom
)