Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am mistery on github.
  • I am alensiljak ( on keybase.
  • I have a public key ASBhSdIMFZc7_juGpUU4THGo7uZKxqMCzdP1GjB-fPgOwAo

To claim this, I am signing this object:

MisterY /
Last active May 20, 2019
GnuCash Book Backup
This will backup the current gnucash book, which is expected to be in the same folder. The copy will be stored in the "backup" sub-directory. The copied file will be LZMA-compressed to reduce the storage size.
Only a pre-set number of backup files will be kept in the backup directory. The oldest ones will be deleted when a new one is created.
The script will also delete *.log files in the current working directory as these are redundant.
To adapt the script to your needs, modify the variables at the top of the file.
Future additions may include the functionality to keep files created in the last n days, instead of the
fixed number of files.
MisterY / gtk-3.0.css
Last active Aug 4, 2020
GnuCash Register customization for a dark theme
View gtk-3.0.css
These register customizations go well with a dark GTK3 theme
cursor entry {
color: orange;
*.register-cursor {
color: blanchedalmond;
MisterY / gtk-3.0.css
Last active Mar 29, 2018
GnuCash 3 Black Theme
View gtk-3.0.css
GnuCash 3.0 black theme
GTK has a way of declaring variables, which is not a valid CSS anymore and
tooling support is gone.
CSS has a way of declaring variables, which is not supported by GTK.
* {
background-color: black;
color: lightsteelblue;
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
:host {
position: absolute;
width: 100%;
height: 100%;
View designer.html
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
MisterY / package.json
Created Oct 16, 2012
package.json definition for minimalist web server
View package.json
"name": "minimal-web-server",
"version": "1.0.0",
"dependencies" : {
"node-static" : "*"
MisterY / MinimalNodeWebServer.js
Created Oct 16, 2012
Minimal web server using Node-Static
View MinimalNodeWebServer.js
var static = require('node-static');
// Create a node-static server instance to serve the current folder
var file = new(static.Server)(__dirname);
require('http').createServer(function (request, response) {
request.addListener('end', function () {
MisterY / CustomWebClient
Created Oct 11, 2012
Custom Web Client with support for GZip compression and cookies (authentication)
View CustomWebClient
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace MyNamespace
/// <summary>
/// This web client supports Gzip compression and authentication.
/// </summary>