Skip to content

Instantly share code, notes, and snippets.

View smbarbour's full-sized avatar

Scott M. Barbour smbarbour

View GitHub Profile
Private Sub TAPIEvents_Event(ByVal TapiEvent As TAPI3Lib.TAPI_EVENT, ByVal pEvent As Object)
Dim objCallInfo As ITCallInfo
Dim sWorkArea As String
Dim sRet As String
Dim sCallerID As String
Dim xKey As String
Dim hkey As Long
Dim xNode As Node
Dim dialNode As Boolean
Dim X As Long
Public Class NVPair
Private _Key As String
Private _Value As String
Public Sub New()
End Sub
Public Sub New(ByVal Key As String, ByVal Value As String)
@smbarbour
smbarbour / gist:7aa28e1e0168d140450f
Created July 5, 2014 06:35
authlib credentials map
BaseUserAuthentication
- username, String
- userid, String
- userProperties, List<Map<String,String>>
- displayName, String
- uuid, String
- profileProperties, List<Map<String,String>>
YggdrasilUserAuthentication
- accessToken, String
@smbarbour
smbarbour / SAGMillRecipes_User.xml
Last active August 29, 2015 14:10
Ex Nihilo SAG Mill recipes
<!--
This is the user configurable SAG Mill recipe file. This file will not be modified or removed by EnderIO.
Adding new Recipes:
For details of how to add a new recipe please see the documentation at the top of SAGMillRecipes_Core.xml.
Removing Recipes:
To disable all recipes within a group, in this example Forestry, include the following in this file:
<recipeGroup name="Forestry" enabled="false"/>
@smbarbour
smbarbour / gist:144a1a91e37f7365f468
Created December 15, 2014 05:20
Twitch library definitions
{
"name": "tv.twitch:twitch:6.5"
},
{
"name": "tv.twitch:twitch-platform:6.5",
"rules": [
{
"action": "allow"
},
{
<?xml version="1.0" encoding="UTF-8"?>
<ServerPack version="3.3" xmlns="http://www.mcupdater.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mcupdater.com http://files.mcupdater.com/ServerPackv2.xsd">
<Server abstract="false" autoConnect="false" generateList="false" id="newSample" mainClass="net.minecraft.launchwrapper.Launch" name="MCU Sample Pack" newsUrl="about:blank" revision="1" version="1.7.10">
<Import url="http://files.mcupdater.com/example/forge.php?mc=1.7.10&amp;forge=10.13.2.1291">forge</Import>
<Import>sample_core</Import>
<Import>sample_tech</Import>
<Import>sample_magic</Import>
<Import>sample_aesthetic</Import>
<Import>sample_client</Import>
<Module depends="" id="forge-10.13.2.1291" name="Minecraft Forge" side="BOTH">
<?xml version="1.0" encoding="UTF-8"?>
<ServerPack version="3.3" xmlns="http://www.mcupdater.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mcupdater.com http://files.mcupdater.com/ServerPackv2.xsd">
<Server abstract="false" autoConnect="false" generateList="false" id="newSample" mainClass="net.minecraft.launchwrapper.Launch" name="MCU Sample Pack" newsUrl="about:blank" revision="1" version="1.7.10">
<Import url="http://files.mcupdater.com/example/forge.php?mc=1.7.10&amp;forge=10.13.2.1291">forge</Import>
<Import>sample_core</Import>
<Import>sample_tech</Import>
<Import>sample_magic</Import>
<Import>sample_aesthetic</Import>
<Import>sample_client</Import>
<Module depends="" id="forge-10.13.2.1291" name="Minecraft Forge" side="BOTH">
@smbarbour
smbarbour / after
Created February 16, 2015 08:00
NBT Voodoo cleanup
TagCompound root = new TagCompound("");
TagList servers = new TagList("servers", TagList.Type.Compound);
TagCompound entry = new TagCompound("");
entry.add(new TagByte("hideAddress", (byte) 1));
entry.add(new TagString("name", "§A[MCU] §F" + name));
entry.add(new TagString("ip",ip));
servers.add(entry);
root.add(servers);
List<Byte> bytes = root.toBytes(true);
byte[] full = ArrayUtils.toPrimitive(bytes.toArray(new Byte[bytes.size()]));
@smbarbour
smbarbour / Mod Names
Last active August 29, 2015 14:15
Introduction to Modded Pack
AgriCraft
ArmorStatusHUD
CodeChickenCore
ForgeMultipart
InGameInfoXML
InfiniBows
Iron Chests
JABBA
JourneyMap
LunatriusCore
@smbarbour
smbarbour / gist:3686751bac568d0407c4
Created May 6, 2015 05:24
Making a custom MCU-Bootstrap
You'll need the stuff here: https://github.com/MCUpdater/workspace
You'll also need the Java JDK
You should be able to use the "Download ZIP" option on GitHub and not need to install a full-blown Git client.
Once you have that extracted somewhere, you would run "gradlew setupWorkspace" and it will download everything for you.
You can modify the gradle.properties file to change the defaultPack to your own.
Then in MCU-Bootstrap/src/main/resources/config.properties, you can set passthroughArgs to something like "--defaultMem 4G" to make the default for min/max memory 4G (instead of 1G)
finally, if you want to change the generated path where it installs/saves the instances and settings for MCUpdater, open MCU-Bootstrap/src/main/java/org/mcupdater/BootstrapForm.java and change lines 77, 81, and 86 to change MCUpdater to something like MyServerLauncher
Once you have made the changes you want, you can go back to the directory that has gradlew and execute it like this: "gradlew clean build gatherArtifacts"
Once it f