Skip to content

Instantly share code, notes, and snippets.

View pringshia's full-sized avatar
🎯
Focusing

Pratik pringshia

🎯
Focusing
View GitHub Profile
alias v='f -e vim'
alias u='cd .. && l'
alias l='pwd && ls -Glap'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias gh='git log --pretty=format:"%Cred%h%Creset %ad | %Cgreen%s%Creset%C(yellow)%d%Creset [%an]" --graph --date=short --all'
# DOTFILES
name,ring,quadrant,isNew,description
Four key metrics,Adopt,Techniques,FALSE,"<p>To measure software delivery performance, more and more organizations are defaulting to the <strong>four key metrics</strong> as defined by the <a href=""https://www.devops-research.com/"">DORA research</a> program: change lead time, deployment frequency, mean time to restore (MTTR) and change fail percentage. This research and its statistical analysis have shown a clear link between high-delivery performance and these metrics; they provide a great leading indicator for how a delivery organization as a whole is doing.</p>
<p>We're still big proponents of these metrics, but we've also learned some lessons. We're still observing misguided approaches with tools that help teams measure these metrics based purely on their continuous delivery (CD) pipelines. In particular when it comes to the stability metrics (MTTR and change fail percentage), CD pipeline data alone doesn't provide enough information to determine what a deployment fa
@pringshia
pringshia / embeddable-app-components
Last active May 21, 2021 18:47
Turning a create-react-app project into an embeddable sandboxed component
1. `npx create-react-app embeddable-app`
2. Install a few packages:
```
npm install --save-dev react-frame-component \
@babel/core \
@babel/preset-env \
@babel/preset-react \
babel-loader base64-inline-loader css-loader style-loader \
webpack webpack-cli
```
@pringshia
pringshia / twitter.js
Last active May 9, 2022 10:17
"Enhanced" Twitter script for Tampermonkey
// ==UserScript==
// @name "Enhanced" Twitter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove tweets shown because of a follower's likes or follow. Dim RTs.
// @author You
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
@pringshia
pringshia / tictactoe.js
Last active July 22, 2018 00:52
Tic Tac Toe Game
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const initialGameState = {
board: [[0, 0, 0], [0, 0, 0], [0, 0, 0]],
currentPlayer: "X"