This file contains 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
/* This first part adds Seared Stone as a material. Toolparts and tool graphics are created automatically by color */ | |
NBTTagCompound tag = new NBTTagCompound(); | |
tag.setInteger("Id", 50); // Unique material ID. Reseved IDs: 0-40 Tinker, 41-45 Iguana Tinker Tweaks, 100-200 ExtraTiC | |
tag.setString("Name", "Seared Stone"); // Unique material name | |
tag.setInteger("HarvestLevel", 3); // diamond level | |
tag.setInteger("Durability", 100); | |
tag.setInteger("MiningSpeed", 100); | |
tag.setInteger("Attack", 0); // optional | |
tag.setFloat("HandleModifier", 0.1f); | |
tag.setInteger("Reinforced", 0); // optional |
This file contains 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
<?php | |
class Utility | |
{ | |
public function createValidator($spec) | |
{ | |
list($type, $name) = explode(":", $spec, 2) + ['', '']; | |
$options = ["default" => null]; | |
switch($type) | |
{ |
This file contains 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
server { | |
server_name | |
cloud.rootdir.org | |
cloud.darkdragon.lan | |
; | |
error_log syslog error; | |
access_log off; | |
listen 80; |
This file contains 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
#!/bin/sh | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=$( git hash-object -t tree /dev/null ) | |
fi |
This file contains 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
<?php | |
/** Wrapper for actual thing that do the network talking. | |
This could be encapsulation for curl, Guzzle, Net\Browser, etc. | |
The wrapper offers a known stable interface to external library. | |
*/ | |
class Service\Api\Wrapper | |
{ |
This file contains 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
SHELL := /bin/sh | |
.SHELLFLAGS := -ec | |
.ONESHELL: | |
PHAR_FILES := index.php | |
clean: | |
-rm index.php example.phar | |
dist-clean: clean |
This file contains 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
location ^~ /uploads/documents/ { | |
alias /volume/data/documents/; | |
set $auth_pass "$request_uri"; | |
auth_request /auth/documents; | |
auth_request_set $auth_status "$upstream_status"; | |
} | |
location ^~ /auth/ { | |
internal; | |
proxy_pass "http://back:8080/auth/$auth_pass"; |
This file contains 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
@ECHO OFF | |
SET SERVER="%~dp0php-xdebug.btm" | |
:: PARAMETRIZE [name param] | |
ALIAS /L | |
ALIAS PARAMETRIZE=`SET __name=%1 %+ SET __value=%@REREPLACE[^^--.*?=,,%2] %+ IFF "%[__value]" != "%2" THEN %+ SET %[__name]=%[__value] %+ UNSET __name %+ ENDIFF %+ UNSET __value` | |
SET _enc=UTF-8 | |
SET _session=local | |
DO param IN /Q %$ "" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Panel</title> | |
<link rel="shortcut icon" href="/favicon.png" type="image/png"/> | |
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> | |
<base target="_blank" /> | |
</head> | |
<body> |
This file contains 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
@ECHO OFF | |
GOSUB test %[1] | |
ECHO %[1]:Ok | |
QUIT | |
:test [rc] | |
REM "%[SystemRoot]\System32\cmd.exe" /S /K "EXIT %[rc]" | |
.\testme.exe %[rc] |
NewerOlder