Skip to content

Instantly share code, notes, and snippets.

View eriktodx's full-sized avatar

Erik Kralj eriktodx

View GitHub Profile
@eriktodx
eriktodx / gist:86fb0d95a1801cf0cca16c4e644dfbf4
Last active May 22, 2025 15:43
Script to delete all emails from Proton Mail
/**
* Proton Mail - Delete All Mail Script
*
* This script deletes all mail from Proton Mail by
* clicking Select all messages button, waiting and
* clicking trash button. This is repeated indefinitely.
*
* 1. Open Proton Mail
* 2. Navigate to Settings -> Messages and Composing
* 3. Change Conversation per page to 200
@eriktodx
eriktodx / gist:cb8cc65d428364d9eb28ca84c375bb1a
Created January 17, 2022 16:24
/etc/systemd/system/monerod.service
[Unit]
Description=Monero Full Node
After=network.target
[Service]
User=monero
Group=monero
WorkingDirectory=~
StateDirectory=monero
LogsDirectory=monero
@eriktodx
eriktodx / gist:b97414df07a8a221e920303eb4b9f2dc
Created January 17, 2022 16:23
/etc/systemd/system/xmrig.service
[Unit]
Description=High performance, open source, cross platform RandomX, KawPow, CryptoNight and AstroBWT CPU/GPU miner.
After=network.target
[Service]
User=root
Group=root
WorkingDirectory=~
StateDirectory=xmrig
LogsDirectory=xmrig
@eriktodx
eriktodx / twitch-channel-points-auto-collect.js
Last active December 27, 2021 08:22
Script to auto collect Twitch Channel points
window.setInterval(() => document.querySelectorAll("button[aria-label=\"Claim Bonus\"]").forEach(e => e.click()), 1000)
@eriktodx
eriktodx / ByteExtensions.cs
Created July 25, 2017 16:04
Extensions for byte and byte[]
using System;
namespace ErikKralj
{
public static class ByteExtensions
{
public static string ToHex(this byte value)
{
return string.Format("{0:X2}", value);
}