Skip to content

Instantly share code, notes, and snippets.

⌨️
ENOTTY

Luna Allan nallar

⌨️
ENOTTY
Block or report user

Report or block nallar

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 gist:8883922
Method:
TT transformer runs as first coremod, javassist can now use LaunchClassLoader.getClassBytes to get any class's bytes.
Problem:
Some mod classes are already SRG transformed, javassist trying to load those to patch won't work.
Solution:
@nallar
nallar / gist:8925233
Created Feb 10, 2014
BlacklistEntries.txt
View gist:8925233
#*WORD^REPLACEMENT_WORD^FILTER_TYPE^EXEMPT_WORDS^IGNORE_SUBSTRING_CHECKS^REQUIRES_EXACT_MATCH^
0x3467616D65^^1^^0^1^
0x474D^^1^^1^0^
0x61646D696E^^1^^0^1^
0x61646D696E697374726174696F6E^^1^^0^1^
0x67616D656D6173746572^^1^^0^0^
0x696E6E6F7661^^1^^0^1^
0xD093D09C^^1^^1^0^
0xD0B0D0B4D0BCD0B8D0BD^^1^^0^1^
0xD0B0D0B4D0BCD0B8D0BDD0B8D181D182D180D0B0D186D0B8D18F^^1^^0^1^
View gist:11358713
repositories {
mavenCentral()
maven {
name = "eclipse"
url = "https://repo.eclipse.org/content/groups/eclipse/"
}
}
dependencies {
compile 'com.google.guava:guava:17.0'
View gist:11386542
A tick with TickThreading:
* Mod server tick handlers - uses 1 core
* World ticks - use as many cores as worlds
* entity ticks - as many as you have
* network tick - 1 core
* repeat
View RidiculouslyLongError.java
C:\cygwin\home\Ross\projects\TickThreading\build\sources\java\nallar\patched\forge\PatchForgeChunkManager.java:45: error: no suitable method found for putAll(Object)
world.forcedChunks = ImmutableSetMultimap.<ChunkCoordIntPair, Ticket>builder().putAll(world.forcedChunks).put(chunk, ticket).build();
^
method com.google.common.collect.ImmutableSetMultimap.Builder.putAll(Multimap<? extends ChunkCoordIntPair,? extends Ticket>) is not applicable
(actual argument Object cannot be converted to Multimap<? extends ChunkCoordIntPair,? extends Ticket> by method invocation conversion)
method com.google.common.collect.ImmutableSetMultimap.Builder.putAll(ChunkCoordIntPair,Iterable<? extends Ticket>) is not applicable
(actual and formal argument lists differ in length)
method com.google.common.collect.ImmutableMultimap.Builder.putAll(Multimap<? extends ChunkCoordIntPair,? exte
View gist:4f4ed18dc7bfcf843c07
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.commons.Remapper.mapFieldName(Ljava/lang/String;Ljava/lang/String;Ljava/lang/
at net.md_5.specialsource.RemappingClassAdapter.visitField(RemappingClassAdapter.java:125)
at org.objectweb.asm.ClassReader.a(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:241)
View map.sh
#!/bin/sh
grep -r $1 ~/mcp/conf/methods.csv || grep -r $1 ~/mcp/conf/fields.csv || grep -r $1 ~/mcp/conf/packaged.srg
View gist:0f2c706654840662602d
"Attach Listener" daemon prio=10 tid=0x00007f1374002000 nid=0x44be waiting on condition [0x0000000000000000]
"C1 CompilerThread3" daemon prio=10 tid=0x00007f13d01a3000 nid=0xe81 waiting on condition [0x0000000000000000]
"C2 CompilerThread0" daemon prio=10 tid=0x00007f13d0194800 nid=0xe7e waiting on condition [0x0000000000000000]
"C2 CompilerThread1" daemon prio=10 tid=0x00007f13d0196800 nid=0xe7f waiting on condition [0x0000000000000000]
"C2 CompilerThread2" daemon prio=10 tid=0x00007f13d0199000 nid=0xe80 waiting on condition [0x0000000000000000]
"Chunk I/O Executor Thread-1" daemon prio=10 tid=0x00007f1350b2b800 nid=0x11b9 waiting on condition [0x00007f12fa313000]
"Command Reader" daemon prio=10 tid=0x00007f1350001800 nid=0xe96 runnable [0x00007f139c222000]
"Concurrent Mark-Sweep GC Thread" prio=10 tid=0x00007f13d0100000 nid=0xe78 runnable
"Connection #1352 read thread" prio=10 tid=0x00007f1330021000 nid=0x29d7 sleeping[0x00007f12f846f000]
"Connection #264 read thread" prio=10 tid=0x00007f1330011800 nid=0x2d
View mirror.ps1
Unregister-Event -SourceIdentifier MyNewEmailAlert
$ol = New-Object -ComObject Outlook.Application
$Action = {
$path ="A:\New Folder"
if(Test-Path $path){
Remove-Item -Path $path
}
New-Item -Path $path -ItemType Directory
}
$null = Register-ObjectEvent $ol NewMailEx -SourceIdentifier MyNewEmailAlert -Action $Action
View gist:eeb16da4bed18215d98e
class whatever {
boolean saving;
boolean trySaveReloadThingy() {
synchronized(this) {
if (saving) {
return false;
}
startSaveThread();
saving = true;
You can’t perform that action at this time.