Skip to content

Instantly share code, notes, and snippets.

View deseven's full-sized avatar

Ivan Novohatski deseven

View GitHub Profile
@deseven
deseven / clearos7_fix.md
Created February 3, 2026 20:51
Patching ClearOS 7 to fix slow web interface

Since people that made ClearOS simply dropped the mic and left, existing instances suffer from very slow web interface with pages opening after a full minute or so, mostly because it tries to access the no longer existing marketplace on every page load. This is a great example of a severely bad architecture along with zero responsibility on the developer's side, but whatever.

Obviously, using severely outdated software is a bad practice and a huge security concern, but if you have no other options right now, this small guide will help you to make things work again.

In general, there are 3 things you need to do.

  1. Disable all repos in /etc/yum/repos.d.

  2. Find _display_page() function in /usr/clearos/framework/application/libraries/Page.php and comment the whole block starting with if (clearos_load_library('registration/Registration') && $this->framework->session->userdata('username')).

@deseven
deseven / 2mp4
Last active October 18, 2025 18:10
a wrapper for quick web-friendly video convertions using ffmpeg, intended for macOS
#!/bin/bash
# a wrapper for quick web-friendly video convertions using ffmpeg
# mostly intended to be used on macOS (hence videotoolbox hardware acceleration)
# info & updates: https://gist.github.com/deseven/f3dc4ae7141babeeac860a4305c34122
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
@deseven
deseven / corefreq-cli.txt
Created July 9, 2025 17:28
AMD RYZEN AI MAX+ 395 corefreq-cli output
Processor [AMD RYZEN AI MAX+ 395 w/ Radeon 8060S]
|- Architecture [Zen5/Strix Halo]
|- Vendor ID [AuthenticAMD]
|- Microcode [0x0b700032]
|- Signature [ BF_70]
|- Stepping [ 0]
|- Online CPU [ 32/ 32]
|- Base Clock [100.002]
|- Frequency (MHz) Ratio
Min 1800.04 < 18 >
@deseven
deseven / pipe.py
Created February 26, 2025 20:22
Flux:Schnell pipe for OpenWebUI with images saving
"""
title: FLUX Schnell Manifold Function for Black Forest Lab Image Generation Models
author: Balaxxe, credit to mobilestack and bgeneto
author_url: https://github.com/jaim12005/open-webui-flux-1.1-pro-ultra
funding_url: https://github.com/open-webui
version: 1.5
license: MIT
requirements: pydantic>=2.0.0, aiohttp>=3.8.1
environment_variables:
- REPLICATE_API_TOKEN (required)
@deseven
deseven / MattermostUpload.sh
Last active February 25, 2025 06:36
Upload file to Mattermost (API v4)
#!/bin/bash
# your mattermost installation url
mattermost="https://example.com"
# bot token, get it in Integrations > Bot Accounts
token=abcdef123456
# set to true for debug output
debug=false
@deseven
deseven / 2mp3
Last active January 12, 2025 13:26
Simple script to convert all audio files in current directory to mp3
#!/bin/bash
BLUE='\033[1;34m'
NC='\033[0m'
RED='\033[1;31m'
GREEN='\033[1;32m'
total_files=0
current_file=0
ext="flac"
@deseven
deseven / BotNinja.py
Created July 7, 2023 14:12
Very simple bot for Tap Ninja
# Very simple bot for Tap Ninja
# (https://store.steampowered.com/app/1891700/Tap_Ninja__Idle_game/)
# made by deseven, 2023
# The bot will perform building/tech upgrades every 30 seconds and
# ascention every 40 minutes (could be adjusted, see RUN_TIME below),
# very helpful for getting enough elixir on later stages of the game.
# Prerequisites:
# - Windows (should be easily portable to other OS)
#!/bin/bash
# === bitbucket_commits_check ===
# checks whether there are any commits in the provided repo (all branches) since the last working day
# written by deseven, 2019
# http://deseven.info
# bitbucket base URL
bitbucketURL="https://example.com"
#!/bin/bash
# === bitbucket_user_commits_check ===
# checks whether there are any commits for user since the last working day
# written by deseven, 2019
# http://deseven.info
# bitbucket base URL
bitbucketURL="https://example.com"
@deseven
deseven / tms-obscure-artists.sh
Last active October 7, 2020 01:22
A simple script that filters the list of artists by checking their last.fm playcount (written for TMS search)
#!/bin/bash
# insert your last.fm api key (can be obtained by creating an app here - https://www.last.fm/api/account/create)
# change output_file and artist_play_limit how you like
# you'll also need to install jq
# USAGE:
# cat artists.txt | ./tms-obscure-artists.sh
lastfm_api_key=""