Skip to content

Instantly share code, notes, and snippets.

View Machurui's full-sized avatar

François Serra Machurui

View GitHub Profile
@Machurui
Machurui / quarry.js
Last active October 4, 2025 15:01
Modern Industrialization drill not consumed - quarry - KubeJS
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10: To the Sky.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.recipes((event) => {
event.remove([
'modern_industrialization:quarry/bronze',
'modern_industrialization:quarry/steel',
'modern_industrialization:quarry/stainless_steel',
'modern_industrialization:quarry/titanium',
'modern_industrialization:quarry/copper',
@Machurui
Machurui / drilling.js
Last active October 3, 2025 14:45
Modern Industrialization drill not consumed - oil drilling - KubeJS
ServerEvents.recipes((event) => {
// Add recipe to remove
event.remove([
'modern_industrialization:oil/crude_oil',
'modern_industrialization:oil/shale_oil',
'modern_industrialization:oil/water'
])
// Oil Drilling pattern
@Machurui
Machurui / ExchangeSpam.ps1
Last active January 29, 2025 14:39
Preventing Email Spam in Exchange and Disabling Suspicious Accounts
# Exchange library | Local installation
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
# Exchange credentials session Exchange not tested
# $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://your.exchange.server/PowerShell/ -Authentication Kerberos
# Import-PSSession $session -DisableNameChecking
# Credentials session Exchange
$username = ""
@Machurui
Machurui / QueuedMessages.ps1
Created January 29, 2025 10:40
To monitor the messages queued across various servers.
# Get the name of the servers to check
$servers = @("example1", "example2", "example3")
# Variables
$totalMessages = 0
$messageSubject = "Too many messages in the queue"
$maxMessages = 100
# SMTP configuration
$smtpFrom = "myAddress@example.com"