Skip to content

Instantly share code, notes, and snippets.

View xanathar's full-sized avatar
🐢
I may be slow to respond. Who am I kidding?. I will be VERY slow to respond.

Marco Mastropaolo xanathar

🐢
I may be slow to respond. Who am I kidding?. I will be VERY slow to respond.
View GitHub Profile
@tsak
tsak / hid_apple.conf
Created December 26, 2021 14:05
/etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2
options hid_apple swap_opt_cmd=1
@xanathar
xanathar / main.cpp
Created June 15, 2016 09:30
Simple example of Lua integration in C++
//
// main.cpp
// LuaTests
//
// Created by Marco Mastropaolo on 08/06/16.
// Copyright © 2016 Marco Mastropaolo. All rights reserved.
//
#include <iostream>
#include "../include/lua.hpp"
@xanathar
xanathar / StateAnimator.cs
Created March 2, 2016 21:16
Animator state machine for simple, stateful, immediate mode 2D animations in Unity3D
using System;
using System.Collections.Generic;
using UnityEngine;
public struct StateAnimatorData<T>
{
public StateAnimator<T> Animator { get; internal set; }
public StateAnimatorHandler<T> AnimatorState { get; internal set; }
public T State { get; internal set; }
public float StateTime { get; internal set; }
@xanathar
xanathar / MethodInfoSpecialNames.cs
Created January 28, 2016 17:54
Partial enumeration of reflection MethodInfo special names
// doesn't necessary compile, nor it is necessarily comprehensive but seems a good start ;)
public enum ReflectionSpecialNameType
{
IndexGetter,
IndexSetter,
ImplicitCast,
ExplicitCast,
BinaryOperator,
@xanathar
xanathar / iis7_command_line_tool.md
Last active May 22, 2023 12:01 — forked from jonlabelle/iis7_command_line_tool.md
IIS 7 Command Line Tool

IIS 7 Command Line Tool

AppCmd.exe IIS 7 command-line tool used to perform common IIS administrative tasks such as creating new sites, stopping/starting services, and viewing status of the site.

Usage

appcmd (command) (object-type) <identifier> </parameter1:value1 ...>
@xanathar
xanathar / EventHandlers in MoonSharp
Created December 12, 2014 20:44
Sample of event handlers in MoonSharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoonSharp.Interpreter;
namespace PerformanceComparison
{
class Sample
@jonlabelle
jonlabelle / iis7_command_line_tool.md
Created April 17, 2014 21:41
IIS 7 Command Line Tool

IIS 7 Command Line Tool

AppCmd.exe IIS 7 command-line tool used to perform common IIS administrative tasks such as creating new sites, stopping/starting services, and viewing status of the site.

Usage

appcmd (command) (object-type) <identifier> </parameter1:value1 ...>
@p1nox
p1nox / using_meld_on_mac.md
Last active August 6, 2025 13:34
Using meld on Mac

Using Meld merging tool on Mac

Aug 2025

Best way to install is using official docs from osx repo here. Remember to configure meld as difftool in the command line as well.

May 2023

There are two ways of installing meld on osx, using brew and .dmg package (from @yousseb). Since I found https://yousseb.github.io/meld/, I've installed it with .dmg package, but having macOS Ventura Version 13.4 (22F66) in place, it's not even starting for me. So I tried brew installation, and the application is working as expected, including symlink to start it from the terminal.

@umpirsky
umpirsky / A.markdown
Last active August 3, 2023 18:14 — forked from olivierlacan/An_example.markdown
Sublime Text Monokai Sidebar Theme.