Skip to content

Instantly share code, notes, and snippets.

View gauthamp10's full-sized avatar
๐Ÿ“–
Learning

Gautham Prakash gauthamp10

๐Ÿ“–
Learning
View GitHub Profile
@gauthamp10
gauthamp10 / ssh-key-copy.md
Created September 29, 2021 18:07
# Copying SSH Key From Root To Another User On Same Machine
@gauthamp10
gauthamp10 / jsonlinesTojson.md
Last active January 26, 2022 10:08
Convert json lines to json

Convert json line to json using sed

sed '1s/^/[/; $!s/$/,/; $s/$/]/' in.json > out.json
@gauthamp10
gauthamp10 / aws-glacier-upload.py
Created April 30, 2021 17:18
Upload files (upto 4Gb) to AWS S3 Glacier
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
# OF ANY KIND, either express or implied. See the License for the specific
@gauthamp10
gauthamp10 / vim-shortcuts.md
Created April 22, 2021 11:00 — forked from tuxfight3r/vim-shortcuts.md
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@gauthamp10
gauthamp10 / .vimrc
Last active May 16, 2021 20:55
My Vim configuration
set nocompatible " be iMproved, required
filetype off " required
" START - Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/Vundle.vim/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle