Skip to content

Instantly share code, notes, and snippets.

jeffcogswell /
Last active Nov 4, 2021
Example of making the GTK widgets dark in Geany without changing the whole environment

It turns out you can have separate GTK rc files for separate apps, just by setting an environment variable. For this example I'm using this theme:

First, clone the GTK theme you want into a directory such as ~/.config/geany/gtk

mkdir ~/.config/geany/gtk2/
cd ~/.config/geany/gtk2/
git clone

That's it. You only have to do that part once. Now any time you run geany, just set an environment variable first, like so:

jeffcogswell /
Last active May 30, 2021
Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus ...

Seeing this error in the bash shell when launching some apps, such as scite:

** (scite:5298): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

Update as per comments below.

It appears adding this library fixes the problem: at-spi2-core

jeffcogswell /
Created Jun 20, 2017
scite global properties - just my own minor customizations for linux
# Global initialisation file for SciTE
# For Linux, place in $prefix/share/scite
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE)
# Documentation at
# Globals
# Window sizes and visibility
jeffcogswell / q_example.js
Last active Mar 1, 2021
Here's another chaining example on using q.js. This doesn't have any error handling, as I just want to demonstrate the chaining concept. Please read the comments carefully, as I start out with a non-q example, to show the order of flow. Please post comments if there's anything that isn't clear and I'll try to revise it as needed.
View q_example.js
// Q sample by Jeff Cogswell
We want to call these three functions in sequence, one after the other:
First we want to call one, which initiates an ajax call. Once that
ajax call is complete, we want to call two. Once two's ajax call is
complete, we want to call three.
BUT, we don't want to just call our three functions in sequence, as this quick
jeffcogswell /
Last active Aug 2, 2020
Update Alternatives for Java
jeffcogswell / app.js
Created Oct 5, 2017
CraZySacX/node-jdbc with hive JDBC driver in node.js
View app.js
// Uses
// Assumes you have already installed the JDK, hadoop, and hive!
// Just a quick demo with callback hell... Really you'll
// want to use async or something similar...
var JDBC = require('jdbc');
var jinst = require('jdbc/lib/jinst');
jeffcogswell / settings.ini
Created Sep 15, 2016
GTK settings on Lubuntu - put in /home/jeff/.config/gtk-3.0
View settings.ini
gtk-icon-theme-name=Super Flat Remix
gtk-font-name=Liberation Sans 11
jeffcogswell / lubuntu-rc.xml
Created Sep 15, 2016
openbox configuration - goes in /home/jeff/.config/openbox
View lubuntu-rc.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="" xmlns:xi="">
jeffcogswell / themerc
Created Sep 14, 2016
Openbox Theme - modified Clearlooks with slightly more modern border
View themerc
# Name: Clearlooks-Jeff
# Based on Clearlooks by John McKnight <>
# Place this in /home/username/.local/share/themes/Clearlooks-Jeff/openbox-3
### Menu
#menu.border.color: #b5aa99 Flat Border Gradient Vertical #589bda #3c7cb7
jeffcogswell / resetadapter.bat
Created Jul 13, 2016
Reset wifi adapter - Run as administrator
View resetadapter.bat
netsh interface set interface name="Wi-Fi" admin=disabled
timeout 3
netsh interface set interface name="Wi-Fi" admin=enabled