Skip to content

Instantly share code, notes, and snippets.

1. General information
Common Voice is a corpus of speech data read by users on the Common Voice website (, and based upon text from a number of public domain sources like user submitted blog posts, old books, movies, and other public speech corpora. Its primary purpose is to enable the training and testing of automatic speech recognition (ASR) systems, but we encourage its use for other purposes as well.
2. Structure
The corpus is split into several parts for your convenience. The subsets with “valid” in their name are audio clips that have had at least 2 people listen to them, and the majority of those listeners say the audio matches the text. The subsets with “invalid” in their name are clips that have had at least 2 listeners, and the majority say the audio does *not* match the clip. All other clips, ie. those with fewer than 2 votes, or those that have equal valid and invalid votes, have “other” in their name.
sloanlance /
Last active July 17, 2024 15:43
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion


  • jq — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq


tscholl2 / aes.go
Last active July 10, 2024 05:38
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
eshelman / latency.txt
Last active May 7, 2024 17:49 — forked from jboner/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles
robertpainsi /
Last active June 11, 2024 13:24
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?


  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.


  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :
andrewmilson / file-upload-multipart.go
Last active June 29, 2024 14:07
Golang multipart/form-data File Upload
package main
import (
joepie91 /
Last active July 20, 2024 13:53
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
mingtsay / ch2nato.js
Last active October 27, 2021 09:58
NATO phonetic alphabet
function ch2nato(ch) {
switch (ch.toLowerCase()) {
case "a": return "ALPHA";
case "b": return "BRAVO";
case "c": return "CHARLIE";
case "d": return "DELTA";
case "e": return "ECHO";
case "f": return "FOXTROT";
case "g": return "GOLF";
case "h": return "HOTEL";
myusuf3 /
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
jwreagor / EmacsKeyBinding.dict
Created March 20, 2014 18:41
Global Emacs Key Bindings for OS X
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally