This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const applyStyles = () => { | |
// Styles to match based on URL patterns | |
const styles = [ | |
{ | |
pattern: /.*/, | |
selectors: [ | |
'#sideview button:has(+ nav)', | |
'#sideview nav[aria-label="Settings"] li[aria-label="Users"] li:has(a[href="#!/roles"])', | |
'#sideview nav[aria-label="Settings"] li[aria-label="Authentication logs"]:has(a[href="#!/auth-logs"])', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sideview button:has(+ nav) { | |
display: none !important; | |
} | |
#sideview | |
nav[aria-label="Settings"] | |
li[aria-label="Users"] | |
li:has(a[href="#!/roles"]) { | |
display: none !important; | |
} | |
#sideview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use you can put this in your location proxy block, will automatically intercept Portainer HTML requests and put the CSS file in there. | |
proxy_set_header Accept-Encoding ""; | |
proxy_buffering off; | |
gzip off; | |
sub_filter_once off; | |
sub_filter_types text/html; | |
sub_filter '<base id="base"/>' '<base id="base"/><script src="https://cdn.gisthostfor.me/JSH32-SkOcsSXKYq-remove_be.js"></script><link rel="stylesheet" href="https://cdn.gisthostfor.me/JSH32-T2cOu14Cab-remove_be.css">'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/ufw/before.rules | |
*nat | |
:PREROUTING ACCEPT [0:0] | |
# Port forward example | |
-A PREROUTING -p tcp --dport 443 -j DNAT --to ip:443 | |
-A PREROUTING -p tcp --dport 80 -j DNAT --to ip:80 | |
# setup routing | |
-A POSTROUTING -j MASQUERADE | |
COMMIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Modify with the path to your Immich data/upload directory | |
IMMICH_DATA_DIR="/mnt/media/immich" | |
# Modify with the path to your local db backup directory | |
DB_BACKUP_DIR="/mnt/media/immich_db_backups" | |
# Your configured rclone path to B2 bucket | |
B2_BUCKET="backblaze:hydronbackup" | |
# Database container name | |
DB_CONTAINER_NAME="immich_postgres" |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hart | |
530 | |
518 | |
506 | |
494 | |
483 | |
472 | |
462 | |
454 | |
446 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java | |
package com.yourplugin; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import java.io.*; | |
import java.nio.file.*; | |
import java.lang.instrument.*; | |
import java.security.ProtectionDomain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
jellyfin: | |
image: jellyfin/jellyfin | |
volumes: | |
- jellyfin-config:/config | |
- jellyfin-cache:/cache | |
- ${MEDIA_LOCATION}:/media | |
# This is for menu links https://jellyfin.org/docs/general/clients/web-config/#custom-menu-links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.jsh32.paradoxia.commons | |
import net.minestom.server.MinecraftServer | |
import net.minestom.server.command.builder.Command | |
import net.minestom.server.event.EventNode | |
import org.koin.core.component.KoinComponent | |
import org.koin.core.context.loadKoinModules | |
import org.koin.core.context.unloadKoinModules | |
import org.koin.core.definition.Definition | |
import org.koin.core.module.Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
template <class Container, class F> | |
auto erase_where(Container& c, F&& f) { | |
return c.erase(std::remove_if(c.begin(), c.end(), std::forward<F>(f)), | |
c.end()); | |
} | |
/** | |
* @brief Reactive state. Listeners will be registered as callbacks to state |
NewerOlder