Skip to content

Instantly share code, notes, and snippets.

View AliKhadivi's full-sized avatar
👨‍💻
Learning....

Ali Khadivi AliKhadivi

👨‍💻
Learning....
View GitHub Profile
#!/bin/bash
# ----------------------------------
# Colors
# ----------------------------------
NC='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
#!/bin/bash
echo "___________________________________________"
echo "| Welcome to Jalgo Get free ssl Script (-: |"
echo "| POWERED BY JALGO.IR(Ali Khadivi) |"
echo "| Version: 1.0.0 |"
echo "|__________________________________________|"
echo ""
echo ""
echo " Lets GO ->"
echo ""
PROMPT=$'
%{$FG[129]%}(%{$fg_bold[blue]%}%n %{$FG[129]%}@ %{$fg_bold[blue]%}%m%{$FG[129]%}) %{$fg_bold[green]%}%D{[%H:%M:%S]} %{$reset_color%}%{$fg_bold[cyan]%}[%~]%{$reset_color%} $(git_prompt_info) $(kube_ps1) $(git_prompt_status)\
%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$FG[018]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}(%{%G✚%} )"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%}(%{%G✹%} )"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}(%{%G✖%} )"
@AliKhadivi
AliKhadivi / .bashrc
Created September 19, 2021 04:30
Enable bash autocomplate! before run ( sudo apt-get install --reinstall bash-completion )
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

Wordpress & Mysql & PhpMyAdmin with Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called docker-compose.yaml and run the command

For run

$ docker-compose up -d

For stop and remove containers & remove network

$ docker-compose down

Install and config cgroup with cgroupfs in Ubuntu

Install

Install required packages

apt update && apt install cgroup-tools cgroup-lite libcgroup1  cgroupfs-mount

Configure

copy cgred.conf from examples