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
Laeeth / article.md
Created Jul 16, 2019 — forked from MIvanchev/article.md
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@Laeeth
Laeeth / dhcp_snooping.sh
Created Jun 3, 2019 — forked from ericpulvino/dhcp_snooping.sh
Quick Script to Emulate Basic DHCP Trusted Ports / DHCP Snooping / DHCP Filtration
View dhcp_snooping.sh
#!/bin/bash
# Root Check
if [ $(whoami) != 'root' ]; then
echo "ERROR: Must be root to run $0"
exit 1;
fi
TRUSTED_PORTS=( swp1 swp3 )
View supermicro-mount-iso.sh
#!/usr/bin/env bash
# Loads and mounts an ISO over SMB via the
# SuperMicro IPMI web interface
#
# usage: supermicro-mount-iso.sh <ipmi-host> <smb-host> <path>
# e.g.: supermicro-mount-iso.sh 10.0.0.1 10.0.0.2 '\foo\bar\windows.iso'
set -x
@Laeeth
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
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
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
Laeeth / syncoid.d
Created Oct 3, 2017
Port of syncoid from perl to dlang
View syncoid.d
#!/usr/bin/rdmd
module kaleidic.apps.cli.syncoid;
import std.stdio;
import std.datetime;
import std.socket: hostName;
import std.getopt;
enum SanoidVersion = "1.4.16";
@Laeeth
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
Laeeth / makewhitelist.d
Created Jun 26, 2017
Make postgrey/spamassassin whitelist
View makewhitelist.d
#!/usr/bin/dmd
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 sdks.windows.v7.1a.include.netfw;
import sdk.port.base;
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Microsoft Corporation.
You can’t perform that action at this time.