Skip to content

Instantly share code, notes, and snippets.

@jeffcogswell
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
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 <jmcknight@gmail.com>
# Place this in /home/username/.local/share/themes/Clearlooks-Jeff/openbox-3
### Menu
#menu.border.color: #b5aa99
menu.title.bg: Flat Border Gradient Vertical
menu.title.bg.color: #589bda
menu.title.bg.colorTo: #3c7cb7
@jeffcogswell
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="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@jeffcogswell
jeffcogswell / settings.ini
Created Sep 15, 2016
GTK settings on Lubuntu - put in /home/jeff/.config/gtk-3.0
View settings.ini
[Settings]
gtk-theme-name=Clearlooks
gtk-icon-theme-name=Super Flat Remix
gtk-font-name=Liberation Sans 11
gtk-cursor-theme-name=DMZ-White
gtk-cursor-theme-size=18
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
@jeffcogswell
jeffcogswell / geany_gtk_dark.md
Last active Nov 4, 2021
Example of making the GTK widgets dark in Geany without changing the whole environment
View geany_gtk_dark.md

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: https://github.com/axxapy/Adwaita-dark-gtk2

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 git@github.com:axxapy/Adwaita-dark-gtk2.git

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
jeffcogswell / org_ally1_bus_fix.md
Last active May 30, 2021
Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus ...
View org_ally1_bus_fix.md

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
jeffcogswell / SciTEGlobal.properties
Created Jun 20, 2017
scite global properties - just my own minor customizations for linux
View SciTEGlobal.properties
# 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 http://www.scintilla.org/SciTEDoc.html
# Globals
# Window sizes and visibility
if PLAT_WIN
position.left=0
@jeffcogswell
jeffcogswell / app.js
Created Oct 5, 2017
CraZySacX/node-jdbc with hive JDBC driver in node.js
View app.js
// Uses https://github.com/CraZySacX/node-jdbc
// 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');
jinst.setupClasspath([
'/usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.4.jar',
'/usr/local/apache-hive-1.2.2-bin/lib/hive-jdbc-1.2.2-standalone.jar'
])