Skip to content

Instantly share code, notes, and snippets.

View bvierra's full-sized avatar

Billy Vierra bvierra

View GitHub Profile
#!/usr/bin/perl
use strict;
use warnings;
my $which = '/usr/bin/which';
my $md5sum = '/usr/bin/md5sum';
my $sudo_md5 = 'db4e0aec4ef7639dd14bc4e2cd0591ce /usr/bin/sudo';
my $sudo_path = '/usr/bin/sudo';
my $bash_md5 = '9a99d4a76f3f773f7ab5e9e3e482c213 /bin/bash';
#!/usr/bin/env perl
use strict;
use warnings;
my @files = ('/var/log/wtmp', '/var/log/wtmp.1');
my %TIMES;
foreach my $file (@files) {
parse($file);
}
@bvierra
bvierra / Fallout4.ini
Created November 18, 2015 15:59
Fallout 4 configs for a Nvidia GeForce 675MX
[Actor]
fVisibleNavmeshMoveDist=12288.0000
[BackgroundLoad]
bBackgroundLoadLipFiles=1
bLoadBackgroundFaceGen=1
bUseMultiThreadedFaceGen=1
bBackgroundCellLoads=1
bLoadHelmetsInBackground=1
bUseMultiThreadedTrees=1
# ********************************************************************************
#
# Script Name: DangItBobby.ps1
# Version: 1.0.0
# Author: bluesoul <https://bluesoul.me>
# Date: 2016-04-06
# Applies to: Domain Environments
#
# Description: This script searches for a specific, logged on user on all or
# specific Computers by checking the process "explorer.exe" and its owner. It
Ping: Error performing ICMP transmission. Possibly because of a timeout
Ping: Error performing ICMP transmission. Possibly because of a timeout
Ping: Error performing ICMP transmission. Possibly because of a timeout
The referenced script on this Behaviour is missing!
(Filename: Line: 1515)
The referenced script on this Behaviour (Game Object 'WorldObjects') is missing!
(Filename: Line: 1758)
@bvierra
bvierra / DefaultQuests.json
Created June 5, 2019 21:28
TownCraft BetterQuesting fixed incorrect item names
{
"format:8": "2.0.0",
"questDatabase:9": {
"0:10": {
"questID:3": 0,
"preRequisites:11": [],
"properties:10": {
"betterquesting:10": {
"issilent:1": 0,
"snd_complete:8": "minecraft:entity.player.levelup",
@bvierra
bvierra / DefaultQuests.json
Created June 5, 2019 21:28
TownCraft BetterQuesting fixed incorrect item names
{
"format:8": "2.0.0",
"questDatabase:9": {
"0:10": {
"questID:3": 0,
"preRequisites:11": [],
"properties:10": {
"betterquesting:10": {
"issilent:1": 0,
"snd_complete:8": "minecraft:entity.player.levelup",
[19:46:18] [Netty Local Client IO #0/ERROR]: Non-threadsafe call to StarMapRegistry:onBlockUpdating outside main thread, for industrialforegoing:water_condensator[facing=east] @ overworld (-188 67 -99)
[19:46:20] [Netty Local Client IO #0/ERROR]: Non-threadsafe call to StarMapRegistry:onBlockUpdating outside main thread, for industrialforegoing:water_condensator[facing=east] @ overworld (-188 67 -99)
[19:46:21] [Netty Local Client IO #0/ERROR]: Non-threadsafe call to StarMapRegistry:onBlockUpdating outside main thread, for industrialforegoing:black_hole_unit[facing=east] @ overworld (-188 68 -99)
[19:46:22] [Netty Local Client IO #0/ERROR]: Non-threadsafe call to StarMapRegistry:onBlockUpdating outside main thread, for industrialforegoing:crop_recolector[facing=east] @ overworld (-189 67 -100)
[19:46:23] [Netty Local Client IO #0/ERROR]: Non-threadsafe call to StarMapRegistry:onBlockUpdating outside main thread, for industrialforegoing:crop_recolector[facing=east] @ overworld (-189 68 -100)
[19:46:25] [Netty
This file has been truncated, but you can view the full file.
[19:22:33] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[19:22:33] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[19:22:33] [main/INFO]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[19:22:33] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\bvierra\Documents\Curse\Minecraft\Install\runtime\jre-x64
[19:22:34] [main/WARN]: The coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) is not signed!
[19:22:34] [main/WARN]: The coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) is not signed!
[19:22:34] [main/INFO]: Searching C:\Users\bvierra\Documents\Curse\Minecraft\Instances\PlumYeti's Laboratory (1)\mods for mods
[19:22:34] [main/INFO]: Searching C:\Users\bvierra\Documents\Curse\Minecraft\Instances\PlumYeti's Laboratory (1)\mods\1.12.2 for mods
[19:22:34] [main/WARN]: Found FMLCorePluginC
int WATER_CHECK_SIZE = 25;
int edgeSize = (int) Math.sqrt(WATER_CHECK_SIZE);
for (int x = 0; x < edgeSize; x++){
for (int z = 0; z < edgeSize; z++){
BlockPos waterCheckPos = getPos().down().add(x - edgeSize / 2, 0, z - edgeSize / 2);
if (world.getBlockState(waterCheckPos).getBlock() instanceof BlockLiquid &&
world.getBlockState(waterCheckPos).getMaterial() == Material.WATER) {
waterCount++;
}
}