Skip to content

Instantly share code, notes, and snippets.

@darnir
darnir / Sway Debug
Last active January 16, 2018 14:38
Sway Version: 0.15.1
Config File: ~/.local/etc/sway/config (Empty file)
Debug Log:
I: 01/16/18 15:28:05 - [main.c:250] Linux tardis 4.14.13-1-ARCH #1 SMP PREEMPT Wed Jan 10 11:14:50 UTC 2018 x86_64 GNU/Linux
I: 01/16/18 15:28:05 - [main.c:222] Contents of /etc/os-release:
I: 01/16/18 15:28:05 - [main.c:229] NAME="Arch Linux"
I: 01/16/18 15:28:05 - [main.c:229] PRETTY_NAME="Arch Linux"
@darnir
darnir / Stream.sh
Created September 24, 2017 08:09
Stream from server
stream ()
{
local URL="$1";
local MPV_PARAM="${@:2}";
local USER="go7box";
local PASS=$(pass Server/rutorrent/${USER});
local _final_url=$(sed -e "s#\(https://\)#\1${USER}:${PASS}@#" <<< "$URL");
echo "$_final_url";
mpv --cache=2048000 --cache-secs=1000 "$MPV_PARAM" "$_final_url"
}
# for background in 16 color terminal, valid background colors include:
# base03, bg, black, any of the non brights
# style notes:
# when bg=235, that's a highlighted message
# normal bg=233
# basic colors ---------------------------------------------------------
# color normal brightyellow default
color error color196 color235 # message line error text

Keybase proof

I hereby claim:

  • I am darnir on github.
  • I am darnir (https://keybase.io/darnir) on keybase.
  • I have a public key ASDnNP9K0C9qGY5UMkx-UYgvVRp8DzPk2GQjMiUzvhv0ygo

To claim this, I am signing this object:

@darnir
darnir / openpgp.txt
Created July 19, 2016 09:38
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7845120b07cbd8d6ece5ff2b2a1743eda91a35b6]