Skip to content

Instantly share code, notes, and snippets.

@kun432
kun432 / unstract_issue_#595_02.md
Last active August 23, 2024 09:10
Zipstack/unstract issue #595-02 using LLMWhisperer
@kun432
kun432 / unstract_issue_#595.md
Last active August 23, 2024 09:08
Zipstack/unstract issue #595

Environment Info

os

$ docker version
Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
@lukeplausin
lukeplausin / transfer_ssm_file.sh
Last active October 29, 2024 13:32
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
@vncsna
vncsna / bash_strict_mode.md
Created June 6, 2021 01:59 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active October 30, 2024 13:54
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@0xjac
0xjac / private_fork.md
Last active November 3, 2024 10:37
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git