Skip to content

Instantly share code, notes, and snippets.

@abasalaev
abasalaev / jira2gitlab.py
Created April 11, 2023 15:03 — forked from Gwerlas/jira2gitlab.py
Migrate Jira issues to Gitlab
import requests
from requests.auth import HTTPBasicAuth
import re
from StringIO import StringIO
import uuid
# Inspired from https://gist.github.com/toudi/67d775066334dc024c24
# Tested on Jira 7.4 and Gitlab 2.2 with Python 2.7
JIRA_URL = 'https://your-jira-url.tld/'
JIRA_ACCOUNT = ('jira-username', 'jira-password')
@abasalaev
abasalaev / ru-geoip.conf
Last active October 24, 2024 06:38
shadowrocket
[General]
bypass-system = true
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com,*.ru
bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
dns-server = https://dns.adguard-dns.com/dns-query
fallback-dns-server = system
ipv6 = true
prefer-ipv6 = false
dns-direct-system = false
icmp-auto-reply = true
@abasalaev
abasalaev / MiniMap.tsx
Created October 2, 2025 12:10
MiniMap component on react
import React, { useRef, useState, useEffect, MouseEvent, useCallback, Dispatch, SetStateAction } from 'react';
import { CircleMinus, CirclePlus } from 'lucide-react';
import { OptionItem } from '@/components/admin/SearchInput.tsx';
import DropdownSelector from '@/components/admin/DropdownSelector.tsx';
interface MiniMapProps {
containerRef: React.RefObject<HTMLDivElement>;
contentZoom: number;
minimapWidth: number;
minimapHeight: number;