Skip to content

Instantly share code, notes, and snippets.

View README.txt
1. General information
======================
Common Voice is a corpus of speech data read by users on the Common Voice website (http://voice.mozilla.org/), 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
sloanlance / jq_jsonl_conversion.md
Last active Jan 15, 2023
jq: JSONL ↔︎ JSON conversion
View jq_jsonl_conversion.md

jq: JSONL ↔︎ JSON conversion

  1. JSONL → JSON

    jq -s '.' input.jsonl > output.json
  2. JSON → JSONL

jq -c '.[]' input.json > output.jsonl

@tscholl2
tscholl2 / aes.go
Last active Jan 23, 2023
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
View aes.go
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"
@eshelman
eshelman / latency.txt
Last active Jan 23, 2023 — forked from jboner/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
View latency.txt
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
robertpainsi / README.md
Last active Jan 27, 2023
How to reopen a pull-request after a force-push?
View README.md

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

Precodinitions

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

Instructions

  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
andrewmilson / file-upload-multipart.go
Last active Jan 28, 2023
Golang multipart/form-data File Upload
View file-upload-multipart.go
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
@joepie91
joepie91 / vpn.md
Last active Jan 26, 2023
Don't use VPN services.
View vpn.md

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
mingtsay / ch2nato.js
Last active Oct 27, 2021
NATO phonetic alphabet
View ch2nato.js
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
myusuf3 / delete_git_submodule.md
Created Nov 3, 2014
How effectively delete a git submodule.
View delete_git_submodule.md

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
jwreagor / EmacsKeyBinding.dict
Created Mar 20, 2014
Global Emacs Key Bindings for OS X
View EmacsKeyBinding.dict
{
/* 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.
*
* BEWARE:
* 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