Skip to content

Instantly share code, notes, and snippets.

View yomguy's full-sized avatar

Guillaume Pellerin yomguy

View GitHub Profile
@yomguy
yomguy / nv-linux.h_rt.patch
Last active December 30, 2018 17:40
Nvidia driver 390.87 patches needed for Linux RT kernel and related to the install method described here http://linuxaudioproduction.blogspot.com/2015/09/how-to-patching-and-compiling-nvidia.html
--- nv-linux.h.bak 2018-12-30 11:31:22.677374865 +0100
+++ nv-linux.h 2018-12-30 11:35:16.447873828 +0100
@@ -43,6 +43,8 @@
#include <linux/version.h>
#include <linux/utsname.h>
+#define CONFIG_PREEMPT_RT_FULL 1
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
#error "This driver does not support kernels older than 2.6.9!"
@yomguy
yomguy / instafeed_tags.py
Last active November 22, 2017 15:34
Instafeed like django tag displaying an instagram gallery by hashtag (as a workaround since official API change in june 2016)
from django import template
import requests, json
register = template.Library()
@register.simple_tag
def instafeed(hashtag, count):
"""Simply use with autoescapeoff, for example: {% autoescape off %}{% instafeed 'manifeste16' 8 %}{% endautoescape %}"""
html = ''
@yomguy
yomguy / deegger-mixcloud.py
Last active August 29, 2015 14:07
Download MixCloud audio files
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (C) 2014 Guillaume Pellerin <yomguy@parisson.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
[TestAnalyzers_withDC]
Stress test for AubioMelEnergy ... ok
Stress test for AubioMfcc ... ok
Stress test for AubioPitch ... ok
Stress test for AubioSpecdesc ... ok
Stress test for AubioTemporal ... ok
Stress test for IRITDiverg ... ERROR
Stress test for IRITMonopoly ... /home/momo/dev/timeside/timeside/timeside/analyzer/irit_monopoly.py:157: RuntimeWarning: divide by zero encountered in log
c1 = numpy.log(a1)
/home/momo/dev/timeside/timeside/timeside/analyzer/irit_monopoly.py:161: RuntimeWarning: divide by zero encountered in log
@yomguy
yomguy / gist:8520156
Created January 20, 2014 13:50
Telemeta bug with TimeSide 0.5.3
Environment:
Request Method: GET
Request URL: http://localhost:9000/archives/items/zefezfezfzfzefezf_4/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
@yomguy
yomguy / gist:6863561
Created October 7, 2013 06:58
TD 0.5dev fresh install + tests
root@ns224730:~/TimeSide# python tests/run_all_tests
downloading: guitar.wav
downloading: sweep.wav
downloading: sweep_mono.wav
downloading: sweep_32000.wav
downloading: sweep.flac
downloading: sweep.ogg
downloading: sweep.mp3
downloading: sweep_source.wav
@yomguy
yomguy / gist:6761064
Created September 30, 2013 08:54
TS 0.5dev tests
momo@wm22:~/dev/timeside/timeside$ python tests/run_all_tests
[TestTranscodingFrom32kHzWav]
Test conversion to mp3 ... ok
Test conversion to ogg ... ok
Test conversion to wav ... ok
[TestTranscodingFromAnotherWav]
Test conversion to mp3 ... ok
Test conversion to ogg ... ok
@yomguy
yomguy / gist:6725655
Created September 27, 2013 08:29
python-timeside 0.4.3 first tests
root@ns224730:~/timeside# python tests/alltests.py
[TestAnalyzing]
Test mean DC shift ... ERROR
Test max level ... ERROR
Test mean level ... ERROR
[TestComponentArchitecture]
Test abstract implementation ... ok
Test that a component doesn't implement the interface implemented by its parent ... ok
@yomguy
yomguy / gist:6725610
Created September 27, 2013 08:23
python-timeside 0.4.3 install on a fresh Wheezy debootstrap (sudo debootstrap --arch amd64 wheezy wheezy http://mirror.ovh.net/debian/)
root@ns224730:/# apt-get install python-timeside
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
file gir1.2-glib-2.0 iso-codes libaubio4 libblas3 libclass-isa-perl libexpat1 libffi5 libflac8 libfreetype6 libgfortran3 libgirepository-1.0-1 libglib2.0-0 libglib2.0-data
libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libjpeg8 liblapack3 liblcms1 libmagic1 libogg0 liborc-0.4-0 libpcre3 libquadmath0 libsamplerate0 libsndfile1 libswitch-perl
libvorbis0a libvorbisenc2 libxml2 libyaafe0 mime-support perl perl-modules python python-aubio python-gi python-gobject python-gobject-2 python-gst0.10 python-imaging
python-libxml2 python-minimal python-mutagen python-numpy python-pkg-resources python-support python-yaafe python2.7 python2.7-minimal sgml-base shared-mime-info xml-core
Suggested packages:
import json
import requests
from requests_oauthlib import OAuth1
consumer_key='key'
consumer_secret='secret'
access_token_key='t_key'
access_token_secret='t_secret'