Skip to content

Instantly share code, notes, and snippets.

@igoptx
igoptx / upgrade-firefly.sh
Created July 19, 2025 11:10
bash script to update firefly instalation easly (Self Managed)
#!/bin/bash
# === Auto mode if --auto argument is passed ===
AUTO_MODE=false
if [[ "$1" == "--auto" ]]; then
AUTO_MODE=true
shift
fi
# === Start log ===
@sakirsensoy
sakirsensoy / image-resizer-and-optimizer.md
Last active February 2, 2026 20:39
Wordpress Image Resizer / Optimizer

Wordpress Image Resizer / Optimizer

With wordpress there are a lot of plugins for optimizing previously uploaded images. Interestingly, almost all plugins direct you to use their own APIs for this task and charge high fees for this simple task. Whereas on our own server we can do it very simply. The image optimization function below will probably do the trick. I would base it on the ubuntu operating system, but you can easily find related packages for other operating systems.

Installation

@DaveYesland
DaveYesland / dirbrute.txt
Created April 6, 2019 20:43
List for directory brute forcing.
@
_
0
00
01
02
03
04
05
06
@plembo
plembo / sqlwbsetuplinux.md
Last active July 9, 2024 12:30
SQL Workbench/J on Linux

Setting up SQL Workbench/J on Linux

SQL Workbench/J is a cross-platform graphical database query tool written in Java. All you need to run it is to download and extract the zip distribution and have the JRE and JDBC drivers for your DBMS installed.

These instructions were tested on Ubuntu 18.04 LTS with the Gnome Shell desktop environment. YMMV.

  1. Verify that the JRE is installed:
@noelbundick
noelbundick / LICENSE
Last active February 24, 2026 08:43
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mosquito
mosquito / README.md
Last active February 19, 2026 04:21
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service