Skip to content

Instantly share code, notes, and snippets.

View ashleysommer's full-sized avatar

Ashley Sommer ashleysommer

View GitHub Profile
@ashleysommer
ashleysommer / cogl_driver_gl_gl_cogl-driver-gl.c
Last active November 7, 2017 11:24
Fix COGL for AMDGPU-PRO drivers
--- a/cogl/driver/gl/gl/cogl-driver-gl.c
+++ b/cogl/driver/gl/gl/cogl-driver-gl.c
@@ -403,9 +403,13 @@
&ctx->glsl_minor);
}
- if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
- /* We want to use version 120 if it is available so that the
- * gl_PointCoord can be used. */
+ if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))
INFO[0247] === BEGIN goroutine stack dump ===
goroutine 48 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
/usr/src/docker/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc820417500)
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap
/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f
goroutine 1 [semacquire, 4 minutes]:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
^T[INFO] Computing target platform for MavenProject: com.github.rustdt:deps.repository:1.0.0-SNAPSHOT @ /home/som05d/workspace/RustDT/target-platform/pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/releases/neon/
[INFO] Adding repository http://download.eclipse.org/releases/neon
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/neon/
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/neon/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/neon/201606221000/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/neon/201606221000/
@ashleysommer
ashleysommer / gist:67d7b450d61a92303df786e701f226ec
Created December 18, 2016 23:56
Hyper/tokio minimal example, Hello World, Boxed futures::Finished
use hyper::server::{self, Request, Response, Server, Service};
use hyper::Error as HyperError;
use futures::{Poll, Future};
use std::net::{Ipv4Addr,SocketAddr,SocketAddrV4};
extern crate hyper;
extern crate futures;
pub struct FutureResponse(Box<Future<Item=Response, Error=HyperError>>);
use hyper::server::{self, Request, Response, Server, Service};
use hyper::Error as HyperError;
use futures::{Poll, Future};
use std::net::{Ipv4Addr,SocketAddr,SocketAddrV4};
extern crate hyper;
extern crate futures;
pub struct FutureResponse(Box<Future<Item=Response, Error=HyperError>>);
@ashleysommer
ashleysommer / gist:2e11f232abc5509243ea408d5a33dbc0
Created March 1, 2018 03:26
Ginlong wifi payload decode and push
import sys
import struct
import asyncio
import aiohttp
import json
import time
import os
import glob
import bz2
import tarfile
import rdflib
import rdflib_jsonld
from rdflib.namespace import Namespace, XSD
EX = Namespace("http://example.org/")
false_bool = rdflib.Literal("false", datatype=XSD.boolean)
true_bool = rdflib.Literal("true", datatype=XSD.boolean)
test_turtle = '''
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@ashleysommer
ashleysommer / issue_012.py
Created December 7, 2018 01:31
Reproducing issue #12 in pyshacl
# -*- coding: utf-8 -*-
#
"""
https://github.com/RDFLib/pySHACL/issues/12
"""
from pyshacl import validate
shacl_file_text = """
@prefix hei: <http://hei.org/customer/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@ashleysommer
ashleysommer / infra_d3d11.log
Created March 8, 2019 05:48
dxvk_wine_issue
-- EMPTY --
# [DEBUG] Sync
2019-11-03T08:19:16.227367
SYNC /notable/notes/
27 files
localSyncTimestamps: {}
----
/plus/remote.php/webdav/notable/notes/
null
null
Sat, 02 Nov 2019 22:11:05 GMT