Skip to content

Instantly share code, notes, and snippets.

View adiologydev's full-sized avatar
🎶
Listening to Music

Aditya Tripathi adiologydev

🎶
Listening to Music
View GitHub Profile
@adiologydev
adiologydev / Dockerfile
Created February 6, 2022 15:26
NextJS Docker Deployment 101
# Source and Credit: https://github.com/vercel/next.js/tree/canary/examples/with-docker
# It's slightly modified than the original, please read through before using it :)
FROM node:lts-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@adiologydev
adiologydev / klasa-core-migration.md
Last active July 17, 2020 20:13
discord.js to @klasa/core | Migration Guide

Recently Klasa (discord.js bot framework) has migrated to it's own Discord API wrapper @klasa/core instead of using the generic discord.js.

Why another Discord API Wrapper?

  • Creation of @klasa/core gives full customizability to it's core that discord.js failed to offer.
  • @klasa/core has High-Level API with Low-Level Performance.
  • Implements Discord API more directly unlike discord.js.
  • Allows implementation of Custom API Interactions using Actions.
  • Sends exactly what it's asked to by your code to the Discord API without any transformations.
  • Does not contain over a thousand overloads unlike discord.js. It's completely written in TypeScript.
  • Performance improvements in comparison to discord.js.
@adiologydev
adiologydev / nitrous.md
Created August 7, 2018 12:15
Commands for Nitrous Discord Bot
Command Name Description
n!dmsong Make Nitrous send you a Direct Message with Song information.
n!dump Save all the current songs in your queue in the Nitrous format to load later.
n!loop Toggle song looping/repeating.
n!lyrics Get lyrics of the current song or any song you want.
n!nowplaying Information about the currently playing song in the guild.
n!play Command to play some music with Nitrous.
n!shuffle Shuffles the Queue so it plays random tracks from the queue.
n!skip Skip/Vote Skip the current song.
@adiologydev
adiologydev / klasa-dark.css
Created July 22, 2018 15:08
Dark Theme CSS for Klasa Docs
* {
transition-duration: 0.2s;
}
body {
background-color: #212121;
color: #E0E0E0;
}
li {
color: #E0E0E0;
background-color: transparent;
@adiologydev
adiologydev / keybase.md
Created August 9, 2017 18:42
Keybase Verification

Keybase proof

I hereby claim:

  • I am AdityaTD on github.
  • I am adityatd (https://keybase.io/adityatd) on keybase.
  • I have a public key whose fingerprint is 7801 9019 88CF F71E 4133 A0C4 2932 9654 83B3 B399

To claim this, I am signing this object: