Skip to content

Instantly share code, notes, and snippets.

View shivanshthapliyal's full-sized avatar
🏠
Working from home

Shivansh Thapliyal shivanshthapliyal

🏠
Working from home
View GitHub Profile
@shivanshthapliyal
shivanshthapliyal / reminderSheet.js
Last active March 28, 2022 12:12
AppScript to send reminders from a Google Sheet based on a timeframe.
/* @Maintainer Shivansh Thapliyal
** AppScript to send reminders from a Google Sheet based on a timeframe.
**/
// The event handler triggered when opening the spreadsheet. Adds a new Reminders menu to menu bar.
function onOpen(e) {
// Add a custom menu to the spreadsheet.
SpreadsheetApp.getUi() // Or DocumentApp, SlidesApp, or FormApp.
.createMenu('Sheet1')
.addItem('Send Mail','reminder')
@shivanshthapliyal
shivanshthapliyal / helm-essentials.md
Last active August 1, 2021 05:48
Helm - K8s packmanager

Helm - K8s packmanager

Intro

Helm is a Kubernetes package manager that deploys helm charts, collections of pre-configured Kubernetes application resources.

A chart is a set of Kubernetes yaml manifests packaged together for easy manipulation.

Charts are grouped in online collections called repositories.

Repositories have their names and URLs, making the charts easy to search for, download, and install.

@shivanshthapliyal
shivanshthapliyal / docker-essentials.md
Last active November 23, 2022 21:45
Docker Essentials

Docker Essentials

👤 Shivansh Thapliyal
⭐ Star this Gist

(Photo by Dominik Lückmann)

Contents

🐍🐍🐍🐍🐍🐍🐍🐍🐍

Python Essentials

🐍🐍🐍🐍🐍🐍🐍🐍🐍

Ubuntu 18.04+

Install Python3

Install Python3 Pip

@shivanshthapliyal
shivanshthapliyal / jenkins-essentials.md
Last active September 3, 2020 11:25
Jenkins Essentials

Jenkins Essentials

👤 Shivansh Thapliyal

Contents

Installation

CentOS 7

@shivanshthapliyal
shivanshthapliyal / editing-remote-files-using-sublime.md
Last active April 4, 2020 04:45
Editing Files Remotely via SSH on SublimeText 3

Editing Files Remotely via SSH on SublimeText 3

  • On local workstation: On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub

  • On local workstation: Add RemoteForward 52698 127.0.0.1:52698 to your .ssh/config file, or

    ssh -R 52698:localhost:52698 user@host
    
  • On remote server:

@shivanshthapliyal
shivanshthapliyal / ansible-essentials.md
Last active April 12, 2020 10:54
Ansible Essentials

Ansible Essentials

Author: Shivansh Thapliyal

Contents

Installation

Amazon Linux 2

sudo su

AWS-S3


Experimenting with the S3 object content types.

Goto Properties -> Metadata of S3 Object -> Add metadata -> Select content type

  • application/pdf -> to render the pdf in the browser
  • application/pdfContent -> to download the file

Header example: