Skip to content

Instantly share code, notes, and snippets.

Avatar
🧑‍💼
Ready to get busy

Pascal Opitz pascalopitz

🧑‍💼
Ready to get busy
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am pascalopitz on github.
  • I am pascalopitz (https://keybase.io/pascalopitz) on keybase.
  • I have a public key ASCz08NqmtgQdeQGPHbYTIn7cpYOMNMY_UHLAMSfSeipoQo

To claim this, I am signing this object:

@pascalopitz
pascalopitz / .env
Last active Mar 22, 2018
Strava TCX crawling
View .env
STRAVA_CLIENT_SECRET=Your client Secret
STRAVA_ACCESS_TOKEN=Your Access Token
STRAVA_CLIENT_ID=Your client ID
STRAVA_REDIRECT_URI=Something you won't need
COOKIE=Cookie from website
View OfficeServices.json
[
{
"Id": "221",
"Name": "LivePhish+",
"Version": "1.1",
"Uri": "https://sonos.nugs.net/soap/livephish",
"SecureUri": "https://sonos.nugs.net/soap/livephish",
"ContainerType": "SoundLab",
"Capabilities": "6675",
"Auth": "UserId",
View 0001-Don-t-use-finger-width-for-the-palm-detection-xps13-15.10.patch
diff --git a/src/synaptics.c b/src/synaptics.c
index 550b31c..1af7879 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1796,7 +1796,7 @@ SynapticsDetectFinger(SynapticsPrivate * priv, struct SynapticsHwState *hw)
/* palm detection */
- if ((hw->z > para->palm_min_z) && (hw->fingerWidth > para->palm_min_width))
+ if (hw->z > para->palm_min_z)
View Dockerfile
FROM go_clean
RUN mkdir -p /go/src
VOLUME /mnt
COPY ./src/jamendo /go/src/jamendo
COPY ./src/soap /go/src/soap
COPY ./src/sonos /go/src/sonos
COPY ./static /static
View Dockerfile
FROM ubuntu
MAINTAINER Pascal Opitz, pascal.opitz@gmail.com
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
make
# Get and compile go
View transcode.go
package main
import "io"
import "os"
import "os/exec"
import "log"
import "net/http"
const TRANSCODER_FORMAT = "mp3"
View test.go
package main
import (
"encoding/xml"
"fmt"
)
const data = `<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<ns:credentials>
View beforeTest.js
requirejs = require('requirejs').config({
baseUrl: (function(){
var dir_tokens = __dirname.split('/');
dir_tokens.pop();
dir_tokens.push('lib');
return dir_tokens.join('/');
})(),
//Pass the top-level main.js/index.js require
//function to requirejs so that node modules
//are loaded relative to the top-level JS file.
View Test.php
<?php
namespace Testapp\Controller;
use Silex\Application;
use Silex\ControllerProviderInterface;
use Silex\ControllerCollection;
use Testapp\Form;
class Test implements ControllerProviderInterface
You can’t perform that action at this time.