Skip to content

Instantly share code, notes, and snippets.

View TehNut's full-sized avatar
🤷‍♂️
why is github becoming a social platform

Nick Ignoffo TehNut

🤷‍♂️
why is github becoming a social platform
View GitHub Profile
// ==UserScript==
// @name Crunchyroll HTML5
// @namespace https://github.com/YePpHa/crunchyroll-html5
// @description A fully fledged HTML5 player for Crunchyroll.
// @version 0.14.4
// @author Jeppe Rune Mortensen <[email protected]>
// @match http://www.crunchyroll.com/*
// @match https://www.crunchyroll.com/*
// @source https://github.com/YePpHa/crunchyroll-html5.git
// @grant GM_xmlhttpRequest
@TehNut
TehNut / ModdingPortfolio.md
Created November 11, 2016 07:57
A list of current, past, and future Minecraft modding projects
@TehNut
TehNut / ModObjects.java
Created April 25, 2016 23:13
Forge 1.9 Registry examples
// Block
Block myBlock = new Block(Materials.ROCK);
GameRegistry.register(myBlock.setRegistryName("myBlock"));
// Block with inventory Item
Block myBlock = new Block(Materials.ROCK);
GameRegistry.register(myBlock.setRegistryName("myBlock"));
GameRegistry.register(new ItemBlock(myBlock).setRegistryName(myBlock.getRegistryName());

As I am a very bored person who likes to take on more than he should, this is a list of all the things I plan to work on over the next few weeks. I'll probably be adding more.

I'd really like to hammer out as many of the currently reported issues as I can, but there's a few features and backend changes and optimizations that I would love to make.

The format for this list is "basic description - reason".

1.7.10 Todo:

  • Altar accepts any instanceof BlockBeacon - #459
  • Altar can accept other mod variants (looking at you, Chisel) of required blocks - #459
@TehNut
TehNut / InventoryRenderHelper.java
Last active September 7, 2015 17:16
Inventory render helper class for Minecraft 1.8
package your.package.here;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelBakery;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
@TehNut
TehNut / TPPIFAQ.md
Last active August 29, 2015 14:21
TPPI Generalized FAQ
  • How do I get TPPI2?
  • How do I make Steel?
    • What is NEI?
  • What's a good early game power source?
    • Survivalist generator
  • What mod should I start with?
  • Tinker's Construct
  • How do I craft X?
  • Open your inventory. Click the box at the bottom. Search the name. Click on it. Stop asking stupid questions.
@TehNut
TehNut / CurseAsMaven
Created April 8, 2015 18:22
Curse as Maven
repositories {
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/" + project.curseforge_key
}
}
^^^ THIS DOES NOT GO IN BUILDSCRIPT, IT GOES ABOVE apply plugin: 'forge' ^^^
Then add this to dependencies
@TehNut
TehNut / Darker Quassel.md
Last active August 27, 2016 03:31
Darken the Quassel IRC client to look better

#HEY YOU!

###Want a really cool IRC client?

###Then follow these EZPZ steps!

  1. Head on over here and download the client. Install it. You do not need to install the core module.
  2. Head over to this Gist and copy all the text. Create a new file in your documents folder and name it whateveryouwant.qss.

File

@TehNut
TehNut / RockPaperScissors
Created November 14, 2014 04:35
It's rock paper scissors... Yay!
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "Rock";
} else if(computerChoice <= 0.67) {
computerChoice = "Paper";
} else {
computerChoice = "Scissors";
}
#Expects Jenkins to be running on port 8080. Obviously you can change it yourself.
#In /etc/default/jenkins, add "--prefix=/jenkins/" to your JENKINS_ARGS line (at the bottom). This will fix all broken links.
<VirtualHost *:80>
ServerName sub.domain.com
ProxyPass /jenkins/ http://localhost:8080/jenkins/ nocanon
ProxyPassReverse /jenkins/ http://localhost:8080/jenkins/
ProxyRequests Off
ProxyPreserveHost On
<Proxy http://localhost:8080/*>