Skip to content

Instantly share code, notes, and snippets.

@mithildeeva
mithildeeva / docker-compose.yml
Created October 22, 2019 11:17
Logspout with ELK stack to forward all docker logs
version: '3.3'
services:
elasticsearch:
image: elasticsearch:1.5.2
ports:
- '9200:9200'
- '9300:9300'
kibana:
image: kibana:4.1.2
@mithildeeva
mithildeeva / .gitconfig
Created May 30, 2019 08:02 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@mithildeeva
mithildeeva / Vim
Last active July 18, 2019 06:46
Vim handy commands
1. Copy/duplicate current line (on the next line)
- In normal mode,
:t.
2. Duplicate line on line 7
- In normal mode,
:t 7
3. Save changed file as sudo which was opened as a user with less access
:w !sudo tee %
1. Difference b/w threads and processes in Linux
https://www.slashroot.in/difference-between-process-and-thread-linux
2. Node & Spring comparison
https://rclayton.silvrback.com/speaking-intelligently-about-java-vs-node-performance
1. Web Development
https://github.com/kamranahmedse/developer-roadmap
2. Front-End (user side)
https://www.breakdown-notes.com/make/load/front_end/true
@mithildeeva
mithildeeva / ImportantCommands.txt
Last active February 14, 2019 07:11
Important commands
1. scp command (SecureCoPy file/directory over ssh)
a. Copy from local to remote server
scp /absolute/path/on/local/to/file.txt <user>@<server-ip>:/absolute/path/to/file.txt
b. Copy from server to local
scp <user>@<server-ip>:/absolute/path/to/file.txt /absolute/path/on/local/to/file.txt
c. Copy directories (recursive)
scp -r <user>@<server-ip>:/absolute/path/to/directory/ /absolute/path/on/local/to/directory/