Skip to content

Instantly share code, notes, and snippets.

View sai-manoj-kumar's full-sized avatar
🌴
On vacation

Sai Manoj Kumar sai-manoj-kumar

🌴
On vacation
View GitHub Profile
@sai-manoj-kumar
sai-manoj-kumar / database_size.csl
Created May 12, 2021 10:38
Find the size of all tables in your Kusto database
// To find the size of all tables in your Kusto database
find in ( database('<your database name>').* ) where 1 == 1
| summarize total = format_bytes(sum(estimate_data_size(*)))
// Similarly for whole Kusto cluster
find in ( cluster('<your cluster name>').database('*').* ) where 1 == 1
| summarize total = format_bytes(sum(estimate_data_size(*)))
@sai-manoj-kumar
sai-manoj-kumar / pwds.tsv
Last active March 9, 2020 12:20 — forked from code-of-kpp/gmail_1.csv
Leaked gmail passwords w/o logins sorted by popularity (at least 11 occurrences)
password count
123456 47817
password 11548
123456789 11133
12345 8088
qwerty 5915
12345678 5248
111111 3514
abc123 3011
123123 2971
@sai-manoj-kumar
sai-manoj-kumar / history
Created April 6, 2014 11:38
History of commands
2118 cd tmp/
2119 ls
2120 mkdir fact
2121 cd fact/
2122 ls
2123 vi main.c
2124 ls
2125 vi main.c
2126 ls
2127 git init
@sai-manoj-kumar
sai-manoj-kumar / git steps
Created April 6, 2014 11:20
Steps to get ready with git
install git(sudo apt-get install git)
Do git configurations (https://gist.github.com/ysaimanojkumar/10004593)
install corkscrew
Generate public-private key pair using "ssh-keygen -t rsa" command
Copy the public key you have generated and paste it in SSH Keys in github
@sai-manoj-kumar
sai-manoj-kumar / git configuration
Created April 6, 2014 11:11
Git Configuration
git config --global user.name "Your Name Here"
git config --global user.email username@email.com
git config --global color.ui true
git config --global core.editor vi
git config --global alias.st status
git config --global alias.df diff
@sai-manoj-kumar
sai-manoj-kumar / config
Last active August 29, 2015 13:58
Configuration for ssh
Host github.com
Hostname ssh.github.com
User git
Port 443
IdentityFile "~/.ssh/github_rsa"
TCPKeepAlive yes
IdentitiesOnly yes
ProxyCommand corkscrew 202.141.80.20 3128 %h %p ~/.ssh/proxyauth
@sai-manoj-kumar
sai-manoj-kumar / git commands
Created December 18, 2011 11:19
git commands to create a git locally and then push it to github.com
git config --global user.name "Your Name"
git config --global user.email uremailid@domain.com
Next steps:
mkdir Test
cd Test
git init
touch README
git add README
git commit -m 'first commit'
@sai-manoj-kumar
sai-manoj-kumar / my first gist
Created September 12, 2011 13:44
Exploring gist
What is the use of the gist file