Skip to content

Instantly share code, notes, and snippets.

View mkwardakov's full-sized avatar

Michael Kwardakov mkwardakov

  • Krasnodar, Russia
View GitHub Profile
# This gist is compatible with Ansible 1.x .
# For Ansible 2.x , please check out:
# - https://gist.github.com/dmsimard/cd706de198c85a8255f6
# - https://github.com/n0ts/ansible-human_log
# 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 3 of the License, or
# (at your option) any later version.
#
@mkwardakov
mkwardakov / vmusic.sh
Created December 25, 2016 18:57
VMusic - An advanced VK music finder/player in bash
#!/bin/bash
PLAYER="mpg123 --utf8 --long-tag"
VMPID="/tmp/vmusic_mainpid"
PLAYERPID="/tmp/vmusic_playerpid"
VMTRACK="/tmp/vmusic_trackurl"
VMINFO="/tmp/vmusic_trackinfo"
SELFNAME="$0"
fetch() {
ACCESS_TOKEN='8426e7c42b7136646ac0c655ea0c09ad97bd80919a04a28d2e5a7860ab10862c3ac4805f27a75e096a589'
ENDPOINT="https://api.vk.com/method/audio.search"