Skip to content

Instantly share code, notes, and snippets.

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 / 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 / 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 / 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 /
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 / 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');