Skip to content

Instantly share code, notes, and snippets.

View poqdavid's full-sized avatar
💭
Loading...

poqdavid poqdavid

💭
Loading...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am poqdavid on github.
  • I am poqdavid (https://keybase.io/poqdavid) on keybase.
  • I have a public key whose fingerprint is 99D5 099B B136 FA87 29F1 2F68 389E 2017 0A6C 0797

To claim this, I am signing this object:

<?xml version="1.0" encoding="utf-8"?>
<Tokens>
<Category name="Voices" categoryBase="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore">
<Token name="MSTTS_V110_enUS_ZiraM">
<String name="" value="Microsoft Zira Mobile - English (United States)" />
<String name="LangDataPath" value="%windir%\Speech_OneCore\Engines\TTS\en-US\MSTTSLocenUS.dat" />
<String name="VoicePath" value="%windir%\Speech_OneCore\Engines\TTS\en-US\M1033Zira" />
<String name="409" value="Microsoft Zira Mobile - English (United States)" />
<String name="CLSID" value="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}" />
<Attribute name="Version" value="11.0" />
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_enUS_EvaM]
@="Microsoft Eva Mobile - English (United States)"
"409"="Microsoft Eva Mobile - English (United States)"
"CLSID"="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
"LangDataPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,53,\
00,70,00,65,00,65,00,63,00,68,00,5f,00,4f,00,6e,00,65,00,43,00,6f,00,72,00,\
65,00,5c,00,45,00,6e,00,67,00,69,00,6e,00,65,00,73,00,5c,00,54,00,54,00,53,\
00,5c,00,65,00,6e,00,2d,00,55,00,53,00,5c,00,4d,00,53,00,54,00,54,00,53,00,\
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech_OneCore\Isolated\<Needs to be replaced>\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_enUS_EvaM]
@="Microsoft Eva Mobile - English (United States)"
"LangDataPath"="%windir%\\Speech_OneCore\\Engines\\TTS\\en-US\\MSTTSLocenUS.dat"
"VoicePath"="%windir%\\Speech_OneCore\\Engines\\TTS\\en-US\\M1033Eva"
"409"="Microsoft Eva Mobile - English (United States)"
"CLSID"="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech_OneCore\Isolated\<Needs to be replaced>\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_enUS_EvaM\Attributes]
public static class ParagraphExtention
{
public static void Append(this Paragraph paragraph, string value = "", Brush background = null, Brush foreground = null, bool bold = false, bool italic = false, bool underline = false, bool waitUntilReturn = false)
{
Action append = () =>
{
Inline run = new Run(value);
if (background != null) run.Background = background;
if (foreground != null) run.Foreground = foreground;
MS.Internal.PtsHost.UnsafeNativeMethods.PTS.SecondaryException
HResult=0x80131500
Message=The calling thread cannot access this object because a different thread owns it.
Source=WindowsBase
StackTrace:
at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
at System.Windows.Documents.Paragraph.get_KeepWithNext()
at MS.Internal.Text.DynamicPropertyReader.GetKeepWithNext(DependencyObject element)
at MS.Internal.PtsHost.BaseParagraph.GetParaProperties(FSPAP& fspap, Boolean ignoreElementProps)
@poqdavid
poqdavid / update_dbip
Last active July 22, 2021 11:38
A simple bash script to update database from db-ip.com
#!/bin/bash
DATAFILE=/home/ubuntu/scripts/dbipdata/lastupdate
DATABASEDIR=/home/ubuntu/geoip
DATABASENAME=citylite.mmdb
DATABASEFULLPATH="/home/ubuntu/geoip/citylite.mmdb"
CURRENTDATE=`date +%Y-%m`
LASTUPDATE=``
@poqdavid
poqdavid / howto.md
Last active January 9, 2024 17:49
How to rename author and resign all commits

1. Rename author

Note that filter-repo deletes remote section in .git\config

git filter-repo --mailmap mymailmap --force

or

@poqdavid
poqdavid / setip
Created June 21, 2022 02:12
Sets static IP for Android 11 hotspot
#!/system/bin/sh
NEW_SUBNET='192.168.43'
WIFI_INTERFACE='wlan0'
WIFI_INTERFACE_INFO=$(ip addr show dev ${WIFI_INTERFACE} | grep -m1 "$WIFI_INTERFACE:")
if [[ "$WIFI_INTERFACE_INFO" == *"state UP"* ]]; then
LOCAL_TABLE=$(awk '$2=="local_network" {print $1}' /data/misc/net/rt_tables)
@poqdavid
poqdavid / README_GeoIPDB_Instructions.md
Last active April 9, 2023 22:33
This gist contains a set of scripts and instructions for updating and reading Maxmind and DB-IP databases using bash. The scripts are written in bash and can be used to update the databases on a regular basis. The instructions provide detailed information on how to use the scripts.