Skip to content

nicotontige/bash-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-function

Function to help dev to use docker as simple as fuck

  • docker-enter : Enter into a container (bash) by his image name

parameter: search image name (ex : nginx)

env-function

  • hostadd : add a fqdn into hosts file, by default use 127.0.0.1 as IP destination

1st parameter: fqdn name (ex : google.fr)

2nd parameter: destination IP (ex: 192.168.1.1) (optional)

  • hostdel : remove a fqdn into hosts file

parameter: fqdn name (ex : google.fr)

  • mysqldumpnow : mysqldump into file and tar.gz it

1st parameter: database name

2nd parameter: table name (optional)

About

Just Dev Ops tricks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors