Skip to content

Instantly share code, notes, and snippets.

Jeff Cogswell jeffcogswell

Block or report user

Report or block jeffcogswell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 /
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 /
Last active Aug 16, 2018
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 /
Last active Aug 14, 2017
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 / 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
jeffcogswell /
Last active Jun 12, 2016
Update Alternatives for Java
View LXDE.desktop
[Desktop Entry]
# This file goes in /usr/share/xsessions
# -rw-r--r-- 1 root root 1507 Feb 27 09:07 LXDE.desktop
# The names/descriptions should really be better
Comment=LXDE - Lightweight X11 desktop environment
Comment[ar]=لكسدي - بيئة سطح مكتب X11 خفيفة
Comment[cs]=LXDE - lehké X11 pracovní prostředí
Comment[de]=LXDE - Leichtgewichtige X11 Desktop-Umgebung
Comment[es]=LXDE - Entorno de Escritorio X11 Liviano
You can’t perform that action at this time.