Thanks to antville.org
Friday, 10. November 2017
apache docker container issues

If apache docker container does not start then make these changes...

vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
fs.file-max = 50000000

Reboot or restart service:
sysctl -p

... Link (0 comments) ... Comment


Thursday, 26. October 2017
Install aws client on centos

If pip is not installed, then the following command will not work

pip install awscli

We need to install pip from EPEL like this..

yum install epel-release
yum install python-pip


remove quotes from mysql dump file
cat merged.txt | tr -d \'\" > mergedx.txt

... Link (0 comments) ... Comment


Monday, 9. October 2017
Managing Amazon keys

Use this command to convert private key to public key.

ssh-keygen -y -f dec15a.pem > dec15a.pub

Now upload the new public key to list of keys on Amazon so that you can connect to your instances in that region using the same pem key.

... Link (0 comments) ... Comment


Wednesday, 6. September 2017
percona utility

We can re-create mysql users using the percona utility.

wget percona.com/get/pt-show-grants

chmod 777 pt-show-grants

./pt-show-grants

... Link (0 comments) ... Comment


Thursday, 6. July 2017
mail merge separate file per record

Microsoft Word has an excellent feature called Mail-Merge. If the query returns more than one record (say 4 for the sake of the example), then the resulting Word file has multiple copies of the document merged together in one file. It is possible to have Word create a seperate file for each record using this add-on.

www.gmayor.com

... Link (0 comments) ... Comment


Sunday, 28. May 2017
find dead processes

The 8th column of ps aux command will list the status of the process.

ps aux | awk '{if ($8 ~ "D") print $0}'

Here is a list of the various process statuses and what they mean:

D – Uninterruptible sleep (usually a critical system process, a process that cannot be killed without rebooting)
R – Running
S – Interruptible sleep (waiting for an event to complete)
T – Stopped
Z – Defunct (“zombie”) process

... Link (0 comments) ... Comment


Wednesday, 10. May 2017
Amazon Web Services

Here are some of the important Amazon products to use.

cloudTrail + cloudWatch + ES
Image Recognition
DMS
Route53
EC2
Redshift + ElasticCache + Spectrum
S3 + Glacier
Lambda + API Gateway + dynamoDB

... Link (0 comments) ... Comment


Saturday, 14. January 2017
Self signed security certificate

www.thegeekstuff.com

openssl genrsa -out 34.195.94.88.key 1024

openssl req -new -key 34.195.94.88.key -out 34.195.94.88.csr

echo subjectAltName = IP:34.197.71.213 > extfile.cnf

openssl x509 -extfile extfile.cnf -req -days 365 -in 34.197.71.213.csr -signkey 34.197.71.213.key -out 34.197.71.213.crt

/srv/docker/gitlab/gitlab/certs

-rw-r--r-- 1 root root 749 Jan 14 11:05 34.195.94.88.crt
-rw-r--r-- 1 root root 599 Jan 14 11:05 34.195.94.88.csr
-rw-r--r-- 1 root root 887 Jan 14 11:04 34.195.94.88.key

... Link (0 comments) ... Comment


Wednesday, 23. November 2016
docker and aws

Before starting docker daemon, add the aws credentials.

vi /etc/init/docker.override

env AWS_ACCESS_KEY_ID=
env AWS_SECRET_ACCESS_KEY=

... Link (0 comments) ... Comment


Sunday, 30. October 2016
Turn off Windows Updates in Windows 10

There is no option to turn off Windows Updates in Windows 10, as it used to be with earlier versions of Windows. Here is work-around...
Control Panel > Administrative Tools, you can access Services. In the Services window, scroll down to Windows Update and turn off the process by right-clicking on the process, click on Properties and select Disabled.

... Link (0 comments) ... Comment


Online for 5567 days
Last modified: 11/10/17 3:00 PM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
November 2017
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930
October
Recent updates
apache docker container issues If
apache docker container does not start then make these changes......
by shantanuo (11/10/17 3:00 PM)
Install aws client on centos
If pip is not installed, then the following command will...
by shantanuo (10/26/17 9:51 AM)
Managing Amazon keys Use this
command to convert private key to public key. ssh-keygen -y...
by shantanuo (10/9/17 7:04 AM)
percona utility We can re-create
mysql users using the percona utility. wget percona.com/get/pt-show-grants chmod 777...
by shantanuo (9/6/17 8:22 AM)
mail merge separate file per
record Microsoft Word has an excellent feature called Mail-Merge. If...
by shantanuo (7/6/17 12:09 PM)
find dead processes The 8th
column of ps aux command will list the status of...
by shantanuo (5/28/17 7:39 AM)
Amazon Web Services Here are
some of the important Amazon products to use. cloudTrail...
by shantanuo (5/10/17 11:35 AM)
Self signed security certificate http://www.thegeekstuff.com/2009/07/linux-apache-mod-ssl-generate-key-csr-crt-file/
openssl genrsa -out 34.195.94.88.key 1024 openssl req -new -key 34.195.94.88.key...
by shantanuo (1/16/17 8:02 AM)
docker and aws Before starting
docker daemon, add the aws credentials. vi /etc/init/docker.override env AWS_ACCESS_KEY_ID=...
by shantanuo (11/23/16 3:01 PM)
Turn off Windows Updates in
Windows 10 There is no option to turn off Windows...
by shantanuo (10/30/16 2:43 PM)
RSS extension for chrome RSS
Subscription Extension (by Google) is a must have chrome extension...
by shantanuo (7/9/16 7:28 AM)
use putty for presentation Config
- Change settings... - Window - Colours - Use system...
by shantanuo (5/23/16 1:26 PM)
docker command examples # options
for running docker docker run -d --name abcd2 -p 23:23...
by shantanuo (5/21/16 11:04 AM)
start with docker # create
a docker file vi dockerfile COPY php.ini /usr/local/etc/php/ FROM php:5.6-apache...
by shantanuo (5/21/16 8:10 AM)
Start 2 containers at once
Here is how you can start neo4j as well as...
by shantanuo (5/21/16 7:29 AM)
linguistics using Python These are
the 4 libraries apart from standard library nltk are useful...
by shantanuo (2/9/16 4:46 PM)
Aurora Amazon rates The cost
of Aurora hosting per hour. db.r3.large $0.290 (0.24 mysql) db.r3.xlarge...
by shantanuo (1/26/16 3:06 PM)
connect to AWS It is
possible to use password to connect to AWS 1) change...
by shantanuo (1/25/16 11:17 AM)
Install percona extra backup tool
innobackupex Steps to install innobackupex on Ubuntu: $ apt-key adv...
by shantanuo (9/28/15 8:24 AM)
Backup mysql data using innobackup
BACKUP innobackupex --user=USERNAME --password=PASSWORD --no-timestamp /data/backups/new_backup
by shantanuo (9/28/15 8:09 AM)
Tuning MySQL Getting the shell
script: wget https://launchpadlibrarian.net/78745738/tuning-primer.sh Running: sh tuning-primer.sh
by shantanuo (9/4/15 4:34 PM)
convert a rpm to deb
Here are simple steps to convert a rpm package to...
by shantanuo (9/1/15 3:28 PM)
upgrade ubuntu Upgrade from 14.04
to 15.04 is a 2 step journey. sudo nano /etc/update-manager/release-upgrades...
by shantanuo (8/10/15 1:10 PM)
Libre office on centOS Here
is how to install Libre office on centOS 64 bit...
by shantanuo (7/7/15 8:02 AM)

RSS feed

Made with Antville
Helma Object Publisher