Skip to content

Instantly share code, notes, and snippets.

View shuuryou's full-sized avatar

shuuryou

View GitHub Profile
@shuuryou
shuuryou / salvage.ps1
Last active March 11, 2024 10:51
Exchange Server 2010 mailbox export with splitting by year if the mailbox is too large.
# Exchange Server 2010 eats up extreme amounts of memory when exporting large
# mailboxes. This script attempts to provide a workaround by splitting exports
# of mailboxes that are larger than 10 GB into yearly chunks.
#
# This script will obviously create a few PSTs that are empty. You can easily
# spot these by their file size. Empty PSTs are 265 KB in size.
#
# It worked for my one-off use case, but is provided AS-IS and without any
# warranty or guarantees of correctness.
@shuuryou
shuuryou / rosetta.cs
Created February 22, 2024 23:53
Create a TMX file from two TMX files, that has the first file's source language and the second file's destination language.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
@shuuryou
shuuryou / _removebranding.sh
Last active February 8, 2026 01:03
Zammad branding remover: a small shell script that will patch away "Powered by Zammad" and the "Come work for us" banner in the JavaScript console. It also provides a clean way to replace the SVG logos. The script needs to be run after every update.
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
remove_branding() {
local file="$1"
echo " * $file"
perl -i -pe 'BEGIN{undef $/;} s!<div class="poweredBy">.+?</div>!!sig' "$file"
}