Skip to content

Instantly share code, notes, and snippets.

View zahidhassanshaikot's full-sized avatar
🎯
Focusing

Zahid Hassan Shaikot zahidhassanshaikot

🎯
Focusing
View GitHub Profile
#!/bin/bash
CONCATED_TEXT=""
# Define the lowercase function
to_lowercase() {
local str="$1"
echo "${str,,}"
}
@zahidhassanshaikot
zahidhassanshaikot / shaikot.zsh-theme
Last active September 4, 2023 10:10
Adding and customizing your own themes pretty much works the same as with plugins. Themes are located in a themes folder and must end with .zsh-theme. The basename of the file is the name of the theme. $ZSH_CUSTOM └── themes └── my_awesome_theme.zsh-theme Then edit your .zshrc to use that theme. ZSH_THEME="my_awesome_theme" Remember that customi…
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"
@zahidhassanshaikot
zahidhassanshaikot / db-backup.sh
Last active June 6, 2024 10:37
bash file for db backup and if the backup file is older than 1 day it will automatically delete those files.
#!/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[@]}"
name: push-to-do-server
on:
push:
branches: [ main ]
jobs:
automatic-deploy:
runs-on: ubuntu-latest
steps:
---
image: alpine:latest
stages:
- deploy
stage-deploy:
stage: deploy
environment:
name: staging
@zahidhassanshaikot
zahidhassanshaikot / .bash_aliases
Last active November 24, 2025 06:42
.bash_aliases
#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'