Skip to content

Instantly share code, notes, and snippets.

View lighth7015's full-sized avatar
Perpetually exhausted.

Robert Butler lighth7015

Perpetually exhausted.
View GitHub Profile
@lighth7015
lighth7015 / log.txt
Created January 16, 2020 22:13
systemd-analyze critical-chain
graphical.target @3min 9.112s
└─multi-user.target @3min 9.112s
└─smb.service @1min 41.461s +9.757s
└─winbind.service @1min 32.664s +8.793s
└─nmb.service @1min 10.561s +22.099s
└─network-online.target @1min 10.426s
└─NetworkManager-wait-online.service @43.699s +26.726s
└─NetworkManager.service @36.336s +7.356s
└─dbus.service @36.329s
└─basic.target @36.319s
@lighth7015
lighth7015 / idb.txt
Created January 15, 2020 21:27
IDB file format
Magic number: "IDB" \r \n NULL
Version: 0x01
Flags: is_big_endian
Length of Schemas
Target AS String /* used to identify which program this is for, so */
/* the host program can provide implicit schemas. */
OPTIONAL Schemas OF {
Schema_size AS UInt8
@lighth7015
lighth7015 / idb.md
Created January 15, 2020 21:27
IDB file format

Magic number: "IDB" \r \n NULL Version: 0x01 Flags: is_big_endian Length of Schemas

Target AS String /* used to identify which program this is for, the / / host program can provide implicit schemas. */

OPTIONAL Schemas OF { Schema_size AS UInt8

@lighth7015
lighth7015 / VFS.ec
Last active January 14, 2020 20:07
VFS store class
import "ecere"
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
private class VFSoot: struct {
char signature[6];
uint16_t file_length;
const char* creator;
@lighth7015
lighth7015 / AppMain.ec
Last active January 13, 2020 19:09
AppMain (ec)
import "ecere"
import "DefaultSkin"
import "EDA"
class AppMain: GuiApplication {
skin = "App";
Database handle;
DataSource source { driver = "SQLite" };
@lighth7015
lighth7015 / README.md
Last active January 12, 2020 03:10
Proposed Class Hierarchy
Class Name			Base class (optional)	Class Description
Drawable						Base drawable interface.
	Window						Base UI class.
		BasicWindow				A Basic Window
		ChildWindow				Subclass of basicwindow for use with MDI 
							applications

	Control						Basic control interface, is both renderable and

discoverable.

@lighth7015
lighth7015 / theme.ec
Created January 8, 2020 21:44
eC Windows NT/9x theme
public import "ecere"
public import "ecere.gui.controls"
define skinBackground = Color { r = 192, g = 192, b = 192 };
define skinForeground = black;
define skinTextForeground = black;
define evenRowBackground = Color { 80, 70, 60 };
define selectionColor = blue;
static const char * buttonStates[SkinBitmap] = {
@lighth7015
lighth7015 / laravel-reflection.php
Last active January 8, 2020 01:12
Laravel Reflection
<?php
require_once 'vendor/autoload.php';
use Illuminate\Support\Arr;
/**
* Demo with some reflection, I'm working on this for a project and need
* this working or at least a viable workaround very soon, thanks!
*/
class SlackRegistration { }
@lighth7015
lighth7015 / output
Created January 6, 2020 19:39
InterVue client information
[robert.butler@mc01 debug.linux]$ du -ch InterVueClient
188K InterVueClient
188K total
[robert.butler@mc01 debug.linux]$ ldd InterVueClient
linux-vdso.so.1 (0x00007ffe851d3000)
libecere.so.0 => /usr/lib/libecere.so.0 (0x00007f2d3ad98000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f2d3abd0000)
libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f2d3ab38000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f2d3ab00000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f2d3aae0000)
@lighth7015
lighth7015 / SkinnedBtn.ec
Created January 5, 2020 21:43
SkinnedBtn
import "ecere"
import "ecere.gui"
class SkinnedBtn: Button {
void OnRedraw(Surface surface) {
int tw = 0, th = 0;
int ot = 0, ol = 0,
ob = size.h, or = size.w;