Skip to content

Instantly share code, notes, and snippets.

View rbtylee's full-sized avatar
🏠
Working from home

Robert Wiley rbtylee

🏠
Working from home
View GitHub Profile

Working with EET Files

This is my edited version of Jeff Hoogland's original article on the eet command. It is posted here because it is hard to find online as the original link is now dead and not even found in the Wayback Machine.

One of the things that allow the Enlightenment Foundation Libraries to be as fast and efficient as they are in their use of compiled files for storing information. While these compiled files are fast, the drawback to using them is that there is some difficulty when you want to manually access/edit the data these files contain. Today I am going to talk about how we can gain access to the data contained in compiled Enlightenment Foundation Library EET data files.

EET files are binary data files that generally hold configuration options/settings for applications. To work with these files we will need acce

@rbtylee
rbtylee / secprintubuntudesk.md
Created August 28, 2021 17:57
Secure printing on Ubuntu Desktop Linux

Secure printing on Ubuntu Desktop

Out of the box, Ubuntu Desktop implements a hybrid solution for printing that could get a user in some trouble if they're not careful. These notes are intended to help correct that.

My reference system is running Ubuntu Desktop 18.04.5 on a x86_64 workstation with the default Gnome Project environment. The printer used for testing was a HP LaserJet Pro MFP M130nw connected to the local network over wired ethernet.

Ubuntu packages vs downloads

Almost everywhere on the Internet you'll see advice to download various components directly from a vendor's site. Don't. Just rely on the Ubuntu packages provided with Desktop 18.04 and later. They are more than sufficient to get the job done.

@rbtylee
rbtylee / evas-image-dim
Created March 18, 2021 13:44
Using evas (EFL) to determine image dimensions
/* evas-image-dim: Print image dimensions using efl
*
* Copyright 2021 ylee@bodhilinux.com
*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*
* gcc -o evas-image-dim evas-image-dim.c `pkg-config --libs --cflags evas ecore ecore-evas`
*/
#!/usr/bin/env python3
# elm_icon
#
# Copyright (c) Robert Wiley <ylee@bodhilinux.com>
# The WTFPL License [http://www.wtfpl.net/]
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
#!/bin/bash
# flat-theme-deb.sh
#
# A sample program to illustrate how to manually build a deb file.
# This program creates a package to install The flat enlightenment/elm
# theme Raster has been working on. For Bodh linux 5.0. Same principles
# apply to all debian/ubuntu based distros.
#
# Copyright 2019 ylee@bodhilinux.com
/* This sample code is a client for clipster
* illustrating how to use sockets to 'talk' to another program
*
* Copyright 2019 ylee@bodhilinux.com
*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*
* See https://github.com/mrichar1/clipster
#ifndef WEATHER_H
#define WEATHER_H
// Stuff I won't need latter
#include <Eina.h>
#define ENABLE_DEBUG 0
#define DBG(f, ...) if (ENABLE_DEBUG) \
printf("[forecasts] "f "\n", __VA_ARGS__)
#define E_NEW(s, n) (s *)calloc(n, sizeof(s))
@rbtylee
rbtylee / forecast_xml_parser.c
Created January 18, 2019 20:17
An illustration of using Eina Simple XML functions
/* forecast_xml_parser.c
*
* An illustration of using Eina Simple XML functions to parse
* the forecast.xml file provided by yr.no
* (delivered by the Norwegian Meteorological Institute)
*
* For example:
* https://www.yr.no/place/United_States/California/Cambria/forecast.xml
*
* Requires Eina provided by EFL:
@rbtylee
rbtylee / icon.c
Created June 22, 2017 11:20
EFL code to set a windows icon
/* Copyright 2017 ylee@bodhilinux.com
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
#include <stdio.h>
#include <Elementary.h>