Skip to content

Instantly share code, notes, and snippets.

View louisroyer's full-sized avatar

Louis Royer louisroyer

View GitHub Profile
@louisroyer
louisroyer / remove-bloatwares.sh
Created January 8, 2023 12:46
Remove some bloatwares on motorola e32(s)
#!/usr/bin/env bash
# motorola e32(s) - Android 12
adb shell pm uninstall --user 0 com.google.android.youtube
adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall --user 0 com.google.android.apps.googleassistant
adb shell pm uninstall --user 0 com.android.companiondevicemanager
adb shell pm uninstall --user 0 com.motorola.ccc.notification
adb shell pm uninstall --user 0 com.motorola.timeweatherwidget
adb shell pm uninstall --user 0 com.google.android.apps.tachyon
adb shell pm uninstall --user 0 com.facebook.services
@louisroyer
louisroyer / remove-bloatwares.sh
Last active May 1, 2023 11:03
Remove some bloatwares on Redmi 9 NFC
#!/usr/bin/env bash
# Redmi 9 NFC
adb shell pm uninstall --user 0 com.google.android.youtube
adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall --user 0 com.android.chrome
adb shell pm uninstall --user 0 com.facebook.services
adb shell pm uninstall --user 0 com.facebook.system
adb shell pm uninstall --user 0 com.facebook.appmanager
adb shell pm uninstall --user 0 com.mi.globalbrowser
adb shell pm uninstall --user 0 com.mi.global.shop
@louisroyer
louisroyer / voe-player-domain.py
Last active February 20, 2023 17:52
Update voe player domain on MALSync playerUrls.js
#!/usr/bin/env python3
import requests
import os
filename = os.path.expanduser(f'src/pages/playerUrls.js')
proto = 'https'
fake_video_id = '0123456789ab'
r = requests.head(f'{proto}://voe.sx/e/{fake_video_id}')
if r.status_code == 302:
@louisroyer
louisroyer / dpgmedia-redirect.py
Last active February 19, 2024 15:37
Makes dpgmedia URLs readable, and remove tracking parameters
#!/usr/bin/env python3
# https://fr.wikipedia.org/wiki/Wikipédia:Bulletin_des_patrouilleurs#myprivacy.dpgmedia.be
import sys
from urllib.parse import urlparse
from urllib.parse import parse_qsl
if len(sys.argv) < 2:
raise Exception("2nd argument must be present with the URL")
srcurl = sys.argv[1]
@louisroyer
louisroyer / get_ip_addresses.py
Created August 1, 2023 18:44
Get IP addresses (livebox)
#!/usr/bin/env python3
import subprocess
import netifaces
import ipaddress
INTERFACE = 'enxb827eba3323d'
ipv4 = subprocess.check_output('./livebox.sh').decode('utf-8').strip()
for ip in netifaces.ifaddresses(INTERFACE)[10]:
ip_i = ipaddress.ip_address(ip['addr'])
@louisroyer
louisroyer / crash.sh
Last active September 15, 2023 09:19
Bug reproduction script (https://github.com/shynuu/trunks/issues/6). Warning: running this will crash your computer.
#!/usr/bin/env bash
if [[ ($# != 1) || ("$1" != "--yes-i-want-to-crash-my-computer") ]]; then
echo "If you are sure to be ready to crash your computer, re-run with \`--yes-i-want-to-crash-my-computer\`"
exit 1
fi
OUT_FILE="crash-environment-$(date --iso-8601).txt"
TC=$(which tc)
if [[ "$TC" = "" ]]; then
@louisroyer
louisroyer / inscription_hss.py
Last active March 14, 2024 14:04
Inscription d’un User Equipment dans la HSS d’OpenAirInterface
#!/usr/bin/env python3
#
# Copyright (c) 2024 Louis Royer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@louisroyer
louisroyer / README.md
Last active August 10, 2024 16:57
Transcoding of haruhi related kara with off vocal sync
@louisroyer
louisroyer / anime-winter-2024.md
Last active October 30, 2025 18:17
Anime OP/ED missing from the Winter 2024 playlist

Anime OP/ED missing from the Winter 2024 playlist.

  • 30-sai made Doutei dato Mahoutsukai ni Nareru Rashii
    • OP: Hajimete wa Zenbu Kimi ga Ii
    • ED: Magical Love
  • Akuyaku Reijou Level 99: Watashi wa Ura-Boss desu ga Maou dewa Arimasen
    • OP1: Ray of Light
    • OP2: LOVE or HATE?
    • ED: Suki ga Rebechi
  • Ao no Exorcist: Shimane Illuminati-hen
@louisroyer
louisroyer / anime-spring-2024.md
Last active June 17, 2025 16:39
Anime OP/ED missing from the Spring 2024 playlist

Anime OP/ED missing from the Spring 2024 playlist.

  • Astro Note
    • OP: Hohoemi no Oto
    • ED: Kokoro no Kagi
  • Bartender: Kami no Glass
    • OP: Stardust Memory
    • ED: Spica
  • Boku no Hero Academia S7
  • OP1: Tagatame