Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am epheo on github.
  • I am epheo (https://keybase.io/epheo) on keybase.
  • I have a public key whose fingerprint is 756A A3BA 2CA6 2D77 9ECA 7CDA 2325 D5DC 18BD 7C7E

To claim this, I am signing this object:

@epheo
epheo / make_playlists.py
Last active April 5, 2017 03:15
Make Playlists from files folders in Koel
#!/usr/bin/python
from sqlalchemy.engine import create_engine
engine = create_engine('mysql://koel-db-user:password@localhost/koel', echo=True)
connection = engine.connect()
song_paths = connection.execute("SELECT path from songs;")
db_playlists_names = connection.execute("SELECT name from playlists;")
# In my case PATH is sonething like:
# /foo/bar/foo/bar/foo so I need to split 6, To adapt
@epheo
epheo / lxc-centos
Created August 18, 2013 00:57 — forked from hagix9/lxc-centos
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors: