Skip to content

Instantly share code, notes, and snippets.

View hwchong's full-sized avatar

Hon Weng Chong hwchong

View GitHub Profile
From af7b56ce91db6d35008a41765cc6b918936f1bd8 Mon Sep 17 00:00:00 2001
From: Hon Weng Chong <honwchong@gmail.com>
Date: Thu, 13 Apr 2023 22:31:05 +1000
Subject: [PATCH] Update aperture.c
---
drivers/video/aperture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/aperture.c b/drivers/video/aperture.c
let assert = require('assert')
describe('blah blah', () => {
before(done => {
console.log('before')
done()
})
beforeEach(done => {
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1@0:0:0"
[Unit]
Description=GNOME Display Manager
# replaces the getty
Conflicts=getty@tty1.service
After=getty@tty1.service
# replaces plymouth-quit since it quits plymouth on its own
Conflicts=plymouth-quit.service
After=plymouth-quit.service
@hwchong
hwchong / z370i_bluetooth.patch
Created November 11, 2017 10:54
Kernel patch for Asus Strix Z370-I to enable bluetooth for kernel 4.13
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index e331e212f5fc..ab01f191bce8 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -366,6 +366,9 @@ static const struct usb_device_id blacklist_table[] = {
{ USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
{ USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },
+ /* Additional Realtek 8822BE Bluetooth devices */
+ { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },
@hwchong
hwchong / gist:8738e100ec4e140bae2cac2894c29d65
Created November 11, 2017 10:53
Asus Z370-I Linux Kernel Bluetooth Patch
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index e331e212f5fc..ab01f191bce8 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -366,6 +366,9 @@ static const struct usb_device_id blacklist_table[] = {
{ USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
{ USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },
+ /* Additional Realtek 8822BE Bluetooth devices */
+ { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },
diff --git a/arch/arm/boot/dts/qcom/dsi-panel-somc-kagura.dtsi b/arch/arm/boot/dts/qcom/dsi-panel-somc-kagura.dtsi
index 323d1da..99740bb 100644
--- a/arch/arm/boot/dts/qcom/dsi-panel-somc-kagura.dtsi
+++ b/arch/arm/boot/dts/qcom/dsi-panel-somc-kagura.dtsi
@@ -175,4 +175,4 @@
somc,mdss-dsi-wait-time-before-post-on-cmd = <0>;
};
-};
+};
Fuel.download(path).destination {
response, url ->
File(uuidFolder, "portrait.jpg")
}.response { request, response, either ->
when(either) {
is Either.Left -> {
//TODO
delegate.portraitDownloadIncomplete()
}
is Either.Right -> {
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.0.0-beta-1038'
ext.app_compat_version = "23.1.0"
ext.anko_version = "0.7.2"
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'