update from hal-11

This commit is contained in:
Diego Fernando Carrión 2024-11-13 19:21:36 +01:00
parent 36b50bb269
commit dfc4b569b7
Signed by: CRThaze
GPG Key ID: 8279B79A1A7F8194
5 changed files with 205 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#? Config file for btop v. 1.2.3
#? Config file for btop v. 1.3.0
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
@ -16,11 +16,11 @@ force_tty = False
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
#* Use withespace " " as separator between different presets.
#* Use whitespace " " as separator between different presets.
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
#* Set to True to enable "h,j,k,l" keys for directional control in lists.
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
vim_keys = False
@ -37,6 +37,9 @@ graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default"
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
graph_symbol_gpu = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default"
@ -46,14 +49,14 @@ graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 2000
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu responsive",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu responsive" updates top process directly.
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy"
#* Reverse sorting order, True or False.
@ -74,12 +77,21 @@ proc_per_core = False
#* Show process memory as bytes instead of percent.
proc_mem_bytes = True
#* Show cpu graph for each process.
proc_cpu_graphs = True
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = False
#* Show proc box on left side of screen instead of right.
proc_left = False
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
proc_filter_kernel = False
#* In tree-view, always accumulate child process resources in the parent process.
proc_aggregate = False
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "total"
@ -88,6 +100,9 @@ cpu_graph_upper = "total"
#* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "total"
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
show_gpu_info = "Auto"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = True
@ -144,6 +159,9 @@ mem_graphs = True
#* Show mem box below net box instead of above.
mem_below_net = False
#* Count ZFS ARC in cached and available memory.
zfs_arc_cached = True
#* If swap memory should be shown in memory box.
show_swap = True
@ -159,6 +177,9 @@ only_physical = True
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = True
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
zfs_hide_datasets = False
#* Set to true to show available disk space for privileged users.
disk_free_priv = False
@ -198,3 +219,27 @@ selected_battery = "Auto"
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "WARNING"
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
nvml_measure_pcie_speeds = True
#* Horizontally mirror the GPU graph.
gpu_mirror_graph = True
#* Custom gpu0 model name, empty string to disable.
custom_gpu_name0 = ""
#* Custom gpu1 model name, empty string to disable.
custom_gpu_name1 = ""
#* Custom gpu2 model name, empty string to disable.
custom_gpu_name2 = ""
#* Custom gpu3 model name, empty string to disable.
custom_gpu_name3 = ""
#* Custom gpu4 model name, empty string to disable.
custom_gpu_name4 = ""
#* Custom gpu5 model name, empty string to disable.
custom_gpu_name5 = ""

View File

