Skip to content

Instantly share code, notes, and snippets.

View arvi9's full-sized avatar
👨‍💻
Happy code

arvi9

👨‍💻
Happy code
View GitHub Profile
@arvi9
arvi9 / Part 1
Created September 13, 2023 07:05
# Docker
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
@arvi9
arvi9 / .dockerignore
Created August 29, 2023 07:31 — forked from kennethnwc/.dockerignore
My docker-compose with nextjs and nginx
.next/
node_modules/
Dockerfile
yarn-error.log
.dockerignore
.git
.gitignore
@arvi9
arvi9 / api.ts
Created January 26, 2023 07:49 — forked from moogii/api.ts
Axios based Next js client and server side token refresher
import axios, { AxiosError } from "axios";
import { GetServerSidePropsContext } from "next";
import Router from "next/router";
const isServer = () => {
return typeof window === "undefined";
}
let accessToken = "";
let context = <GetServerSidePropsContext>{};
@arvi9
arvi9 / Notes.md
Created June 11, 2019 16:03 — forked from g0t4/ Notes.md
Getting Started with Docker on Windows
@arvi9
arvi9 / fb_categories.json
Created April 24, 2019 11:07 — forked from ikegami-yukino/fb_categories.json
Facebook page category list
{
"Airline": "Airline Industry Services",
"American Restaurant": "New American Restaurant",
"Amusement Park Ride": "Roller Coaster",
"Amusement": "Arcade",
"Amusement": "Bingo Hall",
"Amusement": "Go Karting",
"Amusement": "Laser Tag",
"Antiques & Vintage": "Antique Store",
"Antiques & Vintage": "Auction House",
@arvi9
arvi9 / README.md
Last active March 26, 2019 12:08 — forked from hofmannsven/README.md
Git Cheatsheet Commands
@arvi9
arvi9 / django_cmd.sh
Created July 10, 2018 07:09 — forked from hezhao/django_cmd.sh
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser