Skip to content

Instantly share code, notes, and snippets.

View shivampip's full-sized avatar
🏡
In Quarantine

Shivam Agrawal shivampip

🏡
In Quarantine
View GitHub Profile
@shivampip
shivampip / .dockerignore
Last active January 13, 2022 06:06
react-docker
**/node_modules
**/npm-debug.log
build
@shivampip
shivampip / directus_custom_endpoint.md
Last active November 17, 2023 18:25
Directus Custom Endpoint

Create Custom Endpoint in Directus

Build Extension

  • Create any folder and go inside
mkdir shivam
cd shivam
  • Create directus extension here
@shivampip
shivampip / shape_divider
Created January 19, 2021 12:02
Shape Divider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shapre Divider Test</title>
</head>
<style>
@shivampip
shivampip / postgresql.md
Last active October 13, 2021 07:30
Postgresql Ubuntu Configuration

After INstallation

  • Switch to postgres user
su - postgres
  • Create new user name root (for example)
createuser --interactive --pwprompt
@shivampip
shivampip / nginx_wildcard.conf
Created December 4, 2020 21:00
Nginx wildcard subdomain to folder
server{
listen 80;
server_name ~^(?<subdomain>.*)\.yoursite\.com$;
root /var/www/project/sites/$subdomain;
index index.html;
}
@shivampip
shivampip / supervisord.md
Last active December 30, 2020 17:46
Supervisord Cheetsheet

Supervisord

Installation

sudo apt-get install supervisor

Configuration file

  • For any new process create a supervisor config file
  • path will be /etc/supervisor/conf.d/myfile.conf
@shivampip
shivampip / bash_cheatsheet.sh
Last active December 4, 2020 17:41
Bash Cheatsheet
#! /bin/bash
# ==============
# Thanskyou Brad
# https://gist.github.com/bradtraversy/ac3b1136fc7d739a788ad1e42a78b610
#
# Create this file executable by
# chmod +x bash_cheetsheet.sh
#
# Run this file by
@shivampip
shivampip / git_branch.md
Last active November 23, 2020 18:26
Git Branch
  • Show list of branchs
git branch -a
  • Create branch
git branch new-branch
  • Switch to new-branch
@shivampip
shivampip / fa-react-bundle.txt
Last active November 6, 2020 15:34
FontAwesome React Bundle Size
NORMAL
125.45 KB build\static\js\2.dab67ae7.chunk.js
95.55 KB build\static\css\3.9a3bfdef.chunk.css
64.95 KB build\static\js\3.4960ab7f.chunk.js
19.71 KB build\static\js\4.bcc0d427.chunk.js
1.95 KB build\static\css\4.86527f64.chunk.css
1.49 KB build\static\js\runtime-main.ce1b1f56.js
1.07 KB build\static\css\2.c7d94637.chunk.css
650 B build\static\js\main.66091139.chunk.js
72 B build\static\css\main.2e0c8924.chunk.css
@shivampip
shivampip / rabbitmq.md
Created August 4, 2020 09:26
RabbitMQ Erlang Installation