Skip to content

Instantly share code, notes, and snippets.

@nullchilly
nullchilly / coc-pylance.md
Last active May 11, 2024 10:31
Add pylance to coc.nvim

Install the pylance extension in vscode or manually download it from the marketplace

The extension path should be similar to this: ~/.vscode/extensions/ms-python.vscode-pylance-2023.11.10

In init.vim, this will automatically detect the latest pylance version because after an upgrade the old plugin might linger for a while:

call coc#config('languageserver', { "pylance": { "module": expand("~/.vscode/extensions/ms-python.vscode-pylance-*/dist/server.bundle.js", 0, 1)[0] } })
@srcrip
srcrip / .eslintrc.cjs
Last active August 30, 2023 21:36
Standard ESLint Setup for Svelte
module.exports = {
env: {
browser: true,
es2022: true
},
extends: [
'standard',
'eslint:recommended'
],
parser: '@typescript-eslint/parser',
@ntamvl
ntamvl / disk-speed-test-read-write-hdd-ssd-perfomance-linux.md
Created May 4, 2018 08:25
Disk Speed Test (Read/Write): HDD, SSD Performance in Linux

Disk Speed Test (Read/Write): HDD, SSD Performance in Linux

From this article you’ll learn how to measure an input/output performance of a file system on such devices as HDD, SSD, USB Flash Drive etc.

I’ll show how to test the read/write speed of a disk from the Linux command line using dd command.

I’ll also show how to install and use hdparm utility for measuring read speed of a disk on Linux Mint, Ubuntu, Debian, CentOS, RHEL.

Take the average result: To get the accurate read/write speed, you should repeat the below tests several times (usually 3-5) and take the average result.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 29, 2024 03:21 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy