Skip to content

Instantly share code, notes, and snippets.

View raghavraman's full-sized avatar
🌍
exploring

Raghav Raman raghavraman

🌍
exploring
View GitHub Profile
@raghavraman
raghavraman / setup.sh
Last active April 16, 2023 22:09
Mac Setup commands
#!/bin/bash
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install asdf
brew install asdf
# Install NodeJs with ASDF (18.15.0)
@raghavraman
raghavraman / Dockerfile
Created March 8, 2023 10:35
Docker file
# Selecting base image to run the applicaiton
FROM ruby:2.6.3
# seting up Work directory
WORKDIR /app
# installing packages to build the application
RUN gem install rails bundler
# Copying gem file to build the package
@raghavraman
raghavraman / Pull-request-template.md
Last active November 14, 2023 16:52
Pull Request Template for IRP

About the PR

What are the relevant tickets or links to relevant documentation?

How does this PR address this problem?

Why is it not possible for this PR to be under the "300 new lines" soft limit?

@raghavraman
raghavraman / awardco.js
Last active October 27, 2023 16:36
Scrape Award Co Recogonition
// Filter to recogonition you receieved
// Scroll all the way untill the end of your recogonition / until the recogonition you want to be included in the result.
// Set the maxDate to the date you want the ewview to be collected
// Copy paste this in the console and you will have your recogonition by person copied to your clipboard
// paste it to a json file as needed
const sortObjectByKeys = (object, asc = true) => Object.fromEntries(
Object.entries(object).sort(([k1], [k2]) => k1 < k2 ^ !asc ? -1 : 1),
)

Keybase proof

I hereby claim:

  • I am raghavraman on github.
  • I am raghavraman (https://keybase.io/raghavraman) on keybase.
  • I have a public key ASAJ99YGyUvl5WBJu33EU0rO_zT8pCHsNaW3JSJjPX_d8Qo

To claim this, I am signing this object:

@raghavraman
raghavraman / github-action-cheat-sheet.md
Last active February 3, 2024 05:51
Github Actions Cheat Sheet

General structure

  • Each .yml file is a separate Action
  • Each Action -> can have multiple Jobs (mostly run parallely)
  • Each Job -> can have multiple Steps (Always run Sequentialy)
name: <workflow-name>
on:
@raghavraman
raghavraman / keybindings.json
Last active November 7, 2023 17:35
VS Code Keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToUppercase"
},
@raghavraman
raghavraman / background.js
Last active April 5, 2020 23:41
Dynamic Chrome extension Screen setup
let userLoggedIn = false
function updatePopup(status) {
if (status === userLoggedIn) {
return
}
if (status) {
userLoggedIn = true
chrome.browserAction.setPopup({ popup: 'popup.html' })
} else {
userLoggedIn = false