- Gping - ping sites with graphs: https://github.com/orf/gping
- Languages cheat in termnal or IDE: https://github.com/chubin/cheat.sh
- Markdown reader: https://github.com/charmbracelet/glow
- Perfect git terminal gui: https://github.com/jesseduffield/lazygit
- Split terminal workspace: https://www.gnu.org/software/screen/ |
sudo apt-get install screen
- More simplier then traditional man pages: https://github.com/tldr-pages/tldr |
pip3 install tldr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://ru.wikipedia.org/wiki/%D0%94%D0%BE%D1%80%D0%BE%D0%B6%D0%BD%D1%8B%D0%B5_%D0%B7%D0%BD%D0%B0%D0%BA%D0%B8_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8 | |
Array.from(document.querySelectorAll('tbody tr:not(:first-child)')) | |
.map(row => { | |
const $point = row.querySelector('td:nth-child(1)'); | |
const $label = row.querySelector('td:nth-child(3)'); | |
if ($point) { | |
return { | |
code: $point.innerText, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LatLngTuple } from "leaflet"; | |
import { forwardRef, useMemo, useState } from "react"; | |
import ReactDOM from "react-dom/client"; | |
import { Marker } from "react-leaflet"; | |
import L from "leaflet"; | |
import { createGlobalStyle } from "styled-components"; | |
interface Props { | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
watch?: any[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// ... | |
"include": ["src", "src/core/types/*.d.ts"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM eclipse-temurin:17-jdk-focal | |
WORKDIR /app | |
COPY .mvn/ .mvn | |
COPY mvnw pom.xml ./ | |
RUN ./mvnw dependency:go-offline | |
COPY src ./src | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ ! -f ~/.ssh/id_rsa.pub ] && ssh-keygen -t rsa; | |
ssh <username>@<remote_machine> 'mkdir -p ~/.ssh; chmod 700 ~/.ssh' | |
cat ~/.ssh/id_rsa.pub | ssh <username>@<remote_machine> 'cat >> ~/.ssh/authorized_keys' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -m PEM -f ./certs/jwt.key | |
# Don't use codephase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out ./certs/jwt.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createSagaMiddleware from 'redux-saga'; | |
import { configureStore } from '@reduxjs/toolkit'; | |
import saga from './saga'; | |
import { reducer as app } from 'app/app.slice'; | |
import { counterSlice } from 'core/features/counter/counter.slice'; | |
const sagaMiddleware = createSagaMiddleware(); | |
export const store = configureStore({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// react-testing-library renders your components to document.body, | |
// this adds jest-dom's custom assertions | |
import '@testing-library/jest-dom/extend-expect'; | |
import 'react-app-polyfill/ie11'; | |
import 'react-app-polyfill/stable'; | |
import 'jest-styled-components'; | |
import { configure } from 'enzyme'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ts_preset = require('ts-jest/jest-preset'); | |
const puppeteer_preset = require('jest-puppeteer/jest-preset'); | |
const preset = Object.assign( | |
ts_preset, | |
puppeteer_preset, | |
); | |
module.exports = preset; |
NewerOlder