Religious Scripts from Middle Ages

Wondering what sorts of middle-ages religious scripts exist today, on perhaps archive.org. Don’t really know what to look for, and am explicitly not looking for anything literature related like Beowulf or Dante’s Inferno. I am more looking for things that could be considered similar to the Bible, the Rig Veda, Tao te ching, Popol Vuh, stuff like that. Basically original works that go into cosmogony, from the middle-ages. Specifically I would be interested in any Scandinavian stuff, Old Norse / Viking, or perhaps Celtic or Old English / Welsh stuff. Maybe even there is stuff from the Catholic Church during this time. I don’t really know much else about the period to know what to look for.

Passing variables between scripts in a Jenkins Pipeline

I have a declarative jenkins pipeline that looks like the following:

pipeline{
    agent {
        ...
    }
    stages {
        stage("Provision EC2 Instance and Set ENV Variable"){
            steps {
                dir("docker-image-builder"){ 
                    sh 'python ./provisonInstance.py'
                }
            }
        }
        stage("Configure EC2 Instance with Ansible"){
            steps { 
                ansiblePlaybook('./ansible.playbook.yml') {
                    ansibleName('1.9.4')
                }
            }
        }
    }
}

In my first stage, I have a python script that provisions an EC2 instance that will be used to create an AMI. In the second stage, I will then configure configure my instance before finally creating an AMI and terminating the instance. In order to do this, I need the instance-id of the EC2 instance created in the first stage. Is there an elegant way to pass values generated by a script between stages, and if so how?

The most obvious method that I can think of is to write the value to a file on the agent in the first stage, and read it in the second stage, but this does not seem like an elegant solution.

Migrating our startup scripts from CMD batch to Powershell?

My team builds an on-premise application that works on Windows, Mac and Linux.

The application contains a bin directory with the startup scripts for the application.

bin
  startup.sh (for linux/mac)
  startup.cmd (for windows)

My team finds maintaining the old-school CMD code tedious, for good reason. I’d like to move our team to powershell instead of cmd.

bin
  startup.sh
  startup.ps1

However, I’m hesitant to do this because I don’t see many other software applications package their stuff like this.

Is it because of the ps1 security thing where you have to allow ps1 files to be executable or what not? Why isn’t powershell used for this purpose more often?

Advice for backend creation/implementation (currently simple PHP -scripts)

Following scenario: I have published an Android App in the Play Store concerning cryptocurrencies. This app interacts with a VPS that I am renting. The server regularly fetches data from an API available on the internet and stores it. The app allows the user to retrieve that data and filter it by certain criterias.

The server has a LAMP stack installed, and fetches data by calling some PHP-scripts every 5 minutes and storing the results into the database.

The app retrieves the data by calling the URL of another PHP-script with a POST-request which receives a JSON-object as result.

As you can see the whole “backend” consists of only of PHP-scripts (which are all in the same folder, so it can be a mess to update those). Since I am going to switch to another API, I would like to use this as an opportunity to broaden my horizon and to dive a bit deeper into backend-programming from an engineering point-of-view.

I have looked into using Django and Node.js, but I am not sure if either of those fit my use-case, since Django is usually used for full web applications and the learning curve for Node.js is supposedly a bit steeper because of the event based architecture and I have to configure the packages on my own (at least that is what I have read).

Although this is quite a broad request, I would like to hear some advice from you guys, regarding this situation. To be more specific with the questions:

1) Does either Django or Node.js fit my needs, or do you consider both to be overkill?

2) What are some architectural key-words that I should look into, so my backend does not solely consist of loose scripts, or is this the conventional approach?

3) Maybe correlating with 2): Would it be useful to provide a REST-API if my app is the only thing that uses it.

Thank you in advance! 🙂

Execute local bash scripts on remote server but needs user input

I am using SSH command to execute the bash scripts remotely:

ssh user@server 'bash -s' < $script_dir/script.sh

And inside the script.sh, I will have the command like below to add ssh keys:

ssh-keygen -t rsa
ssh-copy-id postgres@$sqlserver
ssh postgres@$sqlserver -C true

And also create user in remote sql server

printf "Creating user in postgresql server...n"
createuser -s -P username

Which need user's input, but I found when I execute the command from the remote server, it will skip getting the users' input and failed.

Another one is:

printf "Please enter your barman server name: n" ; read -s barmanserver

Which cannot read user's input neither

I know that the script seems cannot read the other terminal's input, but can anyone help me find a solution if I need the user input to continue?

Thanks a lot!!

Eva

How do modify launchers? I want to execute bash shell scripts and perhaps blender and mugen fullscreen