@ -1,5 +1,5 @@
{
"LuaSnip": { "branch": "master", "commit": "ac7cbc0e85710db7cba6510b1d8e6a1a551444f7" },
"LuaSnip": { "branch": "master", "commit": "787dee55ca364cc9119787165418fe93b74c1842" },
"NvChad": { "branch": "v2.5", "commit": "09dd13e9c6df98fe5609829a7a0fbccea2f515ae" },
"base46": { "branch": "v2.5", "commit": "fec9fa583025e69e0c4f902bd61990e8d13d1975" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
@ -7,14 +7,14 @@
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"conform.nvim": { "branch": "master", "commit": "f5bd8419f8a29451e20bdb1061a54fe13d5c8de3" },
"conform.nvim": { "branch": "master", "commit": "5fbea7d7043bae2499d643c97b407f6da44abff4" },
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"gitsigns.nvim": { "branch": "main", "commit": "ee7634ab4f0a6606438fe13e16cbf2065589a5ed" },
"gopher.nvim": { "branch": "main", "commit": "f55c15ada8e02398000c04a96ef44d986cd01051" },
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
"lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
"lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"menu": { "branch": "main", "commit": "ee85b2e394fde354bd24e35ff7a688d10c9212fa" },
@ -26,16 +26,16 @@
"nvim-dap-go": { "branch": "main", "commit": "6aa88167ea1224bcef578e8c7160fe8afbb44848" },
"nvim-dap-python": { "branch": "master", "commit": "03fe9592409236b9121c03b66a682dfca15a5cac" },
"nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
"nvim-lspconfig": { "branch": "master", "commit": "ff69ecca55d83ffc70657f260a799f79a5637831" },
"nvim-lspconfig": { "branch": "master", "commit": "edd9591199d1c78c0cb20514231f7f936f9412a2" },
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-tree.lua": { "branch": "master", "commit": "5ad87620ec9d1190d15c88171a3f0122bc16b0fe" },
"nvim-treesitter": { "branch": "master", "commit": "9b1e607298dd5fc2ee6549488324cc92dafb99c0" },
"nvim-tree.lua": { "branch": "master", "commit": "2a268f631da85e83b7a95291be589bcddfc785d8" },
"nvim-treesitter": { "branch": "master", "commit": "377039daa260b71f304c881d1b21d643c501a261" },
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"tagbar": { "branch": "master", "commit": "d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8" },
"telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
"ui": { "branch": "v3.0", "commit": "81f5ff0fb2ce60cc3b2cfc9df928751c2ac4f7e9" },
"ui": { "branch": "v3.0", "commit": "785bcbbf84eadcf3a831f9247577969e33c8f2ca" },
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
"venv-selector.nvim": { "branch": "regexp", "commit": "e82594274bf7b54387f9a2abe65f74909ac66e97" },
"vim-helm": { "branch": "master", "commit": "ae1ebc160d2b9b90108477ab10df7a4fc501e358" },

0
home/any/scripts/.local/bin/aws-assume-role.sh Normal file → Executable file
View File

View File

@ -0,0 +1,143 @@
#!/bin/bash
# Check if correct number of arguments is provided
if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then
echo "Usage: $0 <repository-url> <subdirectory-path> [commit-hash]"
echo "Example: $0 git@github.com:user/repo.git src/components 1a2b3c4d"
echo "Note: If commit-hash is not provided, the latest commit will be used"
exit 1
fi
REPO_URL="$1"
SUBDIR_PATH="$2"
COMMIT_HASH="$3"
# Extract the repository name from the URL
REPO_NAME=$(basename "$REPO_URL" .git)
# Create a directory for the repo and enter it
echo "Creating directory $REPO_NAME..."
mkdir -p "$REPO_NAME"
cd "$REPO_NAME" || exit 1
# Initialize git repository
echo "Initializing git repository..."
git init
# Add the remote repository
echo "Adding remote repository..."
git remote add origin "$REPO_URL"
# Enable sparse checkout
echo "Enabling sparse checkout..."
git config core.sparseCheckout true
# Create sparse-checkout file with the specified path
echo "Configuring sparse checkout for $SUBDIR_PATH..."
echo "$SUBDIR_PATH/*" > .git/info/sparse-checkout
if [ -n "$COMMIT_HASH" ]; then
# If commit hash is provided, fetch that specific commit
echo "Fetching specific commit $COMMIT_HASH..."
git fetch --depth 1 origin "$COMMIT_HASH"
# Check if fetch was successful
if [ $? -ne 0 ]; then
echo "Error: Failed to fetch commit $COMMIT_HASH"
echo "This could be because:"
echo " - The commit hash is invalid"
echo " - The commit is no longer available"
echo " - Network issues"
exit 1
fi
# Checkout the specific commit
echo "Checking out commit $COMMIT_HASH..."
git checkout "$COMMIT_HASH"
else
# If no commit hash provided, fetch the latest commit from the default branch
echo "Fetching latest commit..."
git fetch --depth 1 origin
# Get the default branch name
DEFAULT_BRANCH=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
if [ $? -ne 0 ]; then
DEFAULT_BRANCH="main" # Fallback to 'main' if cannot determine
fi
# Checkout the default branch
echo "Checking out latest commit from $DEFAULT_BRANCH branch..."
git checkout "$DEFAULT_BRANCH"
fi
# Verify that the subdirectory exists
if [ ! -d "$SUBDIR_PATH" ]; then
echo "Warning: The specified subdirectory '$SUBDIR_PATH' was not found in the repository"
echo "This could mean:"
echo " - The directory path is incorrect"
echo " - The directory didn't exist at this commit"
echo " - The directory is named differently"
exit 1
fi
# Print success message
echo "Successfully cloned $SUBDIR_PATH from $REPO_URL"
if [ -n "$COMMIT_HASH" ]; then
echo "At commit: $COMMIT_HASH"
fi
echo "Location: $PWD"
# #!/bin/bash
#
# # Check if correct number of arguments is provided
# if [ "$#" -ne 2 ]; then
# echo "Usage: $0 <repository-url> <subdirectory-path>"
# echo "Example: $0 git@github.com:user/repo.git src/components"
# exit 1
# fi
#
# REPO_URL="$1"
# SUBDIR_PATH="$2"
#
# # Extract the repository name from the URL
# REPO_NAME=$(basename "$REPO_URL" .git)
#
# # Create a directory for the repo and enter it
# echo "Creating directory $REPO_NAME..."
# mkdir -p "$REPO_NAME"
# cd "$REPO_NAME" || exit 1
#
# # Initialize git repository
# echo "Initializing git repository..."
# git init
#
# # Add the remote repository
# echo "Adding remote repository..."
# git remote add origin "$REPO_URL"
#
# # Enable sparse checkout
# echo "Enabling sparse checkout..."
# git config core.sparseCheckout true
#
# # Create sparse-checkout file with the specified path
# echo "Configuring sparse checkout for $SUBDIR_PATH..."
# echo "$SUBDIR_PATH/*" > .git/info/sparse-checkout
#
# # Fetch the latest commit from the default branch
# echo "Fetching repository..."
# git fetch --depth 1 origin
#
# # Get the default branch name
# # DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
# DEFAULT_BRANCH=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
# if [ $? -ne 0 ]; then
# DEFAULT_BRANCH="main" # Fallback to 'main' if cannot determine
# fi
#
# # Checkout the default branch
# echo "Checking out $DEFAULT_BRANCH branch..."
# git checkout "$DEFAULT_BRANCH"
#
# # Print success message
# echo "Successfully cloned $SUBDIR_PATH from $REPO_URL"
# echo "Location: $PWD"

View File

@ -0,0 +1,3 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =1
let g:netrw_dirhist_1='/home/crthaze/Pictures/Wallpapers'