Skip to content

Instantly share code, notes, and snippets.

View takase1121's full-sized avatar

Takase takase1121

View GitHub Profile
@TheCrazyMax
TheCrazyMax / youtube.lua
Last active April 29, 2020 18:04
Vlc youtube single video or playlist
--[[
$Id$
Copyright © 2007-2018 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@mousebyte
mousebyte / coc-discord-rpc-wsl-passthrough.md
Last active March 4, 2024 08:34
coc-discord-rpc on WSL: passthrough to Discord on host Windows

Using coc-discord-rpc on WSL

You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.

Get npiperelay and socat

To build npiperelay, you'll need [Go][]. Grab the golang package from your favorite package manager and follow the instructions on the [npiperelay][] repo. You'll also need to install socat if it doesn't come with your distribution.