Skip to content

Instantly share code, notes, and snippets.

@mariusrugan
mariusrugan / build-image.yaml
Last active September 17, 2025 21:12
Gitea self-hosted runner
# Inspired by:
# https://blog.gitea.com/creating-go-actions/
# https://gitea.com/Zettat123/test-simple-go-action/src/branch/main/.gitea/workflows/call-username.yml
# https://gitea.com/actions/release-action
# https://gitea.com/gitea/runner-images
# https://github.com/vegardit/docker-gitea-act-runner
# https://github.com/catthehacker/docker_images
#
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active September 24, 2025 04:52
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!


Update 2025-07-16: Use either Revanced, NewPipe or Firefox with add-ons. Revanced is my personal pick, due to it being a mod of the official App like Vanced, but better (e.g. it has integration of Sponsor Block, Return YouTube Disklike and more).

I wouldn't recommend Kiwi Browser anymore as it has been discontinued. AFAIK it has been accuired by Microsoft and the extension support has been merged into Edge (Canary). But you'd have to use Edge. Yuck.


@mbierman
mbierman / updatedocker.sh
Last active July 4, 2025 22:35
Update Docker containers on Fireawlla
#!/bin/bash
# version 3.3.0
# https://gist.github.com/mbierman/6cf22430ca0c2ddb699ac8780ef281ef
wait=1
container=$1
DOCKER=$(which docker)
# Check if Docker is installed
@MichaelBelgium
MichaelBelgium / wsl2-hosts-sync.ps1
Created June 5, 2020 07:46
WSL v2 windows hosts sync (powershell - updates domains to wsl2 ip)
# Requires -RunAsAdministrator
# Only works for WSL v2, this is completely not needed for WSL v1 where u always can use 127.0.0.1 in hosts file
Clear-Host
if ((Get-InstalledModule "Carbon" -ErrorAction SilentlyContinue) -eq $null) {
Install-Module -Name 'Carbon' -AllowClobber
}
Import-Module 'Carbon'
#!/bin/sh
# source https://community.synology.com/enu/forum/1/post/131600
echo "-- START ($(date +%Y%m%d_%H%M%S)) --"
#### TO UPDATE BEFORE RUN ####
DOCKER_BIN_VERSION=19.03.8
DOCKER_COMPOSE_VERSION=1.25.5
##############################
@geerlingguy
geerlingguy / docker-compose-test.sh
Created March 15, 2020 01:54
Docker Compose exposed port test
# Create test VM with Vagrant.
mkdir testvm && cd testvm
vagrant init geerlingguy/ubuntu1804
# (Edit created Vagrantfile and uncomment `config.vm.network "private_network"` line)
# Start the VM and log in.
vagrant up
vagrant ssh
# Flush iptables rules (allow access to any port).
@mikybars
mikybars / .gitlab-ci.yml
Last active February 8, 2022 10:05
Maven & GitLab CI setup to deploy to a Nexus server
variables:
NEXUS_URL: XXX
NEXUS_USER: XXX
NEXUS_PWD: XXX
SNAPSHOT_DEPLOYMENT_REPOSITORY: ${NEXUS_URL}/repository/maven-snapshots/
RELEASE_DEPLOYMENT_REPOSITORY: ${NEXUS_URL}/repository/maven-releases/
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode --errors --fail-at-end --show-version"
MAVEN_CLI_POST_OPTS: "-Dnexus.url=${NEXUS_URL} -Dmaven.repo.local=.m2"
deploy:
package eu.janbednar.stackoverflow.camelTest;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.RoutesBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Assert;
import org.junit.Test;
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active September 23, 2025 15:11
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ccy
ccy / delphi.async.md
Last active December 21, 2023 01:57

DEPRECATED: Refer to delphi-ppl

UI design strategy for long running task

A long running task may cause the application runtime become unresponsive and lead perception of application halt or hang during the operation.

For example:

  1. A database backup operation spend 10 minutes to finish.
  2. Perform length report calculation