Skip to content

Instantly share code, notes, and snippets.

View tecnobrat's full-sized avatar

Brian Stolz tecnobrat

View GitHub Profile
[08:25:49] [Server thread/WARN]: Statemachine for state BUILDING_STEP threw an exception:
java.lang.NullPointerException: Cannot invoke "com.ldtteam.structurize.util.BlockInfo.getState()" because the return value of "com.ldtteam.structurize.util.BlueprintPositionInfo.getBlockInfo()" is null
at com.minecolonies.core.entity.ai.workers.AbstractEntityAIStructure.lambda$structureStep$6(AbstractEntityAIStructure.java:411) ~[minecolonies-1.20.1-1.1.482-BETA.jar%23318!/:1.20.1-1.1.482-BETA]
at com.ldtteam.structurize.placement.AbstractBlueprintIterator.iterateWithCondition(AbstractBlueprintIterator.java:118) ~[structurize-1.20.1-1.0.700-RELEASE.jar%23340!/:1.20.1-1.0.700-RELEASE]
at com.ldtteam.structurize.placement.AbstractBlueprintIterator.decrement(AbstractBlueprintIterator.java:97) ~[structurize-1.20.1-1.0.700-RELEASE.jar%23340!/:1.20.1-1.0.700-RELEASE]
at com.minecolonies.core.entity.ai.workers.AbstractEntityAIStructure.lambda$structureStep$7(AbstractEntityAIStructure.java:410) ~[minecolonies-1.20.1-1.1.482-
@tecnobrat
tecnobrat / amazing.scss
Created April 14, 2022 21:00
Amazing SCSS
body {
background-color: rgb(random(255), random(255), random(255));
color: rgb(random(255), random(255), random(255));
* {
background-color: rgb(random(255), random(255), random(255));
color: rgb(random(255), random(255), random(255));
* {
background-color: rgb(random(255), random(255), random(255));
color: rgb(random(255), random(255), random(255));
* {

Keybase proof

I hereby claim:

  • I am tecnobrat on github.
  • I am tecnobrat (https://keybase.io/tecnobrat) on keybase.
  • I have a public key ASBCbKNl6sMMcBUZ9z-JBS76mrbIiWOJM8ukAPYAwQVCQAo

To claim this, I am signing this object:

@tecnobrat
tecnobrat / cycle-ecs.rb
Created December 2, 2018 17:15
Script to cycle our ECS nodes to a new AMI.
require 'rubygems'
require 'aws-sdk'
require 'optparse'
options = {}
OptionParser.new do |parser|
parser.banner = "Usage: cycle.rb [options]"
parser.on("-c", "--cluster NAME", "The name of the ECS cluster") do |v|
#!/bin/bash
# Tune fsync perf for docker mac per
# https://github.com/docker/for-mac/issues/668
echo "Setting disk sync"
cd ~/Library/Containers/com.docker.docker/Data/database/
git reset --hard
f="com.docker.driver.amd64-linux/disk"
variable "aws_account" {
default = {
0 = "aws.account1"
1 = "aws.account2"
2 = "aws.account3"
3 = "aws.account4"
}
}
resource "aws_instance" "foo" {
<script type="text/javascript" src="//statuspage-production.s3.amazonaws.com/se.js"></script>
<script type="text/javascript">
window.fetchStatusPage({
pageId: 'bb2myjbm0m8f', // required
successCallback: function(data) { // optional, for full control of data returned
if (data.status.indicator != "none") {
$("#status-updates").append("<h1 class='center'>Service Experiencing Known Issues <small>"+data.status.description+"</small></h1>")
$("#status-updates").append("<div class='center' style='padding: 10px'>Your server may be affected by this service issue.</div>")
$("#status-updates").append("<div class='center'><a href='"+data.page.url+"' target='_blank' class='btn btn-danger'>Visit our status page for updates <i class='fa fa-share fa-inverse'></i></a></div>")
$("#status-updates").parent("div").parent("div").show()
Host Loss% Snt Last Avg Best Wrst StDev
1. 23.92.24.2 0.0% 304 0.7 1.1 0.5 10.1 1.1
2. 10ge7-6.core3.fmt2.he.net 10.2% 304 0.4 8.1 0.2 90.5 17.2
3. 10ge10-5.core1.pao1.he.net 10.2% 304 0.9 4.4 0.7 13.7 4.3
10ge10-1.core1.sjc2.he.net
4. palo-b1-link.telia.net 13.5% 304 1.2 1.5 1.0 15.4 1.0
sjo-b21-link.telia.net
5. sjo-b21-link.telia.net 13.8% 304 0.9 3.7 0.8 75.0 12.8
level3-ic-157355-sjo-b21.c.telia.net
ash-bb3-link.telia.net
console.log("#awesome");
Spearmint.config do |c|
c.base_url = ENV.fetch('MINT_API_URL')
c.username = 'admin'
c.password = 'articul8'
end