Skip to content

Instantly share code, notes, and snippets.

View Luchanso's full-sized avatar
🦄
Easy breezy

Oleg Luchanso

🦄
Easy breezy
View GitHub Profile
@Luchanso
Luchanso / README.en.md
Last active September 15, 2025 12:27
How to draw Ahsoka Tano

wplace Ahsoka Tano

Русская версия ниже

Who is this?

This is the main character from the series Ahsoka in the Star Wars universe, and her name is Ahsoka.

Drawing Instructions

  • The Blue Marble plugin is used for drawing.
  • Premium colors are used. If you don't have a premium color, only fill in the colors that are available.
@Luchanso
Luchanso / Dockerfile
Created November 3, 2024 09:32 — forked from kjlape/Dockerfile
Self-Hosted Docker Registry with Kamal (as of version 2.2.2)
FROM registry:2
import { Enforcer, newEnforcer, StringAdapter } from "casbin";
import { join } from "path";
import { cwd } from "process";
declare global {
var __casbin: Enforcer;
}
await (async function getEnforcer() {
if (global.__casbin) {
import {
decodeInstruction,
getAssociatedTokenAddress,
isTransferCheckedInstruction,
isTransferInstruction,
} from '@solana/spl-token';
import type {
ConfirmedTransactionMeta,
Connection,
Finality,
@Luchanso
Luchanso / index.js
Created October 3, 2021 15:35
Delete all vk posts
document.querySelectorAll('.ui_actions_menu._ui_menu.ui_actions_menu--actionSheet').forEach((item) => {
item.querySelectorAll('.ui_actions_menu_item').forEach((item2) => {
if (item2.innerHTML === 'Удалить запись') {
item2.click()
}
})
});
@Luchanso
Luchanso / grafana_telegram_bot.md
Created August 22, 2021 09:44 — forked from ilap/grafana_telegram_bot.md
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
https://github.com/module-federation/module-federation-examples/issues/233
const schema = yup.object().shape({
email: yup.string().required("is requeried").email("missing email"),
// age: yup.number().positive().integer().required(),
});
export default function FieldEmail() {
const {
register,
formState: { errors },
} = useFormContext();
@Luchanso
Luchanso / data.json
Created April 26, 2020 13:41
dota 2 GSI
{
"ip": "::ffff:127.0.0.1",
"gamestate": {
"buildings": {
"radiant": {
"dota_goodguys_tower1_top": {
"health": 1800,
"max_health": 1800
},
"dota_goodguys_tower2_top": {
@Luchanso
Luchanso / ReturnTypeMapDispatchToProps.ts
Last active March 30, 2020 11:16
ReturnTypeMapDispatchToProps
export type ReturnTypeMapDispatchToProps<T> = {
[P in keyof T]: T[P] extends (
...args: infer A
) => (...args: any[]) => infer R
? (...args: A) => R
: T[P];
};