Skip to content

Instantly share code, notes, and snippets.

@000yesnt
000yesnt / pretty-seafile-discord-embeds.md
Created February 6, 2025 03:00
Pretty Seafile Discord embeds - full template

Showcase / Screenshots

The default embeds for Seafile file share links are pretty barebones:

image

I tried to make them a little prettier. Image and video links show the image/video being shared. (There's a caveat with the video sharing - check the html comment)

image

@000yesnt
000yesnt / send_file_updates.md
Last active February 7, 2025 10:53
Get rid of the CPU-intensive Seafile send_file_updates background task.

Disabling send_file_updates

This task is meant to send emails to users about file changes. There are many cases (such as single user deployments) where this is unnecessary. Although it's part of the seafevents Seafile component, it cannot be disabled, even through seafile.conf. In low end hardware, it consumes a lot of CPU, making Seafile as a whole feel sluggish.

To disable it, you'll need to overwrite some Seafile code and write a custom Dockerfile to apply it.

1. Identifying the location

The task code is at /opt/seafile/seafile-server-<version>/pro/python/seafevents/tasks/file_updates_sender.py.

@000yesnt
000yesnt / seafile-dark.css
Last active May 27, 2025 00:43
Dark mode , based on timothymiller/seafile-css-theme
/*
Changes from timothymiller/seafile-css-theme.css:
- Falls back to default Seafile theme when light mode is used
- Background isn't pitch black, instead a dark grey is used
- Fixed inconsistent backgrounds on folder shares, notifications and some other places
- Borders are actually visible
- Certain parts were adjusted to match light Seafile
- Some limited theming on published libraries
- Compatible with Seafile 12.0
@000yesnt
000yesnt / youtube_time_userscript.js
Last active September 18, 2022 16:43
A quick userscript I made for changing YouTube video time to match playback speed.
// ==UserScript==
// @name Youtube: show true duration and time
// @namespace lin.ce
// @version 0.1
// @description Changes the video time based on playback speed.
// @author yesnt
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @require https://code.jquery.com/jquery-3.6.0.min.js