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
    
  
  
    
  | [dependencies] | |
| legion = "0.4.0" | |
| serde = "1.0.125" | |
| serde_json = "1.0.64" | 
  
    
      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
    
  
  
    
  | private Godot.Collections.Array meshInstances; | |
| private MeshInstance combinedMeshInstance; | |
| private void mergeChildren(bool useLocalSpace = false) | |
| { | |
| findAllMeshInstances(this); | |
| ArrayMesh tempMesh = new ArrayMesh(); | |
| SurfaceTool surfaceTool = new SurfaceTool(); | |
| surfaceTool.Begin(Mesh.PrimitiveType.Triangles); | 
  
    
      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
    
  
  
    
  | extends Control | |
| # Mostly inspired off https://www.youtube.com/watch?v=80cwYGvKB9U | |
| # and https://github.com/godotengine/godot/issues/8003 | |
| onready var input_node: LineEdit = $Input | |
| onready var output_node: TextEdit = $Output | |
| # Dump some commands in here for convenience | |
| var history = ["get_tree().get_root().get_node('Main')"] | 
  
    
      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
    
  
  
    
  | def netmask_to_cidr(m_netmask): | |
| return(sum([ bin(int(bits)).count("1") for bits in m_netmask.split(".") ])) | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| bucket=$1 | |
| set -e | |
| echo "Removing all versions from $bucket" | |
| versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
| markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |