Skip to content

Instantly share code, notes, and snippets.

View asiryk's full-sized avatar
🌿

Alexander Siryk asiryk

🌿
View GitHub Profile
@asiryk
asiryk / tree_style_tab_firefox.md
Last active January 7, 2023 14:25 — forked from ruanbekker/tree_style_tab_firefox.md
Hide Native Tabs with Tree Style Tabs for Firefox
@asiryk
asiryk / gitlab-api-rm-pipelines.sh
Created March 7, 2023 15:54
Remove pipelines from GitLab
#!/usr/bin/env bash
# Script that erases pipelines from GitLab
GITLAB_TOKEN="" # <required>
PROJECT_ID="" # <required>
GITLAB_INSTANCE="https://gitlab.com/api/v4/projects" # <required>
PER_PAGE="" # [optional] if not specified script will run once per page
for PIPELINE in $(curl --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "$GITLAB_INSTANCE/$PROJECT_ID/pipelines?per_page=$PER_PAGE&sort=asc" | jq .[].id) ; do
@asiryk
asiryk / uninstall-logitech-ghub.sh
Created February 18, 2025 09:29 — forked from timotgl/uninstall-logitech-ghub.sh
How to fully uninstall Logitech G HUB on macOS via terminal/command line
# How to fully uninstall Logitech G HUB on macOS via terminal/command line
# Tested on macOS version 12.3.1 (21E258) Monterey in April 2022
# with Logitech G HUB version 2022.3.242300 (released on 2022-03-22) installed.
# 1. Make sure "Logitech G HUB" itself is not running. If it is, quit it.
# 2. Open "Activity Monitor" and force-quit all processes named "lghub*".
# 3. Delete system-wide files
sudo rm -rf /Applications/lghub.app
@asiryk
asiryk / yt-clear-watch-later.js
Created October 1, 2025 15:12
Clear all YouTube watch later
(async () => {
const buttons = document.querySelectorAll(
'button.style-scope.yt-icon-button[aria-label="Action menu"]'
);
for (const button of buttons) {
try {
button.click();
await new Promise(r => setTimeout(r, 200));
const item = [...document.querySelectorAll("ytd-menu-service-item-renderer")].find(el => el.textContent.includes("Remove from Watch Later"));