Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2 # Ensure the code is checked out
uses: actions/checkout@v4 # Ensure the code is checked out

# Docker login step
- name: Log in to Docker Hub
Expand Down
137 changes: 0 additions & 137 deletions AGENTS.md

This file was deleted.

1 change: 1 addition & 0 deletions core/shells/bash/.bash_profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/.bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
## Time lapse bash loading
initial_result=$(date +%s%3N)
# Jobs
Expand Down
131 changes: 33 additions & 98 deletions core/shells/bash/aliases/.aliases
Original file line number Diff line number Diff line change
@@ -1,100 +1,35 @@
#Exports
export mod_colors="$project_path"/core/shells/bash/functions/colors.bash
export ssl_functions="$project_path"/modules/utils/ssl/functions.bash
export certs_functions="$project_path"/modules/utils/certs/functions.bash
source "$project_path"/core/shells/bash/functions/crlf_to_lf.bash
# Facilities
alias cls="clear"
alias c="code ."
alias free="free -mh"
alias grep="grep --color=auto"
alias ls="ls -lah --color"
alias nano="nano -l"
alias h="history"
alias e="exit"
alias clear_ram="sudo bash -c 'echo 1 > /proc/sys/vm/drop_caches'"
alias cat_input="read input; cat * | grep -r --exclude-dir=".*" $input"
# tmux
alias tmuxon="tmux new -s docker -d&tmux new -s cloud -d&tmux new -s ssh -d&tmux new -s codex -d&"
alias tmuxls="tmux ls"
alias tmuxattach="tmux a -t"
# terraform
alias tfi="rm -rf .terraform; rm -rf .terraform.lock.hcl; terraform init --upgrade"
alias tfp="terraform plan "
alias tff="terraform fmt"
alias tfa="terraform apply "
# bw - bitwarden
alias bw="$HOME/'.config/Bitwarden CLI/bw'"
alias bw_eu="bw config server https://vault.bitwarden.eu"
alias bw_create="'$project_path'/modules/bw/bw-history-create.bash"
alias bw_push="'$project_path'/modules/bw/bw-history-push.bash"
alias bw_clone="'$project_path'/modules/bw/bw-history-clone.bash"
#git
alias gp="git pull"
alias gpush="git push"
alias gs="git status"
alias gl="git log"
alias gc="git log --branches --not --remotes"
alias gsoft="git reset --soft HEAD~1"
alias ghard="git reset --hard HEAD~1"
alias gpr="gh pr list"
# modules
## modules - help - commands
alias help_docker="bash $project_path/modules/help/docker/docker.bash"
alias help_mysql="bash $project_path/modules/help/mysql/mysql.bash"
alias help_kubectl="bash $project_path/modules/help/kubectl/kubectl.bash"
alias help_git="bash $project_path/modules/help/git/git.bash"
alias help_gcloud="bash $project_path/modules/help/gcloud/gcloud.bash"
alias help_terraform="bash $project_path/modules/help/terraform/terraform.bash"
alias help_dig="bash $project_path/modules/help/dig/dig.bash"
alias help_az="bash $project_path/modules/help/az/az.bash"
alias help_arch="bash $project_path/modules/help/arch/arch.bash"
## modules - docker
docker_groups=$(cat /etc/group | grep docker | awk -F: '{ printf $1}')
docker_str="docker"
if [ "$docker_groups" = "$docker_str" ]
then
alias dockrm="bash $project_path/modules/docker/dock/dockrm.bash"
alias alpine="bash $project_path/modules/docker/alpine/alpine.bash"
alias alpine_exec="bash $project_path/modules/docker/alpine/alpine_exec.bash"
alias mysql5="bash $project_path/modules/docker/mysql5/mysql5.bash"
alias mysql5_exec="bash $project_path/modules/docker/mysql5/mysql5_exec.bash"
alias mysql8="bash $project_path/modules/docker/mysql8/mysql8.bash"
alias mysql8_exec="bash $project_path/modules/docker/mysql8/mysql8_exec.bash"
alias tomcat9="bash $project_path/modules/docker/tomcat9/tomcat9.bash"
alias tomcat9_exec="bash $project_path/modules/docker/tomcat9/tomcat9_exec.bash"
alias apache="bash $project_path/modules/docker/apache/apache.bash"
alias mongodb="bash $project_path/modules/docker/mongodb/mongodb.bash"
alias mongodb_exec="bash $project_path/modules/docker/mongodb/mongodb_exec.bash"
alias maven="bash $project_path/modules/docker/maven/maven.bash"
alias maven_exec="bash $project_path/modules/docker/maven/maven_exec.bash"
alias nexus="bash $project_path/modules/docker/nexus/nexus.bash"
alias nexus_exec="bash $project_path/modules/docker/nexus/nexus_exec.bash"
alias jira_software="bash $project_path/modules/docker/jira-software/jira-software.bash"
alias jira_software_cero_exec="bash $project_path/modules/docker/jira-software/jira-software_cero_exec.bash"
alias jira_software_uno_exec="bash $project_path/modules/docker/jira-software/jira-software_uno_exec.bash"
alias nodejs="bash $project_path/modules/docker/nodejs/nodejs.bash"
alias nodejs_exec="bash $project_path/modules/docker/nodejs/nodejs_exec.bash"
alias nginx="bash $project_path/modules/docker/nginx/nginx.bash"
alias nginx_exec="bash $project_path/modules/docker/nginx/nginx_exec.bash"
alias k6="bash $project_path/modules/docker/k6/k6.bash"
#!/bin/bash
# ── Machine-local docker aliases only ──
# Loaded from .base.sh (core utilities) and .modules.sh (help aliases).
# This file is for machine-specific overrides that don't belong in .base.sh.
# shellcheck disable=SC2139

