Skip to content

Instantly share code, notes, and snippets.

View ata2001's full-sized avatar

Attila Szöllősi ata2001

View GitHub Profile
@ata2001
ata2001 / close_file_descriptors.c
Created January 22, 2019 22:49
C function to close all open file descriptors on Linux
#include<stdio.h>
#include<stdlib.h>
#include<dirent.h>
int close_FDs()
{
unsigned int fd;
DIR* dp;
struct dirent* ep;
dp = opendir("/proc/self/fd");
import socketserver
import threading
import queue
import functools
import json
class ClientHandler(socketserver.StreamRequestHandler):
def handle(self):
for request in self.rfile:
@ata2001
ata2001 / panel-auo-novatek-720p.patch
Last active January 15, 2018 15:13
AUO Novatek 720p panel driver
diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig
index d84a031f..5d970093 100644
--- a/drivers/gpu/drm/panel/Kconfig
+++ b/drivers/gpu/drm/panel/Kconfig
@@ -117,4 +117,13 @@ config DRM_PANEL_SITRONIX_ST7789V
Say Y here if you want to enable support for the Sitronix
ST7789V controller for 240x320 LCD panels
+config DRM_PANEL_AUO_NOVATEK_720P
+ tristate "AUO Novatek 720p panel"
diff --git a/bpython/curtsiesfrontend/repl.py b/bpython/curtsiesfrontend/repl.py
index a4502fa..94718b4 100644
--- a/bpython/curtsiesfrontend/repl.py
+++ b/bpython/curtsiesfrontend/repl.py
@@ -1160,6 +1160,7 @@ class BaseRepl(BpythonRepl):
"""Send unicode string to Repl stdout"""
if not output:
return
+ logger.info(type(output))
lines = output.split('\n')