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 / useReducer&useContext.ts
Created February 22, 2023 11:35
useReducer&useContext
import React, { createContext, useContext, useEffect, useReducer } from 'react';
import axios from 'axios';
// Define interface for the data object
interface Item {
id: number;
name: string;
description: string;
}
@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 / index.html
Created July 28, 2020 07:51
React useEffect Increment Decrement Example
<div id="root" />
@arvi9
arvi9 / index.html
Created July 27, 2020 17:31
React useEffect Demo
<div id="root">
@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
public class Customer : IEnumerable
{
public IEnumerator GetEnumerator()
{
throw new NotImplementedException();
}
}