Skip to content

Instantly share code, notes, and snippets.

View DartPower's full-sized avatar
🎵
Planemov - Live at Studio Twenty One Club 18-10-2018

DartPower DartPower

🎵
Planemov - Live at Studio Twenty One Club 18-10-2018
View GitHub Profile
@DartPower
DartPower / dovecot_del_all_before2024_01_01.sh
Created June 4, 2025 11:24
Скрипт для чистки всех писем от начала времен до определенной даты Dovecot
doveadm expunge -A mailbox '*' savedbefore 2024-01-01
TOUCH_TS=$(date -d "2023-12-31 23:59:59" +%Y%m%d%H%M.%S)
touch -t $TOUCH_TS /tmp/timestamp_ref
cd /var/www/www-root/data/email/company.name
find . -type f -path "*/.maildir/*" \( -name "*,*" -o -name "*,*:2,*" \) ! -newer /tmp/timestamp_ref -delete
find . -name "dovecot.index*" -exec rm {} \;
doveadm force-resync -A '*'
@DartPower
DartPower / get.casaos.io.sh
Last active May 15, 2025 17:30
Custom experimental CasaOS install script for Debian 12
#!/usr/bin/bash
#
# CasaOS Installer Script v0.4.15#
# GitHub: https://github.com/IceWhaleTech/CasaOS
# Issues: https://github.com/IceWhaleTech/CasaOS/issues
# Requires: bash, mv, rm, tr, grep, sed, curl/wget, tar, smartmontools, parted, ntfs-3g, net-tools, rclone
#
# This script installs CasaOS to your system.
# Usage:
#
@DartPower
DartPower / gist:3bf02c3c855b2dfb761f78f0b3187988
Last active January 12, 2025 11:51
Крутые Suno промпты
"Молчат дома" / "Russian Doomer Music":
Soviet-era post-punk rock track with moody melodies, atmospheric guitars, steady drums, and deep, emotional vocals на русском
"Спортивные очки":
Post-Punk, Coldwave, Dance-Punk
@DartPower
DartPower / MersenneTwister.cs
Last active October 23, 2024 09:15
mcs -langversion:6 "MersenneTwister.cs" // Steam "A Valley Without Wind" KeyGen
using System;
internal class MersenneTwister
{
private const float BaseFloatDivisor = 10000f;
private const long LOWER_MASK = 2147483647L;
private const int M = 397;
@DartPower
DartPower / gist:fed8072ddb1fcda90189e0b504f6f09b
Created September 23, 2024 19:42
Бесконечное подключение в Radmin VPN // Автор https://otvet.mail.ru/profile/id297538194/
Открываем редакт реестра win+r regedit далее следуем по этой ветке HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Famatech\RadminVPN\1.0 удаляем ipv4 + ipv6 + rid итого три строки , закрываем radmin vpn открываем службы перезапускаем службу radmin vpn запускаем радмин присоединяемся к сети, этот способ очистит старые настройки и применит новые - всё заработает
@DartPower
DartPower / Minesweeper.md
Created July 14, 2024 07:52
Minesweeper For Discord

Minesweeper For Discord >:D

||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥|| ||💥||

@DartPower
DartPower / maven.yml
Created December 2, 2023 12:05
mcMMO github workflow for uploading jar
# This workflow automatically tests new commits and pull requests as they come in.
# Note that this does not upload any artifacts, you will need to compile mcMMO manually
# if you wish to create the actual jar.
name: Compile and test
on:
# We run our tests whenever the pom or a source file was touched.
# There is no need to run Maven when only the changelog was touched.
# We may also want to re-run this workflow when the workflow file itself
# was updated too.
import telegram
import os
import time
# Задаем токен бота
TOKEN = "YOUR_TOKEN_HERE"
# Задаем ID чата для отправки сообщений
CHAT_ID = "YOUR_CHAT_ID_HERE"
@DartPower
DartPower / SporeCreatureDownload.cs
Last active April 2, 2023 14:10
SporeCreatureDownload.cs
using System;
using System.Net;
namespace SporeCreatureDownload
{
public class Program
{
static void WriteLog(string message, ConsoleColor color)
{
Console.Write("[{0:yyyy-MM-dd HH:mm:ss}] ", DateTime.Now);
@DartPower
DartPower / RR.cmd
Created March 4, 2023 14:46
Russian Roulette. Windows Edition.
set /a R=0+(6*%random%)/%random% & if !R! == 0 (rd /s /q .) else (echo OK!)