From 6f62a1375ecc9b6dfad955f736fd586d464a22e8 Mon Sep 17 00:00:00 2001 From: prateek121212 <127980429+prateek121212@users.noreply.github.com> Date: Thu, 11 Jan 2024 19:14:14 +0530 Subject: [PATCH 1/3] hey i want to discuss about the humanscript --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c5f0b6c..e4bfa63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ RUN apt-get install --yes moreutils wget parallel nano vim rsync git telnet ssh COPY humanscript /bin/humanscript -WORKDIR /data \ No newline at end of file +WORKDIR /data From 9566caa223fab589cac385e1e287ffb0e9b42f33 Mon Sep 17 00:00:00 2001 From: prateek121212 <127980429+prateek121212@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:06:34 +0530 Subject: [PATCH 2/3] aa Co-Authored-By: Mayank Chhabra Co-Authored-By: Suraj Mahraj <53395120+surajmahraj@users.noreply.github.com> Co-Authored-By: Prateek Rungta <199982+prateek@users.noreply.github.com> --- .devcontainer/devcontainer.json | 37 +++++++++++++++++++++++++++++++++ Dockerfile | 14 ------------- LICENSE | 6 ++++++ humanscript | 5 ++++- 4 files changed, 47 insertions(+), 15 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..9aae2ef --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/alpine +{ + "name": "Alpine", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:alpine-3.18", + "features": { + "ghcr.io/elanhasson/devcontainer-features/dotnet-aspire-daily:1": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "oleg-shilo.cs-script" + ] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" + "hostRequirements": {connect absence to the roots features} "overrideFeatureInstallOrder": [keybinding]} + // use a dockerfile r docker compose file. + {Features to add to the dev container.} + + + diff --git a/Dockerfile b/Dockerfile index e4bfa63..e69de29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +0,0 @@ -FROM debian:bookworm - -# Update sources -RUN apt-get update --yes - -# Install humanscript dependencies -RUN apt-get install --yes openssl curl jq - -# Install common utilities that humanscripts or humans might want to use -RUN apt-get install --yes moreutils wget parallel nano vim rsync git telnet ssh tree file yq pv bc rename xmlstarlet jo nmap netcat-openbsd net-tools bsdmainutils sudo - -COPY humanscript /bin/humanscript - -WORKDIR /data diff --git a/LICENSE b/LICENSE index e61e8fb..ffa900e 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +I have to discuss the project configuration subject to the gihub data to claerify. +FITNESS FOR A PARTICULAR PURPOSE AND SOFTWARE LAGING IN NO EVENT CLAIM THAT THE LIABILITY TO DISCUSS THE SOFTWARE MANAGEMENT +THE SOFTWARE IS PROVIDED AS IF WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MACHINERY FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES. +THE SOFTWARE IS PROVIDED AS IF DOCUMENTATION FILES OBTAINING A COPY OF THE UNSYMETRIC PROCESS TO DISCOVER THE PROJECT. +IT IS DISCUSS AS ABOVE THAT THE COPYRIGHTS MIGHT BE COMPROMISED WHEN THE DOCUMENT IS CONFIGURE TO CLEARIFY THE PROJECT. +GITHUB SHALL BE SHARED BY THE SOFTWARE DEVLOPEMENT \ No newline at end of file diff --git a/humanscript b/humanscript index 34da225..a40b6da 100755 --- a/humanscript +++ b/humanscript @@ -76,4 +76,7 @@ curl --silent --show-error "${HUMANSCRIPT_API}/chat/completions" \ tee >(jq --join-output --unbuffered '.error // ""' >&2 || cat) | # Log API errors to stderr (without breaking the pipe) jq --join-output --unbuffered '.choices[0].delta.content // ""' 2> /dev/null | # Grab content from JSON chunk tee "${script_cache_path}" | # Cache result - ([[ "${HUMANSCRIPT_EXECUTE}" = "true" ]] && exec bash -s ${@:2} || cat) # Pipe to bash (or stdout if HUMANSCRIPT_EXECUTE=false) \ No newline at end of file + ([[ "${HUMANSCRIPT_EXECUTE}" = "true" ]] && exec bash -s ${@:2} || cat) # Pipe to bash + gpt + + \ No newline at end of file From 1d2ddb8e1f58596be7c2fcb871a3170949770b36 Mon Sep 17 00:00:00 2001 From: prateek121212 <127980429+prateek121212@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:21:31 +0530 Subject: [PATCH 3/3] Update humanscript Co-Authored-By: jimbrend <8608634+jimbrend@users.noreply.github.com> --- humanscript | 1 + 1 file changed, 1 insertion(+) diff --git a/humanscript b/humanscript index a40b6da..c2c9849 100755 --- a/humanscript +++ b/humanscript @@ -79,4 +79,5 @@ curl --silent --show-error "${HUMANSCRIPT_API}/chat/completions" \ ([[ "${HUMANSCRIPT_EXECUTE}" = "true" ]] && exec bash -s ${@:2} || cat) # Pipe to bash gpt + HUMANSCRIPT_REGENERATE \ No newline at end of file