Skip to content

Instantly share code, notes, and snippets.

View jnlsn's full-sized avatar
🦆
Typing

Jay Nielsen jnlsn

🦆
Typing
View GitHub Profile
@crittermike
crittermike / d8-drushless-revert.sh
Created September 15, 2016 13:20
Revert configuration in Drupal 8 with Drush (without using Features)
drush cim -y --partial --source=modules/path/to/module/config/install/
@oleq
oleq / _README.md
Last active July 1, 2024 21:37
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |
@dbrgn
dbrgn / mixins.py
Last active September 13, 2018 20:44
Moved to https://github.com/dbrgn/drf-dynamic-fields
@chhantyal
chhantyal / get_upload_path.py
Last active May 31, 2019 18:32
get dynamic upload path and slugify in Django
from django.db import models
from django.utils.text import slugify
class Document(models.Model):
def get_upload_path(self, filename):
"""
Returns the upload path for docs
"""
filename = filename.split('.')
extension = filename.pop()