Skip to content

Instantly share code, notes, and snippets.

View anjandev's full-sized avatar
😈
On sourcehut!

Anjan Momi anjandev

😈
On sourcehut!
View GitHub Profile
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.34-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@anjandev
anjandev / phonesync.sh
Last active February 15, 2016 08:39
sync playlist files to phone
#! /bin/bash
#sync playlist files to phone
#MAKE SURE THIS FILE IS RAN FROM ~/Scripts
# add save_absolute_paths_in_playlists "yes" to your mpd.conf and regenerate playlists
cat ~/.mpd/playlists/phone.m3u | grep -v '#' | \
while read i; do cp -vu "${i}" /var/run/user/1000/gvfs/*/*/Music; done
BASEDIR=/var/run/user/1000/gvfs/
cd $BASEDIR`ls $BASEDIR | head -n 1`/Internal\ storage/Music