Skip to content

Instantly share code, notes, and snippets.

@NSBum
NSBum / anki.html
Created April 20, 2022 11:45
anki tts snippet
<!-- if there's no alternate pronunciation, play the TTS default -->
{{^alt_pronunciation_2}}
{{tts ru_RU voices=AwesomeTTS:sentence_ru_pf}}
{{/alt_pronunciation_2}}
<!-- if an alternate pronunciation is provided, then play it -->
{{#alt_pronunciation_2}}
{{alt_pronunciation_2}}
{{/alt_pronunciation_2}}
@NSBum
NSBum / WD_My_Cloud_EX2.txt
Created April 19, 2023 10:48 — forked from diffficult/WD_My_Cloud_EX2.txt
Fan control notes for WD My Cloud EX2 Ultra
~ # fan_control -?
*** Fan Cobtrol Help Message ***
fan_control b c: for NAS booting
fan_control 0 d : [auto: low/medium/high/max] open debug msg
fan_control 0 c : [auto: low/medium/high/max] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
@NSBum
NSBum / wiki_code_russian_content.py
Created December 20, 2023 21:59
Get wiki code of ru.wikitionary.org entry but only Russian language.
import re
import requests
def get_wiktionary_russian_content(word):
url = "https://ru.wiktionary.org/w/api.php"
params = {
"action": "query",
"format": "json",
"titles": word,
"prop": "revisions",