Skip to content

Instantly share code, notes, and snippets.

@Sieboldianus
Sieboldianus / README.md
Last active December 27, 2025 06:03
An opinionated nextcloud ignore list for developers (sync-exclude.lst)

An opinionated nextcloud ignore list for developers (sync-exclude.lst)

The latest nextcloud server versions will have ransomware detection automatically enabled, meaning that syncing common developer file types (e.g. .lock) will return errors.

Fatal webdav OCA\DAV\Connector\Sabre\Exception\Forbidden: Ransomware file detected. Prevented upload of ..py/bokeh/secrets.tar.enc because it matches extension pattern ".enc"

If you are syncing complex, nested work directories as a developer, the following

@sussycatgirl
sussycatgirl / mailcow_wg.md
Created February 27, 2022 14:49
Tunneling a Mailcow server through a remote server using Wireguard

Tunneling a Mailcow server through Wireguard

Mailcow is a easy to set up Mailserver running in Docker.

Unfortunately, most ISPs block port 25. In addition to that, residential IP addresses are generally blacklisted, making it impossible to self-host a mailserver at home. Mailcow by itself requires at least 6GB of RAM, which makes hosting it on a VPS rather expensive.

The solution: Running Mailcow at home and tunneling it's traffic through a cheap VPS.

The final setup will look like this:

(для Debian пути и команды могут отличаться)
sudo apt-get --purge remove mariadb*
sudo apt-get autoremove
sudo apt-get autoclean
если возникают ошибки при удалении -
заходим в папку /var/lib/dpkg/info
и удаляем там всё что начинается на mariadb и на mysql
повторяем предыдущие три команды
@zmts
zmts / aboutNodeJsArchitecture.md
Last active May 7, 2024 15:27
A little bit about Node.js API Architecture

A little bit about Node.js API Architecture (Архитектура/паттерны организации кода Node.js приложений)

node.js

TL;DR

code: https://github.com/zmts/supra-api-nodejs

Предисловие

Одной из болезней Node.js комьюнити это отсутствие каких либо крупных фреймворков, действительно крупных уровня Symphony/Django/RoR/Spring. Что является причиной все ещё достаточно юного возраста данной технологии. И каждый кузнец кует как умеет ну или как в интернетах посоветовали. Собственно это моя попытка выковать некий свой подход к построению Node.js приложений.

@fearrr
fearrr / phone_regexp.md
Last active December 4, 2025 17:32
Регулярное выражение для мобильных и городских номеров России и СНГ

Регулярное выражение для мобильных и городских номеров России и СНГ

Страны:

  • Армения (+374),
  • Азербайджан (+994)
  • Грузия (+995)
  • Беларусь (+375)
  • Россия/Казахстан (+7)
  • Украина (+380, +38)
@hirejordansmith
hirejordansmith / magnific-popup-gallery-image-plus-video.js
Last active February 5, 2025 08:47
How to show images and video in Magnific Popup Gallery
@thiagoeliasr
thiagoeliasr / swiper-magnific-popup.js
Created August 13, 2015 13:27
Adding swipe support to Magnific Popup galleries. (touchSwipe is required: http://labs.rampinteractive.co.uk/touchSwipe/demos/)
(function() {
/* Define a variável que dá swipe no lightbox */
var magnificPopup = $.magnificPopup.instance;
/* Carrega a função quando clica no lightbox (senão não pega a classe utilizada) */
$("a.image-lightbox").click(function(e) {
/* Espera carregar o lightbox */
setTimeout(function() {
/* Swipe para a esquerda - Próximo */
@diproart
diproart / bitrix.nginx
Last active April 21, 2021 18:55
Bitrix 15.x.x / Php-Fpm / Nginx
# bitrix virtual host
# @version 1.0.1
server {
set $id user;
set $domain server.com;
set $folder default;
set $socket unix:/var/run/php5-bx-fpm.sock;
charset utf-8;
@Ellrion
Ellrion / php-restrictions.nginxconf
Last active April 3, 2025 19:15
Nginx + Php-fpm config for Laravel app
# /etc/nginx/global/php-restrictions.conf
# Don't throw any errors for missing favicons and don't display them in the logs
location = /favicon.ico {
log_not_found off;
access_log off;
}
# Don't log missing robots or show them in the nginx logs
location = /robots.txt {
allow all;