Quickly switch between your audio devices.
Script uses pactl - Pulse Audio Control. It uses the ID of your audio sinks (line 4, 5)
- Move the script to your home directory e.g ~/Scripts/audio_switch.sh
[ | |
{ | |
"context": "Editor", | |
"bindings": { | |
"alt-up": "editor::MoveLineUp", | |
"alt-down": "editor::MoveLineDown", | |
"alt-shift-down": "editor::DuplicateLine", | |
"alt-shift-up": ["workspace::SendKeystrokes", "alt-shift-down up"], | |
"cmd-shift-k": "editor::DeleteLine" | |
} |
mkdir ~/global-git-hooks | |
code ~/global-git-hooks/pre-commit | |
chmod +x ~/global-git-hooks/pre-commit | |
git config --global core.hooksPath ~/global-git-hooks |
{"LION":{"latency":183.540149,"download":18.95268006495637,"upload":13.125318661571571,"timestamp":"2023-08-11T12:09:08.312074035+04:00"},"MARS":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.495608854+04:00"},"METISS":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.541537373+04:00"},"SAFE1":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.358202271+04:00"},"SAFE2":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.404005203+04:00"},"SAFE3":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.449744506+04:00"}} |
/* | |
//INPUT | |
API_KEY | |
SHEET_ID | |
SHEET_NAME(optional) | |
// Returns | |
headers | |
items(formatter as { header: value } |
[ | |
{ "keys": ["ctrl+shift+l"], "command": "find_all_under" }, | |
{ "keys": ["ctrl+f2"], "command": "find_all_under" }, | |
{ "keys": ["alt+shift+i"], "command": "split_selection_into_lines" }, | |
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+shift+b"], "command": "build" }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }, |
#!make | |
include .env | |
export $(shell sed 's/=.*//' .env) | |
build: | |
@echo "hi ${SOURCE_DATABASE_NAME}" | |
export: | |
@(docker exec -i ${SOURCE_CONTAINER_ID} mysqldump -u ${SOURCE_DATABASE_USERNAME} -p${SOURCE_DATABASE_PASSWORD} ${SOURCE_DATABASE_NAME}) > ../directusdb/dump.sql |
<template> | |
<div> | |
<label>{{ label }}</label> | |
<input | |
v-on="listeners" | |
v-bind="$attrs" | |
/> | |
</div> | |
</template> |
// Open the developer toosl console and execute the folowing command to get an array of countries listed on the page. | |
// Right click and copy object for convenience. | |
// For use on this page: https://www.cdc.gov/coronavirus/2019-ncov/locations-confirmed-cases.html | |
let nodes = document.querySelectorAll(".syndicate li"); | |
let list = [].slice.call(nodes); | |
let innertext = list.map(function(e) { return e.innerText; }); | |
console.log(innertext); |
const countries = [ | |
"Afghanistan", | |
"Austria", | |
"Azerbaijan", | |
"Bahamas", | |
"Bahrain", | |
"Bangladesh", | |
"Barbados", | |
"Belarus", | |
"Belgium", |