Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useEffect, useRef, } from "react";
import { Modal, Button, Upload, Row, Col, Slider, Typography, Input, Popover, } from 'antd';
import Icon from '@ant-design/icons';
import { InboxOutlined, CloseCircleOutlined } from '@ant-design/icons';
import { useDispatch } from "react-redux";
import { setPostImage, setPostImageAlternativeText, toggleModals, searchConnections, } from "../../../store/actions";
import { useTranslation } from "react-i18next";
import { image } from "../../../api";
// import RotateSvg from "@assets/images/rotate.svg";
// import ReverseRotateSvg from "@assets/images/reverse-rotate.svg";
@Kishan033
Kishan033 / grep.md
Created February 18, 2022 12:21
To check large files with grep

grep commands

To check large files with grep

Get all matches

grep "match" filename.txt

Get count of matches

@Kishan033
Kishan033 / exercises.md
Created January 23, 2020 07:19
MONGODB SHELL EXERICES

MongoDB Practice

MongoDB Exercise in mongo shell

Connect to a running mongo instance, use a database named mongo_practice.

Document all your queries in a javascript file to use as a reference.

Insert Documents

@Kishan033
Kishan033 / launch.json
Created December 20, 2019 04:59 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
@Kishan033
Kishan033 / tmux.txt
Last active February 28, 2022 13:19
Tmux cheat sheet
1. Start new tmux session
tmux new -s [session_name]
2. List all session
tmux ls
3. Dive into session
tmux attach -t [session_name]
4. Exit the session without killing current session