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
print('Program initialized - View Monitor.')
--Settings for dealing with an overheating reactor
local maxTemperature = 1500
local tempWarningRatio = 0.75 --Ratio to change color for temp
local failsafeMaxDraw = 20 --Max Percentage Draw
local failsafeCooldown = 150 --Timer in Seconds
--Increases cooldown timer if reactor stays above max temp, and
--goes to 0 draw if timer reaches double failsafeCooldown
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**
@TehNut
TehNut / DarkenQuassel
Last active October 7, 2015 12:02
How to setup Quassel (IRC Client) to look nice
#HEY YOU!
###Want a really cool IRC client?
###Then follow these EZPZ steps!
1. Head on over [here](http://quassel-irc.org/) 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](http://i.imgur.com/e9Jnqnk.png)
3. Hit `F7` (or `Settings > Configure Quassel...`) and check the `Use Custom Stylesheet` option. Browse for `whateveryouwant.qss` and select it for use. Change the `Client Style` from `<System Default>` to `[Plastique|Fusion]`. ![Interface Settings](http://i.imgur.com/QOmyWYr.png)
4. This is where we will setup your `Chat Lists`.
@import url('http://fonts.googleapis.com/css?family=Roboto:300');
::-moz-selection {
color: #6F6F6F !important;
background: rgba(0, 0, 0, 0.5) !important;
text-shadow: 0 0 4px #000000 !important;
}
::selection {
color: #6F6F6F;
background: #6F6F6F;
text-shadow: 0 0 4px #0E0E0E;
#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/*>
@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";
}
@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 / 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 / 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 / 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;