mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-01 05:21:43 +02:00
Add content for vmstat
This commit is contained in:
@@ -1 +1,7 @@
|
|||||||
# Vmstat
|
# Vmstat
|
||||||
|
|
||||||
|
`vmstat` (**V**irtual **M**emory **Stat**istics) is a performance monitoring command. It is used to obtain information about memory, system processes, paging, interrupts, block I/O, disk, and CPU scheduling. Users can observe system activity virtually in real time by specifying a sampling period.
|
||||||
|
|
||||||
|
<ResourceGroupTitle>Useful Links</ResourceGroupTitle>
|
||||||
|
<BadgeLink colorScheme='blue' badgeText='Man page' href='https://man7.org/linux/man-pages/man8/vmstat.8.html'>vmstat man page</BadgeLink>
|
||||||
|
<BadgeLink colorScheme='blue' badgeText='Tutorial' href='https://phoenixnap.com/kb/vmstat-command'>vmstat tutorial</BadgeLink>
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"license": "BSD-4-Clause",
|
"license": "BSD-4-Clause",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"review": "./scripts/pr-review.sh",
|
|
||||||
"dev": "next",
|
"dev": "next",
|
||||||
"serve:out": "serve out",
|
"serve:out": "serve out",
|
||||||
"build": "./scripts/build.sh",
|
"build": "./scripts/build.sh",
|
||||||
|
@@ -15,16 +15,10 @@ require jq
|
|||||||
require gh
|
require gh
|
||||||
require fzf
|
require fzf
|
||||||
|
|
||||||
# get the list of open pull requests
|
prd="$(gh pr list --json 'number,title' | jq -r '.[]| [.number, .title] | @sh' | column -t -s"'" | fzf)"
|
||||||
prs=$(gh pr list --json number,title --limit 100 | jq -r '.[] | "\(.number) \(.title)"')
|
[ -z "$prd" ] && echo "No PR selected" && exit 0
|
||||||
|
|
||||||
# select a pr
|
pr_id="$(echo "$prd" | awk '{print $1}')"
|
||||||
pr=$(echo "$prs" | fzf --prompt="Select a PR: " --height=50% --reverse --preview="gh pr view {1} --json 'files' | jq -r '.files|map(.path)|.[]'")
|
|
||||||
|
|
||||||
# get the pr number
|
gh pr view "$pr_id" --json "files" | jq -r '.files|map(.path)|.[]'
|
||||||
pr_number=$(echo "$pr" | awk '{print $1}')
|
gh pr checkout "$pr_id"
|
||||||
|
|
||||||
[ -z "$pr_number" ] && echo "🛑 No PR selected" && exit 1
|
|
||||||
|
|
||||||
echo "Checkout PR: $pr_number"
|
|
||||||
gh pr checkout "$pr_number"
|
|
||||||
|
9
scripts/squash-merge.sh
Executable file
9
scripts/squash-merge.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
git reset --soft HEAD~$(git rev-list --count HEAD ^master)
|
||||||
|
git checkout master
|
||||||
|
git add -A
|
||||||
|
git commit -m "$1"
|
||||||
|
|
Reference in New Issue
Block a user