Skip to content

Instantly share code, notes, and snippets.

Laeeth Isharc Laeeth

Block or report user

Report or block Laeeth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Laeeth /
Created Jul 16, 2019 — forked from MIvanchev/
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
Laeeth /
Created Jun 3, 2019 — forked from ericpulvino/
Quick Script to Emulate Basic DHCP Trusted Ports / DHCP Snooping / DHCP Filtration
# Root Check
if [ $(whoami) != 'root' ]; then
echo "ERROR: Must be root to run $0"
exit 1;
TRUSTED_PORTS=( swp1 swp3 )
#!/usr/bin/env bash
# Loads and mounts an ISO over SMB via the
# SuperMicro IPMI web interface
# usage: <ipmi-host> <smb-host> <path>
# e.g.: '\foo\bar\windows.iso'
set -x
Laeeth / chararraymarshal.cs
Created May 5, 2018
csharp marshalling code
View chararraymarshal.cs
using System;
using System.Dynamic;
using System.Runtime.InteropServices;
namespace Symmetry.Xenon.Model.Marshalling
* Base for Marshallers which need a buffer and a size - basically for wrapping binary data.
public abstract class CharArrayMarshaller : DualAllocationMarshaller
Laeeth / libvirt.di
Created Apr 2, 2018
converted libvirt
View libvirt.di
import core.stdc.config;
import core.stdc.stdarg: va_list;
struct struct___locale_data { int dummy; }
typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;
Laeeth / foo.cpp
Created Feb 22, 2018
extern(C) register passing bug
View foo.cpp
#include <stdio.h>
struct Foo
double a;
void *p;
extern "C" Foo foo2(Foo foo, double a, double b, double c)
Laeeth / syncoid.d
Created Oct 3, 2017
Port of syncoid from perl to dlang
View syncoid.d
module kaleidic.apps.cli.syncoid;
import std.stdio;
import std.datetime;
import std.socket: hostName;
import std.getopt;
enum SanoidVersion = "1.4.16";
Laeeth / libzfs.d
Last active Oct 3, 2017
First steps towards creating dlang binding for libzfs
View libzfs.d
module kaleidic.api.libzfs;
LibZFS - ported to the D programming language by Jonathan Davis and Laeeth Isharc
(c) Kaleidic Associates 2017
License - CDDL
Laeeth / makewhitelist.d
Created Jun 26, 2017
Make postgrey/spamassassin whitelist
View makewhitelist.d
import std.stdio;
import std.string;
import std.process;
import std.algorithm;
import std.array:array;
import std.typecons:Tuple;
import std.file:exists;
enum whitelists=[ "/etc/mail/spamassassin/sent_whitelist.txt",
View netfw.d
// File generated by idl2d from
// C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\netfw.idl
module sdk.win32.c:.program files (x86).microsoft;
import sdk.port.base;
// Copyright (c) Microsoft Corporation.
You can’t perform that action at this time.