Skip to content

Commit

Permalink
sad
Browse files Browse the repository at this point in the history
  • Loading branch information
sofusalbertsen committed Jan 18, 2024
1 parent b5f9b03 commit d89d9c7
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Simple workflow for deploying static content to GitHub Pages
name: Tests upload artifact

on:
# Runs on pushes targeting the default branch
push:
branches: ["newbranch"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
id-token: write

jobs:
# Single deploy job since we're just deploying
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs folder of the workflow repository
path: 'base'
34 changes: 34 additions & 0 deletions scripts/makefiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# Number of folders
num_folders=10

# Number of files per folder
files_per_folder=100

# Size of each file in KB
file_size=100

# Create a base directory to hold all the folders
base_dir="base"
mkdir -p "$base_dir"

# Loop to create folders
for (( folder=1; folder<=num_folders; folder++ ))
do
# Create folder
folder_name="${base_dir}/folder_${folder}"
mkdir -p "$folder_name"

# Loop to create files in each folder
for (( file=1; file<=files_per_folder; file++ ))
do
file_name="${folder_name}/file_${file}.txt"

# Create a file of the specified size
# Using 'head -c' to get the first 100KB of /dev/urandom
head -c "${file_size}K" /dev/urandom > "$file_name"
done
done

echo "Files created successfully."

0 comments on commit d89d9c7

Please sign in to comment.