Skip to content

Instantly share code, notes, and snippets.

@SpiritCroc
SpiritCroc / maunium_to_emote.py
Last active April 2, 2023 12:23
Convert stickers from a maunium stickerpicker to a MSC2545-enabled sticker pack to paste into /devtools, while reusing existing mxc-urls
#!/usr/bin/env python3
import argparse
import emoji
import urllib.request
import json
import sys
parser = argparse.ArgumentParser(description="Convert maunium stickerpicker to MSC2545 sticker packs")
parser.add_argument("--baseurl", help="Maunium sticker picker URL")
#!/usr/bin/env python3
# A script to set room-specific display names for your Matrix (-> https://matrix.org) account
# for all your joined rooms, depending on whether the room members are personal contacts or not.
# Requires the matrix-nio library.
#
# Before execution, adapt at least following values:
# - MY_HOMESERVER
# - MY_MX_ID
# - PERSONAL_SERVERS
#!/bin/sh
#
# Author:
# SpiritCroc <spiritcroc@gmail.com>
#
workdir="$HOME/.watchrepo"
repodir="$workdir/repo"
rememberfile="$workdir/remember"
tmprememberfile="$workdir/tmpremember"
#!/bin/bash
# Settings
data_folder="/home/spiritcroc/ROMs/scripts/sonyaospbuild/"
n_patch_script="/home/spiritcroc/ROMs/scripts/sony_n_patch.sh"
m_patch_script="/home/spiritcroc/ROMs/scripts/sony_mm_patch.sh"
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- AOSP-based device tree: -->
<remote name="sony" fetch="git://github.com/sonyxperiadev/" />
<remote name="omnirom" fetch="git://github.com/omnirom" />
<remote name="SpiritCroc" fetch="git://github.com/SpiritCroc/" />
<project name="android_device_sony_amami" path="device/sony/amami" remote="SpiritCroc" revision="AICP-mm6.0" />
<project name="android_device_sony_rhine-common" path="device/sony/rhine-common" remote="SpiritCroc" revision="AICP-mm6.0" />
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="sony" fetch="git://github.com/sonyxperiadev/" />
<remote name="omnirom" fetch="git://github.com/omnirom" />
<remote name="SpiritCroc" fetch="git://github.com/SpiritCroc/" />
<remove-project name="android_hardware_qcom_camera" />
<project name="android_device_sony_amami" path="device/sony/amami" remote="SpiritCroc" revision="DU-m" />
#!/bin/sh
# Tool to create android bootanimations from an original ("raw") resolution to others
# that are specified by an existing folder named after the resolution
# (e.g. "1600" for 1600x1600)
# Only square images supported right now
raw="3200"
log_level=1