find -type f -mtime -2 -size +1M
du -a / | sort -n -r | head -n 50
find ./* -mtime +30 -exec rm {} \;
public void updateDisplay(boolean hard) { | |
try { | |
Object dataWatcher = Reflection.getNMSClass("Entity").getDeclaredMethod("getDataWatcher").invoke(Reflection.getHandle(getWrapped())); | |
Object metaPacket = Reflection.getNMSClass("PacketPlayOutEntityMetadata").getConstructor(int.class, Reflection.getNMSClass("DataWatcher"), boolean.class).newInstance(getWrapped().getEntityId(), dataWatcher, false); | |
// int locX = (int) ((getWrapped().getLocation().getX()) * 32.0D); | |
// int locY = (int) ((getWrapped().getLocation().getY()) * 32.0D); | |
// int locZ = (int) ((getWrapped().getLocation().getZ()) * 32.0D); | |
// | |
// byte yaw = (byte) ((int) (getWrapped().getLocation().getYaw() * 256.0F / 360.0F)); |
{ | |
"000000000002.075": { | |
"GUID": "000000000002.075", | |
"Name": "Reaper", | |
"Description": "Some speak of a black-robed terrorist known only as the Reaper. His identity and motives are a mystery. What is known is that where he appears, death follows.", | |
"Gender": "Male", | |
"Size": "Small", | |
"IsNpc": 1, | |
"SupportsAi": 1, | |
"GalleryColor": { |
function simplifyUnknownNbtValue(v) { | |
let s; | |
if (v.hasOwnProperty("tagMap")) { | |
s = simplifyNbtMap(v); | |
} else if (v.hasOwnProperty("tagList")) { | |
s = simplifyNbtList(v); | |
} else { | |
s = simplifyNbtData(v); | |
} | |
return s; |
# SSD with Mobilenet v1 0.75 depth multiplied feature extractor, focal loss and | |
# quantized training. | |
# Trained on IIIT-Oxford pets, initialized from COCO detection checkpoint | |
# This config is TPU compatible | |
model { | |
ssd { | |
inplace_batchnorm_update: true | |
freeze_batchnorm: false |
# SSD with Mobilenet v1 0.75 depth multiplied feature extractor, focal loss and | |
# quantized training. | |
# Trained on IIIT-Oxford pets, initialized from COCO detection checkpoint | |
# This config is TPU compatible | |
model { | |
ssd { | |
inplace_batchnorm_update: true | |
freeze_batchnorm: false |
db.getCollection('...').aggregate( | |
{"$group" : { "_id": "$id", "count": { "$sum": 1 } } }, | |
{"$match": {"_id" :{ "$ne" : null } , "count" : {"$gt": 1} } }, | |
{"$sort": {"count" : -1} }, | |
{"$project": {"id" : "$_id", "_id" : 0} } | |
)/*.forEach(function(r){ | |
db.getCollection('---').remove({id:r.id}) | |
})*/ |
#!/bin/sh | |
PREFIX="myServer" | |
MONGO_HOST="localhost" | |
MONGO_PORT=27017 | |
MONGO_USER="admin" | |
MONGO_PASS="admin" | |
FTP_HOST="1.2.3.4" | |
FTP_USER="admin" |
public void patchVersions() { | |
System.out.println("=== RUNNING PATCH ==="); | |
List<org.bson.Document> resources = databaseClient.getResourcesCollection().find().into(new ArrayList<>()); | |
for (org.bson.Document document : resources) { | |
int resourceId = document.getInteger("_id"); | |
System.out.println("Resource: " + resourceId); | |
List versions = (List) document.get("versions"); |