Skip to content

Instantly share code, notes, and snippets.

View olegchursin's full-sized avatar
🐬
Common sense isn't very common.

Oleg Chursin olegchursin

🐬
Common sense isn't very common.
View GitHub Profile

Operations with node_modules

Find all node_modules

cd into the directory with your code projects and run:

find . -name "node_modules" -type d -prune -print | xargs du -chs
@olegchursin
olegchursin / unitedui-contributing.md
Created September 2, 2020 13:53
Welcome to UnitedUI

Contributing to UnitedUI

Thank you for your interest in contributing to UnitedUI (AonDesignSystem). Below you will find genneral information to get you started.

Communication

Email is evil. We are using Slack for day-to-day communication. Please reach out to Oleg (oleg.chursin@aon.com) to be added to our Slack channel. Do not be mad to wait for a reply a bit (see line7).

@olegchursin
olegchursin / graphiql-dark-theme.css
Last active August 17, 2020 22:23
Dark theme for GraphiQL
.CodeMirror {
background: #282d34 !important;
}
.CodeMirror div.CodeMirror-cursor {
border-left: 2px solid #97be7b;
}
.graphiql-container .doc-explorer-contents,
.graphiql-container .history-contents {
background-color: #21262b;
border-top: 1px solid #181a1f;
@olegchursin
olegchursin / graphiql-dark-theme.css
Created August 17, 2020 22:06
Dark theme for GraphiQL
.CodeMirror {
background: #282d34 !important;
}
.graphiql-container .doc-explorer-contents,
.graphiql-container .history-contents {
background-color: #21262b;
border-top: 1px solid #181a1f;
}
.graphiql-container .toolbar-button {
@olegchursin
olegchursin / graphiql-dark-theme.css
Created August 17, 2020 22:06
Dark theme for GraphiQL
.CodeMirror {
background: #282d34 !important;
}
.graphiql-container .doc-explorer-contents,
.graphiql-container .history-contents {
background-color: #21262b;
border-top: 1px solid #181a1f;
}
.graphiql-container .toolbar-button {
@olegchursin
olegchursin / ResponseHandler.ts
Created March 18, 2020 14:00
NodeJS get request sending URL params
import { Request, Response } from 'restify';
import HttpStatus from 'http-status-codes';
import logger from '.log';
export function ResponseHandler(
req: Request,
res: Response,
next: (any?) => any
): (err?: Error | null, ret?: any, headers?: any) => any {
return function(err: any, ret?, headers?) {
@olegchursin
olegchursin / commit-squashing.md
Created March 2, 2020 15:42
Commit squashing flow
  • Make sure your branch is up to date with the master branch.
  • Run git rebase -i master.
  • You should see a list of commits, each commit starting with the word "pick".
  • Make sure the first commit says "pick" and change the rest from "pick" to "squash". -- This will squash each commit into the previous commit, which will continue until every commit is squashed into the first commit.
  • Save and close the editor (press Esc key, type :w and hit Enter key) -- save a file and quit vim / Vi by pressing Esc key, type :x and hit Enter key.
  • It will give you the opportunity to change the commit message.
  • Save and close the editor again.
  • Then you have to force push the final, squashed commit: git push --force-with-lease origin.
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700");
@import url("https://fonts.googleapis.com/css?family=Khula:300,400,700&display=swap");
:root {
--spacing-default: 20px;
--spacing-half: 10px;
--spacing-default-2x: 40px;
--blue-dark: #08101f;
--blue-medium: #2f58f7;
--blue-lighter: #268cf5;
@olegchursin
olegchursin / gatsby.gitignore
Last active November 27, 2019 06:14
GatsbyJS .gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
@olegchursin
olegchursin / gatsby.tsconfig.json
Last active November 27, 2019 06:15
GatsbyJS .tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "esnext",
"jsx": "preserve",
"lib": ["dom", "esnext"],
"strict": true,
"noEmit": true,
"isolatedModules": true,
"esModuleInterop": true,