Skip to content

Instantly share code, notes, and snippets.

View dmryabov's full-sized avatar

Dmitry Ryabov dmryabov

View GitHub Profile
// ==UserScript==
// @name Twitch Constant Quality
// @description Prevents automatic stream quality degradation when tab is hidden.
// @match *://*.twitch.tv/*
// @namespace https://gist.github.com/dmryabov/
// @version 1.4
// @grant none
// @run-at document-start
// @downloadUrl https://gist.githubusercontent.com/dmryabov/9342068195602bd71c2e387af4524556/raw/twitch-constant-quality.js
// ==/UserScript==
# -*- shell-script -*-
_complete_elixir_iex()
{
local cur prev opts name completion_file
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
name=$1
completion_file="/tmp/.elixir_completion/${name}"