Skip to content

Instantly share code, notes, and snippets.

View mcchots's full-sized avatar

Mohammed Chotia mcchots

  • Johannesburg
  • 12:41 (UTC +02:00)
View GitHub Profile
@000yesnt
000yesnt / seafile-dark.css
Last active April 28, 2025 01:20
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
@roib20
roib20 / apt-repo-playbook.yaml
Last active April 29, 2025 08:21
Example usages of the new `deb822_repository` Ansible module
---
- hosts: localhost
connection: local
gather_facts: true
tasks:
- name: Add APT repositories
when: ansible_os_family == 'Debian'
become: true
block:
@j-steinbach
j-steinbach / .eleventy.js
Last active June 5, 2023 11:43
Find all images in a folder and display them in a single Eleventy template
module.exports = function (eleventyConfig) {
// copy files that are not templates to `_site/`
// see https://www.11ty.dev/docs/copy/
// - alternatively this could be done via eleventyConfig.setTemplateFormats
// see https://www.11ty.dev/docs/copy/#passthrough-by-file-extension
//
// !! when using Tailwind, make sure to NOT copy the tailwind css files..
eleventyConfig.addPassthroughCopy("src/assets/img");
return {
@scyto
scyto / docker-swarm-architecture.md
Last active April 25, 2025 21:04
My Docker Swarm Architecture

This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...

Installation Step-by-Step

Each major task has its own gist, this is to help with maitainability long term.

  1. Install Debian VM for each docker host
  2. install Docker
  3. Configure Docker Swarm
  4. Install Portainer
  5. Install KeepaliveD
  6. Using VirtioFS backed by CephFS for bind mounts (migrating from glsuterFS - WIP)
@Amoenus
Amoenus / nginx-proxy-manager-dark-theme.css
Last active April 6, 2025 04:46
nginx proxy manager dark theme
a {
color: rgb(140, 140, 250);
}
::-webkit-scrollbar-track-piece {
background-color: rgba(255, 255, 255, 0.2) !important;
}
::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.3) !important;
}
::-webkit-scrollbar-thumb {
@damkh
damkh / removeExpiredCerts.sh
Last active March 27, 2025 19:37 — forked from grommitz/removeExpiredCerts.sh
Remove expired certificates from a keystore
#!/bin/bash
# remove expired certs from a keystore
# set FN to the keystore file
FN=cacerts.jks
echo "finding expired certs..."
ALIASES=`keytool -list -v -keystore $FN -storepass changeit | grep -i 'alias\|until' `
@fatihyildizhan
fatihyildizhan / traefikv2-gzip-compression.txt
Last active November 28, 2024 11:26
Traefik v2 - How to enable gzip compression
### Traefik v2 docker-compose.yml
version: '3.7'
services:
traefik:
image: traefik:v2.2.7
container_name: traefik
labels:
@timothymiller
timothymiller / seafile-css-theme.css
Created June 9, 2020 03:11
Dark Mode for Seafile Community Edition (Place inside Custom CSS setting input box)
@media (prefers-color-scheme: dark) {
:root {
--main-bg: #000000;
--dark-bg: #000000;
--light-bg: #000000;
--main-font: #FFFFFF;
--light-font: #FFFFFF;
@rordi
rordi / root-password-MariaDB-docker-compose.md
Last active February 2, 2025 22:55
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d
@kmagdziak
kmagdziak / gist:49daac58bad7071e36a738da8aadb58e
Last active November 5, 2021 04:36
Running Pi-hole Docker Container with different docker port 80 mapping
Issue: Changing the docker port 80 to hosted port not 80 causes the following message:
[ERROR]: Unable to parse results from queryads.php: Unhandled error message (Invalid domain!)
## Solution courtesy of unitpas, modified by kmagdziak
docker exec -it pihole apt-get update
docker exec -it pihole apt-get install nano
docker exec -it pihole bash
nano /var/www/html/pihole/index.php