This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo ufw logging on | |
| sudo tail -f /var/log/ufw.log | |
| sudo ufw logging off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fullAlphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | |
| const restrictedAlphabet = 'BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz'; | |
| const threadPrefix = 'thread-'; | |
| const messagePrefix = 'msg-'; | |
| const isWhitespace = str => /^[\s\xa0]*$/.test(str); | |
| const isInvalidString = str => str ? (str.indexOf(threadPrefix) !== -1 || str.indexOf(messagePrefix) !== -1) : false; | |
| const encode = function(str) { | |
| if (isWhitespace(str)) return str; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re, requests, warnings | |
| from six.moves import urllib | |
| from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
| from gtts import gTTS | |
| class gHTTS(gTTS): | |
| def get_google_url(self): | |
| for idx, part in enumerate(self.text_parts): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package myMod.Modding.Core; | |
| import net.minecraft.entity.Entity; | |
| import net.minecraft.entity.EntityLivingBase; | |
| import net.minecraft.entity.player.EntityPlayer; | |
| import net.minecraft.potion.Potion; | |
| import net.minecraft.potion.PotionEffect; | |
| import net.minecraft.potion.PotionType; | |
| import javax.annotation.Nullable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| maven { | |
| name = "forge" | |
| url = "http://files.minecraftforge.net/maven" | |
| } | |
| maven { | |
| name = "sonatype" | |
| url = "https://oss.sonatype.org/content/repositories/snapshots/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @TileEvent( TileEventType.TICK ) | |
| public void tickingTile(){ | |
| int TOTALBYTES = 0; | |
| List<TileEntity> tileEntity = getTiles(); | |
| NCLog.fatal("SIZE: " + tileEntity.size()); | |
| for(int i = 0; i < tileEntity.size(); i++){ | |
| TileEntity tile = tileEntity.get(i); | |
| NCLog.error(tile); | |
| NCLog.fatal("x: " + tile.xCoord + " y: " + tile.yCoord + " z: " + tile.zCoord); | |
| NCLog.fatal(tileEntity.get(1).xCoord +"."+tileEntity.get(1).yCoord +"."+tileEntity.get(1).zCoord); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---- Minecraft Crash Report ---- | |
| // Uh... Did I do that? | |
| Time: 11/30/14 7:27 PM | |
| Description: Rendering Block Entity | |
| java.lang.NullPointerException: Rendering Block Entity | |
| at dmf444.ExtraFood.Client.renderer.JuiceMixerModel.render(JuiceMixerModel.java:20) | |
| at dmf444.ExtraFood.Client.renderer.JuiceMixerRenderer.renderTileEntityAt(JuiceMixerRenderer.java:35) | |
| at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:141) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.minecraft.client.Minecraft; | |
| import net.minecraft.client.multiplayer.WorldClient; | |
| import net.minecraft.entity.EntityTracker; | |
| import net.minecraft.entity.EntityTrackerEntry; | |
| import net.minecraft.entity.player.EntityPlayerMP; | |
| import net.minecraft.item.ItemFood; | |
| import net.minecraft.item.ItemStack; | |
| import net.minecraft.network.play.server.S0BPacketAnimation; | |
| import net.minecraft.util.FoodStats; | |
| import net.minecraft.world.World; |