Skip to content

Instantly share code, notes, and snippets.

View tony-sol's full-sized avatar
🫥
total burnout

Tony Soloveyv tony-sol

🫥
total burnout
View GitHub Profile
@tony-sol
tony-sol / getForksStats.js
Created February 13, 2025 11:30
coezbek/github-fork-bookmarklet but with token support
javascript:(async () => {
/* Ensure the script is run on a valid GitHub repository page */
const ensureForksPage = () => {
const match = window.location.href.match(/^https:\/\/github\.com\/([^/]+)\/([^/]+)(\/forks\/?)?/);
if (!match) {
alert('Run this from a GitHub repository page.');
throw new Error('Not on a valid GitHub repository page.');
}
if (!match[3]) {
window.location.href = `https://github.com/${match[1]}/${match[2]}/forks`;
@tony-sol
tony-sol / meetings.py
Last active February 7, 2025 08:07
Dev daily meetings reporter
#!/usr/bin/python3
from abc import ABC, abstractmethod
from typing import List
import random
class AbstractPhrasePart(ABC):
def __str__(self):
return f"{self._prefix()} {random.choice(self._phrases())}"
"extensionsGallery": {
-- "nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/",
-- "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
-- "itemUrl": "https://marketplace.visualstudio.com/items",
-- "publisherUrl": "https://marketplace.visualstudio.com/publishers",
-- "resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",
-- "controlUrl": "https://az764295.vo.msecnd.net/extensions/marketplace.json"
++ "serviceUrl": "https://open-vsx.org/vscode/gallery",
++ "itemUrl": "https://open-vsx.org/vscode/item"
},
@tony-sol
tony-sol / via.design.v2.json
Created September 11, 2024 14:35
Vortex Model M SSK us6.25 Via configuration
{
"name": "Model M-us6.25",
"vendorId": "0xEB88",
"productId": "0x0024",
"lighting": "qmk_rgblight",
"matrix": {
"rows": 6,
"cols": 18
},
"layouts": {
@tony-sol
tony-sol / colors.sh
Last active August 1, 2025 16:31
Print all 256 colors in truecolor term
for i in {0..255}
do
printf "\x1b[38;5;%smcolour%s " "${i}" "${i}"
if (( ($i + 1) % 8 == 0 ))
then
echo ""
fi
done
# or
@tony-sol
tony-sol / git-get-head
Last active April 17, 2024 14:57
git get-head command for fetch default branch name
#!/bin/zsh
set -e
git_get_head() {
(git symbolic-ref "refs/remotes/${@}/HEAD" --short || git remote show "${@}" ) 2>/dev/null | grep "${@}/\|HEAD branch" | sed -E "s#${@}/|HEAD branch:##" | sed 's# ##g'
}
git_get_head "${1}"
exit 0
@tony-sol
tony-sol / algorithms.md
Created June 17, 2023 12:49
Пособие по алгоритмам, сгенерированное ChatGPT (формат obsidian)
tag
algos
computer-science

Алгоритмы и структуры данных

  • [[#Общая часть|Общая часть]]
  • [[#1. Сложность алгоритмов|1. Сложность алгоритмов]]
@tony-sol
tony-sol / Ansible-101.md
Last active May 12, 2022 14:27
Quickstart guide to ansible for those who have never used it before

Ansible

Основы Ansible для новичка

Эта статья не замена https://docs.ansible.com/, а скорее 101 - база, которая поможет начать понимать основные принципы работы

Что такое Ansible

Ansible - в каноничном определении, система управления конфигурациями.