Skip to content

Instantly share code, notes, and snippets.

View meitinger's full-sized avatar

Manuel Meitinger meitinger

View GitHub Profile
@meitinger
meitinger / Xml.hs
Last active October 27, 2018 22:41
All FP exercises.
module Xml where
import Parse
-- Tokenization
type Attribute = (String,String)
data Token = StartTag String [Attribute]
| EndTag String
| EmptyTag String [Attribute]
@meitinger
meitinger / Launcher.c
Last active November 25, 2018 23:34
Utility that simply launches another program.
/* Copyright (C) 2018, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@meitinger
meitinger / SaveDevMode.c
Last active November 25, 2018 23:56
Utility that stores the DevMode of a given printer.
/* Copyright (C) 2017-2018, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@meitinger
meitinger / MCP.cs
Last active October 22, 2022 05:56
Utility that manages everything.
/* Copyright (C) 2016-2022, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@meitinger
meitinger / QtKernel.c
Last active March 28, 2020 14:14
Stub for Kernel32.dll loaded by Qt5Core.dll (and others) to treat symlinks like ordinary files.
/* Copyright (C) 2017-2020, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@meitinger
meitinger / WaitForPrinter.c
Last active November 26, 2018 00:05
Utility that waits for a (redirected) printer to become ready, sets it as default and launches a program.
/* Copyright (C) 2017-2018 Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@meitinger
meitinger / GimpSplitter.ps1
Last active June 19, 2017 20:59
Script that splits the 32bit and 64bit part of Gimp after unpacking it with innounp -x -a
Param (
[Parameter(Mandatory=$true)][string] $Path
)
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
Set-StrictMode -Version Latest
$section = $null
$lines = @{}
$components = @{}
@meitinger
meitinger / MakeIso.c
Last active November 25, 2018 23:35
Utility that creates an ISO file from an CD or DVD.
/* Copyright (C) 2017-2018, Manuel Meitinger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{067360aa-dfef-4477-8061-3ff6ef8d601e}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>7-Zip</OutputName>
<OutputType>Package</OutputType>
@meitinger
meitinger / IKVM.wixproj
Last active December 20, 2018 11:19
Custom IKVM.NET installer.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>3.6</ProductVersion>
<ProjectGuid>{d8410844-d2d6-4265-b82e-d3cfc4887a64}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>IKVM</OutputName>
<OutputType>Package</OutputType>