Skip to content

Instantly share code, notes, and snippets.

View olejech's full-sized avatar
:atom:

Oleg olejech

:atom:
  • Russia
View GitHub Profile
@olejech
olejech / renderWithRouter.tsx
Created March 9, 2022 18:48
Testing Library renderWithRouter helper function Typescript
import { render, RenderResult } from '@testing-library/react';
import { createMemoryHistory, MemoryHistory } from 'history';
import { ReactElement } from 'react';
import { Router } from 'react-router-dom';
type RenderWithRouterProps = {
route?: string;
history?: MemoryHistory;
};
@olejech
olejech / nominimize.json
Last active January 8, 2024 09:16
Custom modification for Karabiner to disable the cmd-m minimize shortcut
{
"description": "Prevent command-m minimize window",
"manipulators": [
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"command"
]
@olejech
olejech / fix-codeium-auth.md
Last active June 3, 2024 09:39
Codeium auth confict with fish

When I try to auth codeium I got next error: Error detected while processing function codeium#command#Command[6]..4: line 48: E474: Attempt to decode a blank string E474: Failed to parse E903: Process failed to start: unknown error: "C:\Users\[USERNAME]/.codeium/bin/84ec5f0e149bb382127d0625f179a49fed435091/language_server_windows_x64.exe"

How to resolve this error

  1. Temporally disable .bashrc mv .bashrc .bashrc.bak