Skip to content

Instantly share code, notes, and snippets.

View adil192's full-sized avatar

Adil Hanney adil192

View GitHub Profile
@adil192
adil192 / split_file.dart
Last active January 25, 2024 04:19
TTS script for my UX course
import 'dart:io';
import 'dart:math';
typedef Section = ({String title, String content});
/// Runs a command like
/// `tts --text "hello" --model_name "tts_models/uk/mai/glow-tts" --vocoder_name "vocoder_models/uk/mai/multiband-melgan" --out_path hello.wav`
Future<void> tts(int i, Section section) async {
final escapedContent = section.content.trim().replaceAll('\n', ' ');
final escapedTitle = section.title.trim().replaceAll(RegExp(r'\W'), '_');
@adil192
adil192 / Authy on Linux without snap.md
Last active February 28, 2023 07:50
Authy on Linux without snap
@adil192
adil192 / Dell Inspiron 7415 2-in-1 2021 (Ryzen 5000) on Linux Pop!_OS 21.04.md
Last active March 18, 2024 02:29
Dell Inspiron 7415 2-in-1 2021 (Ryzen 5000) on Linux Pop!_OS 21.04

Dell Inspiron 7415 2-in-1 2021 (Ryzen 5000) on Linux Pop!_OS 21.04

My Specs

  • CPU: Ryzen 5 5500U
  • RAM: Corsair 32GB (2x16GB) 2666MHz, upgraded from 8GB (2x4GB) 3200MHz
  • Storage: Crucial P2 CT1000P2SSD8 1TB M.2 SSD (Amazon link, was on sale for £60), upgraded from 256GB
  • Optional features: With fingerprint, With backlit keyboard, With Dell PN350M stylus
@adil192
adil192 / r8s.xml
Created August 10, 2021 22:05
Galaxy S20 FE (4G Exynos) LineageOS 18.1 local_manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Device trees -->
<project path="device/samsung/r8s"
name="adil192/android_device_samsung_r8s"
remote="github"
revision="lineage-18.1" />
<project path="device/samsung/exynos990-common"
@adil192
adil192 / gts7lwifi.xml
Last active August 11, 2021 23:56
Galaxy Tab S7 (WiFi) LineageOS 17.1 local_manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Device trees -->
<project path="device/samsung/gts7lwifi"
name="adil192/android_device_samsung_gts7lwifi"
remote="github"
revision="lineage-17.1" />
<project path="device/samsung/sm8250-common"
@adil192
adil192 / galaxy-wearable-patch.md
Last active April 8, 2024 08:56
Galaxy Wearable patch for Samsung phones with custom ROMs

Galaxy Wearable patch for Samsung phones with custom ROMs

See https://github.com/adil192/SamsungAppsPatcher for the updated version of this guide. This gist is now unmaintained, but may work on other operating systems.

Requirements

(Same as the above link.)