Skip to content

Instantly share code, notes, and snippets.

View longdog's full-sized avatar
🐶
Woof!

Denis longdog

🐶
Woof!
View GitHub Profile
@longdog
longdog / ioc-iso.json
Created September 23, 2025 11:40
Complete IOC to ISO Country Code Mapping with English Names
{
"AFG": {"iso2": "AF", "iso3": "AFG", "name": "Afghanistan"},
"ALB": {"iso2": "AL", "iso3": "ALB", "name": "Albania"},
"ALG": {"iso2": "DZ", "iso3": "DZA", "name": "Algeria"},
"AND": {"iso2": "AD", "iso3": "AND", "name": "Andorra"},
"ANG": {"iso2": "AO", "iso3": "AGO", "name": "Angola"},
"ANT": {"iso2": "AG", "iso3": "ATG", "name": "Antigua and Barbuda"},
"ARG": {"iso2": "AR", "iso3": "ARG", "name": "Argentina"},
"ARM": {"iso2": "AM", "iso3": "ARM", "name": "Armenia"},
"ARU": {"iso2": "AW", "iso3": "ABW", "name": "Aruba"},
Logo_alt_company

📝 Шпаргалка по ALT Linux

1. Настройка sudo в ALT linux

Быстрая настройка sudo

Исправляем ошибку user is not in the sudoers file

@longdog
longdog / cacheExample.ts
Last active February 19, 2025 07:18
effector fetch and cache
import { forward } from "effector";
import { createGate } from "effector-react";
import { createCached } from "store/helpers";
export const delegationSelectGage = createGate();
const [doFetch, $delegation, $loading] = createCached<void, Data[]>(
fetchDelegations,
"delegation"
);
@longdog
longdog / history.ts
Created November 19, 2021 19:03
react-router 6 and effector
import { createBrowserHistory } from "history";
export const browserHistory = createBrowserHistory();