Skip to content

Instantly share code, notes, and snippets.

View jvalenciag's full-sized avatar
🏠
Working from home

Jose Valencia jvalenciag

🏠
Working from home
  • Arequipa, Peru
View GitHub Profile
@dimMaryanto93
dimMaryanto93 / jaspersoft-studio.ini
Created February 23, 2017 00:13
Jaspersoft - Slow in Ubuntu 16.10
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.GTK_version
2
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417
-data
@noDefault
--launcher.defaultAction
openFile
-vm
@pylover
pylover / a2dp.py
Last active March 11, 2024 03:06
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware
@RockingRolli
RockingRolli / authentication.py
Last active November 28, 2019 09:19
DRF token auth with mongoengine
from rest_framework.authentication import TokenAuthentication
from .models import MongoToken
from rest_framework import exceptions
class MongoTokenAuthentication(TokenAuthentication):
model = MongoToken
def authenticate_credentials(self, key):
try:
@petrbel
petrbel / .travis.yml
Last active October 26, 2019 10:29 — forked from iedemam/gist:9830045
Travis-CI submodules
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior!
# disable the default submodule logic
git:
submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive