Skip to content

Instantly share code, notes, and snippets.

View PezCoder's full-sized avatar

Rahul Gupta PezCoder

View GitHub Profile
@PezCoder
PezCoder / install-ripgrep.sh
Created June 3, 2020 21:28
Install ripgrep using homebrew
#!/bin/bash
set -e
# Utility functions
## For ease of iterative experimentation
doo () {
$@
# echo $@
@PezCoder
PezCoder / install-alacritty.sh
Created May 17, 2020 19:50
Setup alacritty for mac
#!/bin/bash
set -e
# Utility functions
## For ease of iterative experimentation
doo () {
$@
# echo $@
@PezCoder
PezCoder / alacritty.yml
Last active January 4, 2022 06:14
Sample alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Setup term for programs to be able to use it
env:
TERM: alacritty
window:
# Spread additional padding evenly around the terminal content.
dynamic_padding: true
@PezCoder
PezCoder / upload-source-maps-to-sentry.js
Created November 27, 2019 07:40
Upload source maps to sentry
// Credit: https://github.com/supriya-raj
var spawn = require('child_process').spawnSync;
var sentryHost, sentryAuthToken, sentryProjectName, sentryOrg, release;
/*
Change based on your requirement:
sourceMapsPath: relative path to the folder that contains your minified scripts & source maps
jsUrlPrefix: ~ (tilde) -> Acts as your domain. Ex: if the source maps are hosted on domain.com/js/file.js.map
this should be '~/js'
release: source maps will be pushed under this release name
@PezCoder
PezCoder / Gulpfile.js
Created November 27, 2019 07:12
Generating source maps with Gulp, Browserify, Uglify & Babel
var sourcemaps = require('gulp-sourcemaps');
browserify(path, {
paths: ['./node_modules'],
// Enables source maps
debug: true,
})
// Any babel config may come here
// ---
@PezCoder
PezCoder / sentry-issue-json.json
Created November 7, 2019 06:18
A sample Sentry Issue JSON
{
"id":"4fce5983775e4d62963cdd5e9b5a48ce",
"project":16,
"release":"39b96dca5c0dd214927b70fb0416b8b141dab05d",
"dist":null,
"platform":"javascript",
"culprit":"/consult/js/consumerDirect-309952663657.js in new n",
"message":"ReferenceError manualError is not defined /consult/js/consumerDirect-309952663657.js in new n",
"datetime":"2019-11-06T18:53:25.000000Z",
"time_spent":null,