Skip to content

Instantly share code, notes, and snippets.

Charles Grunwald juntalis

Block or report user

Report or block juntalis

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
View list-view-segfault.patch
Index: lcl/include/customlistview.inc
===================================================================
--- lcl/include/customlistview.inc (revision 57768)
+++ lcl/include/customlistview.inc (working copy)
@@ -1669,7 +1669,7 @@
finally
EndUpdate;
end;
- end else
+ end else if FSelected <> nil then
View ListViewBug.pas
unit ListViewBug;
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls;
procedure ReproduceSegFault;
implementation
@juntalis
juntalis / Compat_ConfigurableMaps.cs
Created Sep 9, 2018
Unofficial configurable maps B19
View Compat_ConfigurableMaps.cs
using System;
using System.Linq;
using Harmony;
using MapReroll.Patches;
using MapReroll.UI;
using RimWorld;
using UnityEngine;
using Verse;
namespace MapReroll.Compat {
View Compat_ConfigurableMaps.cs
using Harmony;
using MapReroll.Patches;
using MapReroll.UI;
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEngine;
@juntalis
juntalis / dup-fd-approach.py
Last active Apr 3, 2018
Python 3 only - cba to fuck with compatibility shims.
View dup-fd-approach.py
# encoding: utf-8
import os
import io
import errno
import array
import weakref
import tempfile
import functools
@juntalis
juntalis / vmwared.cmd
Created Mar 18, 2018
Windows batch script to start/stop/restart/toggle VMWare Workstation related services.
View vmwared.cmd
@echo off
setlocal
goto main
:safeset
rem Set a variable only if it's not already set
if defined %~1 goto :EOF
call set "%~1=%%~2"
goto :EOF
@juntalis
juntalis / force-globals.lua
Last active Aug 27, 2017
Bypass redis script sandboxing in order to force a set of variables into the global namespace. Use Case: Having a heavily-used script with a bunch initialization time processing (class building, constants tables, etc) that will always execute the exact same way regardless of the user input from ARGV and KEYS or the state of redis's data. This sc…
View force-globals.lua
local function force_globals(globs)
-- Check for metatable on _G. If no metatable exists,
-- create one.
local _G_mt = getmetatable(_G)
if _G_mt == nil then
return setmetatable(_G, {
__index=globs
})
end
@juntalis
juntalis / functions.cmd
Created Nov 21, 2016
Common-use functions for batch
View functions.cmd
@echo off
:dirname
rem Given a filepath, resolve the absolute filepath of its parents folder.
rem \param [out] %1 - The variable name to output the results to.
rem \param [in] %2 - The filepath that we'll be operating on.
call set "%~1=%%~dp2"
call set "%~1=%%%~1:~0,-1%%"
goto :EOF
View deleteReadOnlyField.js
/** Script configuration goes here */
var LIST_TITLE = 'YOUR LIST TITLE HERE';
var FIELD_NAME = 'YOUR FIELD NAME HERE';
/** Actual logic used to list the field names. */
(function (listTitle, readOnlyField) {
// First grab our client context.
var oCtx = SP.ClientContext.get_current(),
View enumerate-fields.js
/** Script configuration goes here */
var LIST_TITLE = 'YOUR LIST TITLE HERE';
/** Actual logic used to list the field names. */
(function (listTitle) {
// First grab our client context.
var oCtx = SP.ClientContext.get_current(),
// Grab our field collection and load it.
You can’t perform that action at this time.