Skip to content

Instantly share code, notes, and snippets.

View AnandChowdhary's full-sized avatar
🚀
Shipping

Anand Chowdhary AnandChowdhary

🚀
Shipping
View GitHub Profile
@AnandChowdhary
AnandChowdhary / koj-cla.md
Created April 2, 2021 10:35
Koj Individual Contributor License Agreement

Koj Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects ("Projects") made available by Koj AG or its affiliates ("Koj"). This Individual Contributor License Agreement ("Agreement") sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Koj in respect of any of the Projects (collectively "Contributions"). If you have any questions respecting this Agreement, please contact opensource@koj.co.

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License

You hereby grant, and agree to grant, to Koj a non-exclusive, perpetual, irrevocable, worldwide, fu

const { readdir, readFile, writeFile } = require("fs-extra");
const { execSync } = require("child_process");
const { join } = require("path");
const slugify = require("@sindresorhus/slugify");
const dayjs = require("dayjs");
const frontMatter = require("front-matter");
const run = async () => {
const files = (await readdir(join("..", "exported"))).filter((file) =>
file.endsWith(".md")
@AnandChowdhary
AnandChowdhary / gh-followers.json
Last active August 30, 2021 10:10
Anand Chowdhary's GitHub followers
[
"linyiru",
"dnordberg",
"logudotcom",
"viczam",
"jianwu",
"beeman",
"barakplasma",
"sontan",
"haveaguess",
@AnandChowdhary
AnandChowdhary / 🎵 My last week in music
Last active May 10, 2024 01:28
🎵 Last week in music
Taylor Swift █████████▊░░░░░░░ 73 plays
Astrid S █▊░░░░░░░░░░░░░░░ 13 plays
Drake █▊░░░░░░░░░░░░░░░ 13 plays
Gracie Abrams ▊░░░░░░░░░░░░░░░░ 6 plays
Kendrick Lamar ▌░░░░░░░░░░░░░░░░ 4 plays
Olivia Rodrigo ▌░░░░░░░░░░░░░░░░ 4 plays
Sabrina Carpenter ▌░░░░░░░░░░░░░░░░ 4 plays
Dylan ▍░░░░░░░░░░░░░░░░ 3 plays
Griff ▍░░░░░░░░░░░░░░░░ 3 plays
Tate McRae ▍░░░░░░░░░░░░░░░░ 3 plays
@AnandChowdhary
AnandChowdhary / 📊 Weekly development breakdown
Last active February 23, 2024 18:31
📊 Weekly development breakdown
TypeScript 13 hrs 7 mins ██████████▎░░░░░░░░░░ 48.9%
Svelte 7 hrs 29 mins █████▊░░░░░░░░░░░░░░░ 27.9%
YAML 1 hr 45 mins █▎░░░░░░░░░░░░░░░░░░░ 6.5%
JSON 1 hr 12 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.5%
Markdown 1 hr 6 mins ▊░░░░░░░░░░░░░░░░░░░░ 4.1%
@AnandChowdhary
AnandChowdhary / log-moment.js
Last active March 18, 2020 18:40
Just a console.log to test run-url
const moment = require("moment");
console.log("Date", moment());
@AnandChowdhary
AnandChowdhary / README.md
Last active December 24, 2020 00:36
Convert a JSON key-value file URL to Netlify _redirects file

JSON KV to Netlify Redirects

Using npx with Node.js, you can run GitHub Gist scripts. This is a script to

Usage

For example, if you have a JSON file in a repo and its URL is https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json, use:

npx https://gist.github.com/AnandChowdhary/bf1dce1400a6fc86afd1921085feff93 https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json
@AnandChowdhary
AnandChowdhary / Real-time life data
Last active December 9, 2019 20:09
Real-time data about my life in a pinned gist
TypeScript 15 hrs 35 mins █████████████▎░░░░░░░ 63.1%
JavaScript 3 hrs 44 mins ███▏░░░░░░░░░░░░░░░░░ 15.1%
Vue.js 1 hr 51 mins █▌░░░░░░░░░░░░░░░░░░░ 7.5%
JSON 52 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.5%
CSS 43 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.9%

Keybase proof

I hereby claim:

  • I am anandchowdhary on github.
  • I am anandchowdhary (https://keybase.io/anandchowdhary) on keybase.
  • I have a public key ASBN1gN2uMEdRGO-rEzaXmjNcUlZPat4y7prKw1vtpun-Qo

To claim this, I am signing this object:

@AnandChowdhary
AnandChowdhary / conf.md
Created March 3, 2019 18:50
nginx creating a virtual host
cd /etc/nginx/sites-available/
sudo nano example.com

Config looks like this: