Skip to content

Instantly share code, notes, and snippets.

View rupeshtiwari's full-sized avatar
🎯
Focusing

Rupesh Tiwari rupeshtiwari

🎯
Focusing
View GitHub Profile
@rupeshtiwari
rupeshtiwari / attach extra volume to EC2.md
Last active September 26, 2023 17:34
attach extra volume to EC2, AWS, Linux, Storage, Mounting Amazon EBS to EC2 Instance, extra volume, attach ebs, aws

Mounting Amazon EFS to EC2 Instance, extra volume, attach ebs, aws

  1. Create new extra EBS volume from AWS console named /dev/xvdf
  2. Attach the new volume to EC2 from AWS Console
  3. Connect to EC2, create a new directory and mount the new extra EBS volume
  • Check all devices attached sudo lsblk -f

  • Determine if file system exist for the new volume sudo file -s /dev/xvdf

  • Create a new file system on EC2 to mount volume mkfs -t xfs /dev/xvdf

    image

@rupeshtiwari
rupeshtiwari / list.txt
Last active July 5, 2023 23:39 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@rupeshtiwari
rupeshtiwari / getting started with fluentbit.md
Last active October 16, 2023 21:25
getting started with fluentbit, fluent, dummy, aws

EC2 instance setup for fluent-bit installation

Step1: Single line install

A simple installation script is provided to be used for most Linux targets. This will always install the most recent version released.

curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh

This is purely a convenience helper and should always be validated prior to use. The recommended secure deployment approach is to follow the instructions below.

Step2: Configure Yum

@aahung
aahung / README.md
Created January 31, 2021 05:49 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that

  1. You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys because it conflicts with cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line)
  2. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
@rupeshtiwari
rupeshtiwari / Working With Git.md
Last active June 19, 2019 19:10
Working with Git

For deleting the remote branch:

git push origin --delete <your_branch>

Override current file with server file

git checkout --theirs package-lock.json

@rupeshtiwari
rupeshtiwari / 100-RxJS Subjects Demystified.md
Last active September 16, 2020 14:34
RxJS Subjects Demystified

Understanding RxJS BehaviorSubject, ReplaySubject and AsyncSubject

What are RxJS subjects and the benefits of using them. How to understand RxJS subjects such that you can apply it in your day to day coding at your own project. Well lets get started.

There are 4 types of RxJS Subjects:

  1. Subject
  2. BehaviorSubject
  3. ReplaySubject
  4. AsyncSubject
@rupeshtiwari
rupeshtiwari / .gitignore
Last active December 7, 2023 01:31
Getting Started with Cordova | Create Your First Android/IOS Application
.vscode/settings.json
@rupeshtiwari
rupeshtiwari / VS Code Extensions For Professional MEAN Stack Development.md
Last active July 9, 2020 19:52
VS Code Extensions For Professional MEAN Stack Development

Install below VsCode Extensions

  • Peacock
  • Angular Language Service
  • ESLint
  • GitLens — Git supercharged
  • Material Icon Theme
  • Prettier - Code formatter
  • Markdown All in One
  • npm (npm support for vscode)
@rupeshtiwari
rupeshtiwari / Desktop or Machine Setup From Scratch for MEAN.md
Last active May 21, 2020 17:58
FullStack developer environment setup Desktop or Machine Setup From Scratch for MEAN

Setting up an box for Full Stack Developer Guide and Tutorial

FullStack developer environment

Install below softwares for Windows Desktop/Laptop

Note: Run all software as administrator.

@rupeshtiwari
rupeshtiwari / function-hoisiting.js
Last active August 13, 2018 18:05
JavaScript Concepts
log();
var log = function(msg) {
alert(msg);
}
/*
* in this case log function is a expression type and log varibale will be hoisted at the top
* and initialized with undefined therefore, we will get
* Uncaught TypeError: log is not a function
*/