This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CONCATED_TEXT="" | |
| # Define the lowercase function | |
| to_lowercase() { | |
| local str="$1" | |
| echo "${str,,}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
| local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} " | |
| local user_symbol='%(!.#.$)' | |
| local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}" | |
| local vcs_branch='$(git_prompt_info)$(hg_prompt_info)' | |
| local rvm_ruby='$(ruby_prompt_info)' | |
| local venv_prompt='$(virtualenv_prompt_info)' | |
| ZSH_THEME_RVM_PROMPT_OPTIONS="i v g" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #your database info | |
| DBHOST='localhost' | |
| DBUSER='db_user' | |
| DBPW='db_password' | |
| DBNAME=('db_name') | |
| #get recent version of databases from array | |
| for i in "${DBNAME[@]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: push-to-do-server | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| automatic-deploy: | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| image: alpine:latest | |
| stages: | |
| - deploy | |
| stage-deploy: | |
| stage: deploy | |
| environment: | |
| name: staging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #basic | |
| alias sai="sudo apt-get install" | |
| alias sau="sudo apt-get update" | |
| alias saug="sudo apt-get upgrade" | |
| alias c="clear" | |
| alias home='cd ~/' | |
| alias d='cd ~/Desktop' | |
| alias D='cd ~/Development' |