Skip to content

Instantly share code, notes, and snippets.

View davidmhewitt's full-sized avatar

David Hewitt davidmhewitt

  • Japan
  • 03:31 (UTC +09:00)
View GitHub Profile
From 6153b045c9d86eabf9ef0388393a57041eda1a33 Mon Sep 17 00:00:00 2001
From: David Hewitt <davidmhewitt@gmail.com>
Date: Mon, 31 Jul 2023 09:34:40 +0100
Subject: [PATCH 1/2] dt-bindings: arm: rockchip: Add Pine64 PineTab2 board
The PineTab2 is a tablet from Pine64 based on the RK3566 SoC. There are
two existing variants of the board. v0.1 was contained in some early
samples, and v2.0 is the production variant currently sold by PINE64
Signed-off-by: David Hewitt <davidmhewitt@gmail.com>
Index: light-locker-1.8.0/src/gs-manager.c
===================================================================
--- light-locker-1.8.0.orig/src/gs-manager.c
+++ light-locker-1.8.0/src/gs-manager.c
@@ -626,7 +626,7 @@ gs_manager_activate (GSManager *manager)
show_windows (manager->priv->windows);
- if (manager->priv->visible && !manager->priv->blank && !manager->priv->closed) {
+ if (manager->priv->visible && !manager->priv->blank) {
@davidmhewitt
davidmhewitt / release.py
Last active April 1, 2020 20:43
Get repos in organization sorted by last release date
import datetime
from github import Github
g = Github('GET_YOUR_OWN_ACCESS_TOKEN')
class Repo:
def __init__(self, repo, release, last_release_timestamp):
self.repo = repo
self.release = release
self.last_release_timestamp = last_release_timestamp
Adds a setting to be used by XSETTINGS overrides to configuring forcing
GtkDialogs to always use CSD. This is useful in the case where
dialogs-use-header is set to false but CSD is still desirable for styling
purposes.
David Hewitt <davidmhewitt@gmail.com>
--- a/gdk/x11/gdksettings.c
+++ b/gdk/x11/gdksettings.c
@@ -69,6 +69,7 @@
{"Gtk/RecentFilesMaxAge", "gtk-recent-files-max-age"},
@davidmhewitt
davidmhewitt / ClipboardStore.vala
Created July 8, 2017 11:02
Vala code showing use of SQLites full text search (FTS4) capability. Uses triggers to keep FTS table up to date.
/*
* Copyright (c) 2017 David Hewitt (https://github.com/davidmhewitt)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of