Skip to content

Instantly share code, notes, and snippets.

@gkwurst
gkwurst / piler.sh
Last active November 3, 2025 07:28
Installation script for Mail Piler (open source version) with Manticore on Ubuntu 24.04 Noble (credit cmer)
#!/bin/bash
#
#
# This script installs the latest open source version of Mail Piler (mailpiler.org) from the master
# branch on GitHub by compiling it from source. It also installs all dependencies, including a MySQL database.
#
# You should run this script as root on a vanilla Ubuntu 24.04 installation.
#
#
set -o errexit
@ingestbot
ingestbot / syncthing_api_examples.md
Created May 11, 2024 23:14
Syncthing API Examples
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@sirbusby
sirbusby / zfs
Last active April 26, 2023 22:14
journalctl -b
# zfs_settings
Настройки zfs
arcstat - посмотреть статистику кэша:
nano /etc/modprobe.d/zfs.conf # настраиваем zfs:
Вносим в zfs.conf
options zfs zfs_arc_max=8589934592 # ограничиваем кэш
@Kirill
Kirill / crserver.service
Created September 4, 2018 08:58
/etc/systemd/system/crserver.service для Хранилища конфигураций 1С CentOS
[Unit]
Description=crserver
After=syslog.target
After=network.target
[Service]
Type=forking
WorkingDirectory=/opt/1C/v8.3/i386
User=usr1cv8
Group=grp1cv8
@vilkoz
vilkoz / setup_http_server_on_android_with_termux.md
Last active November 17, 2025 02:22
setup http server on android with termux

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@brianherman
brianherman / jessie-mssql.md
Last active June 15, 2018 19:00
Debian Jessie and mssql-server

Download mssql from the microsoft website.

wget https://packages.microsoft.com/ubuntu/16.04/mssql-server/pool/main/m/mssql-server/mssql-server_14.0.1.246-6_amd64.deb

dpkg -i mssql-server_14.0.1.246-6_amd64.deb 

The next command will install dependancies.

sudo apt-get -f install 
renames.txt eol=crlf
*.bsl eol=crlf
@SmartFinn
SmartFinn / dhcp-leases-to-dns.rsc
Last active October 22, 2025 21:55
MikroTik (RouterOS) script for automatically setting DNS records for clients when they obtain a DHCP lease
# MikroTik (RouterOS) script for automatically setting DNS records
# for clients when they obtain a DHCP lease.
#
# author SmartFinn <https://gist.github.com/SmartFinn>
:local dnsTTL "00:15:00";
:local token "$leaseServerName-$leaseActMAC";
# Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone")
# - truncate length to 63 chars
#!/bin/sh
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home
echo 'Starting wgeter latest develops'
wget --continue http://oscript.io/downloads/night-build/latest.zip
unzip -o latest.zip -d osc-engine