Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
## Set newt color palette for dialogs
NEWT_COLORS_0='
root=,blue
'
NEWT_COLORS_1='
root=,blue
checkbox=,blue
@ymkins
ymkins / ur.pls
Created August 30, 2018 11:13
Інтернет-мовлення Українське радіо
[playlist]
File1=http://nrcu.gov.ua:8000/ur1-aacp-ulow
Title1=Українське радіо: Перший # AAC+ 16 кбітс/с
Length1=-1
File2=http://nrcu.gov.ua:8000/ur1-aacplus-l
Title2=Українське радіо: Перший # AAC+ 48 кбітс/с
Length2=-1
File3=http://nrcu.gov.ua:8000/ur1-mp3-l
Title3=Українське радіо: Перший # mp3 56 кбітс/с
@ymkins
ymkins / README.md
Last active February 19, 2018 17:26 — forked from dominikwilkowski/README.md
Flatten javascript objects into a single-depth object with ES6

Flatten a deep javascript object into single-depth object with ES6

Call it via:

const flat = flatten( realDeepObject ),
      flatDotted = flatten( realDeepObject, '', '.' );

Test case:

@ymkins
ymkins / gist:8a659d73fffcfc51db3876c88264a908
Created November 2, 2017 14:13
xfce4-genmon-plugin refresh from service
## https://bugzilla.xfce.org/show_bug.cgi?id=13814#c1
su username -c "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/xfce4-panel --plugin-event=genmon-1:refresh:bool:true"
@ymkins
ymkins / gist:8c76d5a6520108ea366e79eb6be2c72f
Last active April 7, 2017 09:39 — forked from OleMchls/gist:2384354
Vagrant bash autocomplete
# Autocompletion for Vagrant just put this line in your ~/.bashrc
complete -W "$(vagrant list-commands | awk 'NR>3 {print $1}')" vagrant