Skip to content

Instantly share code, notes, and snippets.

View saurabhshri's full-sized avatar

Saurabh Shrivastava saurabhshri

View GitHub Profile
@saurabhshri
saurabhshri / add-js-extension-esm-relative-imports.js
Last active July 7, 2022 06:50
Add .js extension to all relative ESM imports since typescript won't do it. Modified version of https://github.com/microsoft/TypeScript/issues/16577#issuecomment-310426634 . WARNING: Doesn't work on multiline imports, please verify all files after script run.
"use strict";
const FileHound = require('filehound');
const fs = require('fs');
const paths = process.env.REPO_PATH
? process.env.REPO_PATH.split(",").map(path => path.trim())
: (function () {
throw new Error("set REPO_PATH to comma separated input path lists");
})();
@saurabhshri
saurabhshri / firestick-ly73pr-logcat.log
Created May 16, 2021 16:10
Fire Stick 2nd gen (ly73pr) stuck on logo (bootloop) logs.
--------- beginning of kernel
W/AEE ( 0): some logs have been lost (221 bytes estimated)
W/AEE ( 0): some logs have been lost (1032 bytes estimated)
W/AEE ( 0): some logs have been lost (160 bytes estimated)
I/Kernel ( 1): [ 1.027869].(1)[1:swapper/0] s:1027309461 e:1027310692 d:1231
I/Kernel ( 1): [ 1.028753].(1)[1:swapper/0][init] f(c09b0950)
I/Kernel ( 1): [ 1.029369].(1)[1:swapper/0] s:1028588615 e:1028745461 d:156846
I/Kernel ( 1): [ 1.030197].(1)[1:swapper/0][init] f(c09b0978)
I/Kernel ( 1): [ 1.030787].(1)[1:swapper/0] s:1030110230 e:1030191307 d:81077
I/Kernel ( 1): [ 1.031587].(1)[1:swapper/0][init] f(c09b09a0)
@saurabhshri
saurabhshri / GSoC Project Timeline and Deliverables.MD
Last active August 23, 2017 19:07
This gist will contain detailed timeline and milestones in the form of checklist for my GSoC 2017 project CCAligner, with CCExtractor Development. https://saurabhshri.github.io/gsoc/

Legend:

  • Work To Be Done.
  • Work In Progress.
  • Work Completed.

1. Community Bonding Period (6th May - 27th May) :

  • Set-up a blog.
@saurabhshri
saurabhshri / GSoC 2017 brief timeline.md
Last active July 29, 2017 10:07
This gist contains brief timeline of Google Summer of Code 2017!

GSoC 2017 Brief Timeline

  • Phase 0 (Till 4th May) : Pre - GSoC period.
  • Phase 1 (4th May - 30th May) : Community Bonding period.
  • Phase 2 (30th May - 26th June) : Coding Phase 1.
  • Phase 3 (26th June - 30th June) : Phase 1 Evaluations.
  • Phase 4 (30th June - 24th July) : Coding Phase 2.
  • Phase 5 (24th July - 28th July) : Phase 2 Evaluations.
  • Phase 6 (28th July - 21st August) : Coding Phase 3.
  • Phase 7 (21st August - 29th August) : Finishing, Testing, Final Documentation & Submission.
@saurabhshri
saurabhshri / pip.md
Last active September 24, 2023 11:07
Install and use pip in a local directory without root/sudo access.

Install and use pip in a local directory without root/sudo access.

Why?

Many users when are given server access, do not have root (or sudo) privileges and can not simply do sudo apt-get install python-pip . Here's an easy way you can install and use pip without root (or sudo) access in a local directory. Note : This works without easy_install too.

How?