Skip to content

Instantly share code, notes, and snippets.

View JBou's full-sized avatar

Gabriel Patzleiner JBou

  • 08:16 (UTC +01:00)
View GitHub Profile
@JBou
JBou / README.MD
Last active May 4, 2024 18:01
Install newest mesa driver inside emby docker container

This gist installs the newest mesa driver inside a emby docker container

Usage:

Go inside the docker container:

docker exec -it emby /bin/bash

curl -s -L https://gist.githubusercontent.com/JBou/41a19db4c513d7acc7f6b97d151da7ff/raw/emby_install_mesa.sh | bash

Afterwards you have to go to Diagnostic Options -> FFmpeg Options on the Emby Admin Dashboard and change the following parameters:

@JBou
JBou / Soundcloud app.js
Created January 20, 2017 09:33
Soundcloud app
This file has been truncated, but you can view the full file.
webpackJsonp([2], {
0: function(e, t, n) {
n(1220), e.exports = n(1187)
},
6: function(e, t) {
e.exports = function() {
var e = [];
return e.toString = function() {
for (var e = [], t = 0; t < this.length; t++) {
var n = this[t];
@JBou
JBou / SoundCloud API Endpoints.cs
Last active January 14, 2024 07:33
SoundCloud API Endpoints
//Authorization
{ ApiCommand.AuthorizationCodeFlow, new Uri("https://soundcloud.com/connect?scope=non-expiring&client_id={0}&response_type={1}&redirect_uri={2}") },
{ ApiCommand.UserAgentFlow, new Uri("https://soundcloud.com/connect?client_id={0}&response_type=token&redirect_uri={1}") },
{ ApiCommand.UserCredentialsFlow, new Uri("https://api.soundcloud.com/oauth2/token?client_id={0}&client_secret={1}&grant_type=password&username={2}&password={3}") },
{ ApiCommand.RefreshToken, new Uri("https://api.soundcloud.com/oauth2/token?client_id={0}&client_secret={1}&grant_type=refresh_token&refresh_token={2}") },
//Me
{ ApiCommand.Me, new Uri("https://api.soundcloud.com/me.json") },
{ ApiCommand.MeTracks, new Uri("https://api.soundcloud.com/me/tracks.json") },
{ ApiCommand.MeComments, new Uri("https://api.soundcloud.com/me/comments.json") },
@JBou
JBou / keybase.md
Created March 22, 2016 09:59
keybase.md

Keybase proof

I hereby claim:

  • I am JBou on github.
  • I am jbou (https://keybase.io/jbou) on keybase.
  • I have a public key whose fingerprint is F205 FF01 4B7D 85A6 9413 CBB8 0A8D E38C 9094 13CD

To claim this, I am signing this object:

@JBou
JBou / AdventofCode.java
Created December 3, 2015 10:15
AdventofCode - Day 3
import java.lang.Math;
import java.util.ArrayList;
public class HelloWorld
{
public static void main(String[] args)
{
int part = 2;
int row[] = {2, 3, 4, 5, 6, 7, 8, 9};
int column[] = {10, 11, 12, 13, A0, A1, A2, A3};
//int buffer[8][8];
int lastRow;
int lastColumn;
void setup() {
// put your setup code here, to run once:
#This script was created by Adam Beazley for public use and may be edited.
#http://www.abeazleydesign.com
#Directions
#Just click in the Import Materials button in the plugins menue and type in the location of all of you image files.
#This script will create a material and name it the same name as the image file and then use that file as the texture.
#all textures will come in at a standard scale and must be edited later
#after all materials and textures have been imported into the model, simply add them to your library
#you can then save the library as a .skm library file through sketchup.
#have fun!!!
#
@Override
public void g(float sideMot, float forMot) {
if(this.passenger != null && this.passenger instanceof EntityHuman) {
this.lastYaw = this.yaw = this.passenger.yaw;
this.pitch = this.passenger.pitch * 0.5F;
this.setYawPitch(this.yaw, this.pitch);//Update the pitch and yaw
this.aI = this.aG = this.yaw;
sideMot = ((EntityLiving)this.passenger).aX * 0.5F;
forMot = ((EntityLiving)this.passenger).aY;
if(forMot <= 0.0F) {
@JBou
JBou / JsonAPI2SDK.cs
Last active August 29, 2015 14:03
JSONAPI SDK updated to API2
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net;
using System;
using System.Text;
using System.Windows;
using System.Windows.Media.Animation;
namespace leMaik.Animations {
class CryptedTextAnimation : AnimationTimeline {
static CryptedTextAnimation() {
LengthProperty = DependencyProperty.Register("Length", typeof(int), typeof(CryptedTextAnimation));
}