Skip to content

Instantly share code, notes, and snippets.

@yannleretaille
yannleretaille / PKGBUILD
Last active July 4, 2021 18:02
pulseaudio-dlna 0.6.1 (Cygn fork)
# Maintainer: Daniel M. Capella <[email protected]>
# Contributor: ZaZam <zazaamm ät gmail döt com>
# Contributor: Yegorius <[email protected]>
pkgname=pulseaudio-dlna
pkgver=0.6.1
pkgrel=1
pkgdesc='Small DLNA server which brings DLNA/UPnP support to PulseAudio'
arch=('x86_64')
url=https://github.com/Cygn/pulseaudio-dlna/
@yannleretaille
yannleretaille / PKGBUILD
Last active February 27, 2021 18:39
tizonia-all 0.22.0-1: fix build issue with newer versions boost (tizgraphmgr.cpp:336:57: error: ‘_1’ was not declared in this scope)
# Maintainer: juanrubio
_githubname=tizonia-openmax-il
pkgname=tizonia-all
pkgver=0.22.0
pkgrel=1
pkgdesc="Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices."
arch=('x86_64')
url="https://tizonia.org"
license=('LGPL')
@yannleretaille
yannleretaille / PKGBUILD
Last active January 14, 2020 16:36
arch-aur: fix gnome-python-desktop 2.32.0-19 build error `evo-calendar.c:242:10: error: incompatible types when assigning to type ‘struct icaltimetype’ from type ‘int’ `
# Maintainer: twa022 <twa022 at gmail dot com>
pkgbase=gnome-python-desktop
pkgname=('gnome-python-desktop' 'python2-gnomekeyring' 'python2-wnck')
pkgver=2.32.0
pkgrel=19
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
makedepends=('intltool' 'pkg-config' 'gnome-python' 'libwnck' 'libgnome-keyring')
url="https://www.gnome.org"
@yannleretaille
yannleretaille / cargodoc_private.sh
Last active October 9, 2016 21:53
rust - generate private docs for binary project
#!/bin/bash
### RUST - CREATE PRIVATE DOCS FOR BINARY PROJECT
## this command will generate the full docs of your current project and place them in /target/doc_priv
##
## generating full docs for binary projects is not yet fully supported by cargo doc, hopefully this will be obsolete one day
## Sources:
## https://stackoverflow.com/questions/29378113/how-can-i-include-private-modules-when-generating-documentation-via-cargo
## This file was orginally published as gist here:
## https://gist.github.com/yannleretaille/f17856b674e6f332837178add538fb77
RCMD=$(cargo doc --no-deps -v 2> >(awk 'match($0,/`(rustdoc src\/main\.rs.+)`/,res){print res[1]}')| awk 'sub(/target\/doc/,"target/doc_priv")')
@yannleretaille
yannleretaille / validate-selectize-fields.js
Last active June 13, 2024 21:38
How to validate selectize.js comboboxes with the jQuery validation plugin
//How to validate selectize.js comboboxes with the jQuery validation plugin
//selectize.js: http://brianreavis.github.io/selectize.js/ (brianreavis/selectize.js)
//http://jqueryvalidation.org (jzaefferer/jquery-validation)
//configure jquery validation
$("#commentForm").validate({
//the default ignore selector is ':hidden', the following selectors restore the default behaviour when using selectize.js
//:hidden:not([class~=selectized]) | selects all hidden elements, but not the original selects/inputs hidden by selectize
//:hidden > .selectized | to restore the behaviour of the default selector, the original selects/inputs are only validated if their parent is visible
//.selectize-control .selectize-input input | this rule is not really necessary, but ensures that the temporary inputs created by selectize on the fly are never validated