# ── Docker module aliases ──
if id -nG 2>/dev/null | grep -qw docker; then
alias dockrm="bash $project_path/modules/docker/dock/dockrm.bash"
alias alpine="bash $project_path/modules/docker/alpine/alpine.bash"
alias alpine_exec="bash $project_path/modules/docker/alpine/alpine_exec.bash"
alias mysql5="bash $project_path/modules/docker/mysql5/mysql5.bash"
alias mysql5_exec="bash $project_path/modules/docker/mysql5/mysql5_exec.bash"
alias mysql8="bash $project_path/modules/docker/mysql8/mysql8.bash"
alias mysql8_exec="bash $project_path/modules/docker/mysql8/mysql8_exec.bash"
alias tomcat9="bash $project_path/modules/docker/tomcat9/tomcat9.bash"
alias tomcat9_exec="bash $project_path/modules/docker/tomcat9/tomcat9_exec.bash"
alias apache="bash $project_path/modules/docker/apache/apache.bash"
alias mongodb="bash $project_path/modules/docker/mongodb/mongodb.bash"
alias mongodb_exec="bash $project_path/modules/docker/mongodb/mongodb_exec.bash"
alias maven="bash $project_path/modules/docker/maven/maven.bash"
alias maven_exec="bash $project_path/modules/docker/maven/maven_exec.bash"
alias nexus="bash $project_path/modules/docker/nexus/nexus.bash"
alias nexus_exec="bash $project_path/modules/docker/nexus/nexus_exec.bash"
alias jira_software="bash $project_path/modules/docker/jira-software/jira-software.bash"
alias jira_software_cero_exec="bash $project_path/modules/docker/jira-software/jira-software_cero_exec.bash"
alias jira_software_uno_exec="bash $project_path/modules/docker/jira-software/jira-software_uno_exec.bash"
alias nodejs="bash $project_path/modules/docker/nodejs/nodejs.bash"
alias nodejs_exec="bash $project_path/modules/docker/nodejs/nodejs_exec.bash"
alias nginx="bash $project_path/modules/docker/nginx/nginx.bash"
alias nginx_exec="bash $project_path/modules/docker/nginx/nginx_exec.bash"
alias k6="bash $project_path/modules/docker/k6/k6.bash"
else
echo "To use docker you must be in docker group"
echo "myshell: docker aliases disabled (user not in docker group)" >&2
fi
# kubectl
alias k="kubectl"
alias k3s="kubectl --kubeconfig ~/.kube/k3s"
## modules - john
check_john=$(john &> /dev/null; echo $?)
if [ "$check_john" = "0" ]
then
alias john_dictionary="bash $project_path/modules/john/dictionary/dictionary.bash"
alias john_unshadow="bash $project_path/modules/john/unshadow/unshadow.bash"
alias john_zip="bash $project_path/modules/john/zip/zip.bash"
fi
# Utils
alias check_domains="bash ~/Documents/myshell/modules/utils/ssl/ssl_check.bash"
alias cert_base64_for_sealed_secret="bash ~/Documents/myshell/modules/utils/certs/cert_base64_for_sealed_secret.bash"
alias format_disk_ext4="bash ~/Documents/myshell/modules/utils/linux_scripts/format_disk_ext4.bash"
## modules - yt-dlp
alias download="bash $project_path/modules/yt-dlp/yt-dlp.bash"
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.appearance
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# Modify ls colors
export LS_COLORS='rs=0:di=01;30;42:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;30;103:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;30;105:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:'

Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.completion
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# Completion OCI cloud commands
[[ -e "/home/$USER/lib/oracle-cli/lib/python3.11/site-packages/oci_cli/bin/oci_autocomplete.bash" ]] && source "/home/$USER/lib/oracle-cli/lib/python3.11/site-packages/oci_cli/bin/oci_autocomplete.bash"

Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.git-configs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# GIT
export HOMEBREW_GIT_PATH=$(whereis git | awk {'print $2'})
parse_git_branch() {
Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.history
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
## History settings
#export HISTFILE=$project_path/core/shells/bash/.bash_history
export HISTFILE="$HOME"/.bash_history
Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.path
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.pwsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# pwsh
powershell_yes=$(cat /etc/shells | grep -Eo 'pws[a-z]+' | head -1)
powershell="pwsh"
Expand Down
1 change: 1 addition & 0 deletions core/shells/bash/profiles/.software
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# Allow to use less on compressed files and others, without decompress
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

Expand Down
Loading
Loading