Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

nagaraju11

🎯
Focusing
View GitHub Profile
View hdp-setup.txt
####### Iptables Disable
service iptables status
service iptables stop
chconfig iptables off
###### Edit sshd_config file
file=/etc/ssh/sshd_config
cp -p $file $file.old && awk ' $1=="PermitRootLogin" {$2="yes"} $1=="PasswordAuthentication" {$2="yes"} $1=="#PubkeyAuthentication" {$1="PubkeyAuthentication"} {print} ' $file.old > $file
@nagaraju11
nagaraju11 / psql_useful_stat_queries.sql
Created Oct 5, 2018 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
View psql_useful_stat_queries.sql
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
You can’t perform that action at this time.