Trying to run blender w/o graphics card other than mobo. I wanted to edit the launcher so that I can see debug messages but the terminal screen closes and this question doesnt really help me. Also I am interested in Wings3D if anyone knows how to use this. Also I need help editing or creating launchers in general for scripts and apps like mugen see tiny.cc/mugenlinux (license to use expired probably since it uses allegro?) For mugen I want to stretch the screen to full screen instead of using alt +mouseWheel

How to run a script without closing the terminal?

So my launcher is like

blender --debug-all --noaudio --nojoystick --factory-startup %f 

I also tried

blender --debug-all --noaudio --nojoystick --factory-startup %f && read

it crashed upon clicking the launcher
any ideas?

unable to run two (or more) scripts together

I am doing some rigs for a project and I have a problem that could not give solution, I have in scene several rigs that are variations of the same, the rig has a simple UI that basically reads and allows to modify properties , The problem is that when linking the characters (when there is more than one on the scene) when running the script one is disabled the other, the question is, how can I get both of them run at the same time, on the one hand I might be doing a script add that runs two or more scripts listed is that possible? Or which would be the correct way for self-executing to work well? Sorry if the question is silly I’m pretty good at rigs but I’m still learning blender scripting.

here is a sample of the Character_UI

import bpy

class RigUI(bpy.types.Panel):
    """Rigg user interface"""
    bl_label = "Rig UI"
    bl_idname = "PT_Rigg UI"
    bl_space_type = "VIEW_3D"
    bl_region_type = "UI"

    @classmethod
    def poll(cls, context):
        return context.active_object.type == 'ARMATURE' and context.active_object.name.startswith('koya_proxy')



    def draw(self, context):
        layout = self.layout

#IK FK switch

        obj = context.object
        bone = obj.pose.bones["gen"]

        row = layout.row()  
        row.label(text="Cuerpo", icon='MOD_ARMATURE')
        row = layout.row()  
        row.prop(bone,'["FK-IK_brazo.L"]',slider=True)
        row = layout.row()  
        row.prop(bone,'["FK-IK_brazo.R"]',slider=True)
        row = layout.row()  
        row.prop(bone,'["IK-FK_pierna.L"]',slider=True)
        row = layout.row()  
        row.prop(bone,'["IK-FK_pierna.R"]',slider=True)  
        row = layout.row()
        row.prop(context.active_object.data, "layers", index=16, toggle=True, text="falda")
        row = layout.row()  
        row.prop(bone,'["Auto - Full Manual "]',slider=True)

#facial

        row = layout.row()
        row.label("Facial", icon='MOD_MASK')
        row = layout.row()
        row.prop(context.active_object.data, "layers", index=6, toggle=True, text="Shapes")
        row.prop(context.active_object.data, "layers", index=4, toggle=True, text="bendy")
        row.prop(context.active_object.data, "layers", index=7, toggle=True, text="Lattices")
        row.prop(context.active_object.data, "layers", index=3, toggle=True, text="Cabello")

#accesorios


        row = layout.row()
        row.label("adicional", icon='MOD_CLOTH')
        row = layout.row()
        row.prop(context.active_object.data, "layers", index=5, toggle=True, text="bend")
        row = layout.row()  
        row.prop(bone,'["Fisica_cabello"]',slider=True)
        row = layout.row()  
        row.prop(bone,'["ph-vis"]',slider=True)


def register():
    bpy.utils.register_class(RigUI)


def unregister():
    bpy.utils.unregister_class()


register()

How does copying main stack prevent malformed unlocking scripts vulnerabilities?

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch06.asciidoc

In the original bitcoin client, the unlocking and locking scripts were
concatenated and executed in sequence. For security reasons, this was
changed in 2010, because of a vulnerability that allowed a malformed
unlocking script to push data onto the stack and corrupt the locking
script. In the current implementation, the scripts are executed
separately with the stack transferred between the two executions, as
described next.

First, the unlocking script is executed, using the stack execution
engine. If the unlocking script is executed without errors (e.g., it
has no “dangling” operators left over), the main stack is copied and
the locking script is executed. If the result of executing the locking
script with the stack data copied from the unlocking script is “TRUE,”
the unlocking script has succeeded in resolving the conditions imposed
by the locking script and, therefore, the input is a valid
authorization to spend the UTXO.

In this chapter, Andreas states that due to a bug with malformed unlocking scripts, the scripts are now executed separately.

Here is my understanding:

The unlocking script is first executed on the main stack.
If the unlocking script is valid, the entire stack is copied and the locking script is then executed.

Is there a reason why the stack is not copied prior to the unlocking script being executed? This way, if the unlocking script is malformed, it would not corrupt the rest of the main stack.