Skip to content

Commit 64adbf1

Browse files
authored
Merge pull request #115 from lingawakad/main
Add two workflows
2 parents 5364d85 + aaeedd0 commit 64adbf1

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

specs/du/find_biggest_files.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# The name of the workflow.
3+
name: Find the largest 10 files in a directory
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
du -ah {{directory}} | sort -hr | head -n 10
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- du
10+
# A description of the workflow.
11+
description: Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files
12+
# List of arguments within the command.
13+
arguments:
14+
# Name of the argument within the command. This must exactly match the name of the argument
15+
# within the command (without the curly braces).
16+
- name: directory
17+
# The description of the argument.
18+
description: The name of the directory where you want to find files
19+
# The default value for the argument.
20+
default_value: .
21+
# The source URL for where the workflow was generated from, if any.
22+
source_url: "https://linuxhandbook.com/find-biggest-files-linux/"
23+
# The author of the workflow.
24+
author: Christopher Murray
25+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
26+
author_url: "https://linuxhandbook.com/find-biggest-files-linux/"
27+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
28+
# See FORMAT.md for the full list of accepted values.
29+
shells: []

specs/python/update_pip.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Update all pip3 packages
3+
command: "pip3 list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip3 install -U"
4+
tags: ["python"]
5+
description: Update all your pip3 packages in one go.
6+
source_url: "https://gist.github.com/kikulikov/898108545ad3297966111aeacf44def7"
7+
author: Kirill Kulikov
8+
author_url: "https://github.com/kikulikov"
9+
shells: []

0 commit comments

Comments
 (0)