Skip to content

Instantly share code, notes, and snippets.

View juntalis's full-sized avatar

Charles Grunwald juntalis

View GitHub Profile
/** 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(),
/** 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.
@juntalis
juntalis / SP.FormDigestInfo.js
Last active July 17, 2019 11:53
Extensions to the JSOM client context classes for accessing their cached SP.FormDigestInfo instances.
// Should probably only be used if you're using JSOM from somewhere without
// a __REQUESTDIGEST value or if you need more than just the digest value.
// To avoid having to make this asynchronous and deal with callbacks, this
// code assumes that you've run executeQueryAsync at least once with form
// digest handling enabled. (Default behavior - I think - but you can
// use get/set_formDigestHandlingEnabled if I'm wrong)
//
// Example:
//
// var ctx = SP.ClientContext.get_current();
@juntalis
juntalis / utf16_for_yasm.asm
Last active September 27, 2015 16:12
Not-quite-compatible implementation of NASM's __utf16__ keyword for YASM.
BITS 32
%macro __utf16__ 1
%assign idx 1
%xdefine wstring
%xdefine cstring %1
%strlen cstrlen cstring
%rep cstrlen
%substr cchar cstring idx
%if idx = 1
#pragma comment(lib,"Advapi32.lib")
#pragma comment(lib, "imagehlp.lib")
#include <Python.h>
#include <imagehlp.h>
/* Python Definitions */
#ifndef inline
# define inline __forceinline
#endif
/**
*
* WOW64Ext Library
*
* Copyright (c) 2014 ReWolf
* http://blog.rewolf.pl/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
@juntalis
juntalis / iswow64.py
Last active August 29, 2015 14:27
Using 7 bytes of preassembled shellcode, determine if the current 32-bit process is running in the WOW64 subsystem (as is the case when running 32-bit Python on 64-bit Windows) or if it's running from a 32-bit Windows OS.
# encoding: utf-8
"""
iswow64.py
Using 7 bytes of preassembled shellcode, determine if the current
32-bit process is running in the WOW64 subsystem (as is the case
when running 32-bit Python on 64-bit Windows) or if it's running
from a 32-bit Windows OS.
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
@juntalis
juntalis / findlinks.c
Last active April 16, 2023 04:07
Find hard links for a given filepath
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
@echo on
rem LaunchGTA5.cmd
rem - Written by Charles Grunwald (Juntalis)
rem
rem Assuming this batch file is run from the same directory as 3DM's Launcher.exe for GTA5,
rem this batch file will change the system date to the value of the _CONFIG_RUNDATE_ configuration
rem below.
setlocal
goto forkcheck