Skip to content

Commit 7c450b6

Browse files
committed
Initial commit
0 parents  commit 7c450b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3277
-0
lines changed

.aliases

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
alias src="source $HOME/.zshrc"
2+
alias glg="git log --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
3+
alias pa='php artisan'
4+
alias pat='php artisan tinker'
5+
alias xcp="xclip -selection clipboard"
6+
alias gsf="git submodule foreach"
7+
alias gsc="gsf 'composer install || true'"
8+
alias gsua="gsf 'git checkout master && git pull'"
9+
alias myeca="cd $HOME/git/ECA-repo/MyECA && pnpm run dev"
10+
alias parol="php artisan route:list"
11+
alias vim=nvim
12+
13+
# remote update production server
14+
alias upeshop="ssh eshop sudo -u eshop git -C /home/eshop/domains/eshop.eca.ir/public_html pull"
15+
alias uphelp="ssh eca sudo -u help git -C /home/help/domains/help.eca.ir/public_html pull"
16+
alias upeshopstage="ssh stage sudo -u eshop git -C /home/eshop/domains/eshop.hlot.ir/public_html pull"
17+
alias upmyeca="ssh stage sudo -u myeca bash -c 'cd /home/myeca/domains/myeca.hlot.ir/public_html; gnpm'"
18+
alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'
19+
alias phpstorm='$HOME/.local/share/JetBrains/Toolbox/apps/phpstorm/bin/phpstorm.sh'
20+
alias lsi='ls | xargs -I {} sh -c "stat {}; echo ----------------------------------"'

.functions

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
ip-resolve() {
3+
curl -s http://ip-api.com/json/$1 | jq
4+
}
5+
6+
myip() {
7+
curl -s https://api.myip.com/ | jq
8+
}
9+
10+
open-port() {
11+
# first argument is IP and second is port
12+
nc -v $1 $2
13+
}
14+
15+
open-ports() {
16+
sudo nmap -sS $1
17+
}
18+
19+
open-ports-deep() {
20+
nmap -p- -vv -T5 -A $1
21+
}
22+
23+
echo-all() {
24+
echo $@
25+
}
26+
27+
lst(){
28+
find $1 -type f -print0 | xargs -0 ls -lth --time-style="+%F %T" | less
29+
}
30+
31+
whois(){
32+
# whois api from api-ninjas.com
33+
curl -s --header "X-Api-Key: syDLzMVkdEop2RhBQuhXgA==14if9r4RPC1oDlpj" https://api.api-ninjas.com/v1/whois\?domain\=$1 | jq
34+
}
35+
36+
#composer functions
37+
38+
composerv(){
39+
# argument is php version name
40+
if [ -z "$1" ]
41+
then
42+
echo "PHP version is not given"
43+
kill -INT $$
44+
fi
45+
`which $1` `which composer` install
46+
}
47+
48+
composer7.4() {
49+
`which php7.4` `which composer` $@
50+
}
51+
52+
composer8.0() {
53+
`which php8.0` `which composer` $@
54+
}
55+
56+
composer8.1() {
57+
`which php8.1` `which composer` $@
58+
}
59+
60+
composer8.2() {
61+
`which php8.2` `which composer` $@
62+
}
63+
64+
composer8.3() {
65+
`which php8.3` `which composer` $@
66+
}

.variables

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export gitdir="$HOME/git"
2+
export shop="$gitdir/ECA-repo/shop"
3+
export mods="$shop/modules"
4+
export GTK_IM_MODULE=ibus
5+
export XMODIFIERS=@im=ibus
6+
export QT_IM_MODULE=ibus
7+
export DOCKER_HOST=unix:///run/user/1001/docker.sock
8+
export PNPM_HOME="$HOME/.local/share/pnpm"
9+
export PATH="$PATH:/usr/bin:/opt/nvim-linux64/bin"

README.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This package made for easy install and configure Ubuntu
2+
3+
### installation guide
4+
5+
1. run `install.sh` file
6+
2. wait until your linux update and dependencies install
7+
3. select your favorite webserver from `apache` and `nginx`
8+
4. wait for installing packages
9+
10+
### list of packages to install
11+
12+
1. dbus-x11
13+
2. gnome-shell-extensions
14+
3. gnome-tweaks
15+
4. dconf-editor
16+
5. curl
17+
6. vim
18+
7. git
19+
8. nemo
20+
9. zsh
21+
10. neovim
22+
11. mc
23+
12. gdebi
24+
13. webservice (apache, nginx)
25+
14. php8.3 (and it's popular modules)
26+
`common, mysql, xml, xmlrpc, curl, gd, cli, dev, imap, mbstring, opcache, soap, zip, intl, redis, pgsql, fpm, bcmath, swoole, xdebug, imagick, ioncube`
27+
15. composer
28+
16. laravel
29+
17. vscode
30+
18. docker
31+
19. mariadb
32+
20. postgresql
33+
21. node
34+
22. pnpm
35+
23. redis-stack
36+
24. rabbit
37+
25. google-chrome
38+
39+
### list of repositories
40+
41+
1. ondrej/php
42+
2. ondrej/apache2
43+
3. ondrej/nginx
44+
45+
### list of zsh pluging
46+
47+
1. colorize
48+
2. cp
49+
3. safe-paste
50+
4. git
51+
5. ubuntu
52+
6. systemd
53+
7. laravel
54+
8. symfony
55+
9. aliases
56+
10. docker
57+
11. docker-compose
58+
12. rsync
59+
13. fzf-zsh-plugin
60+
`git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin`
61+
14. zsh-autosuggestions
62+
`git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions`
63+
15. zsh-syntax-highlighting
64+
`git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting`

0 commit comments

Comments
 (0)