This is an old revision of the document!
Difficulty
Very easy
esgtools
Goals
esgtools is a cli multi tool used internally by eSG but will work on any standard environment. Please note that some functions will work best on the eSG Standard Image 2014 & 2017 based in centos 6.8 and 7 respectively.
Options
- profiles - Install esg profiles for selected apps
- build - Build current Go project using the eSG Build script
- web - Web Tools
- update - Update esgtools to the latest version
- hash - Create fast SHA256 hash of file
- install - Install supported applications
- disk - TBA
- debug - Show debug information
- minify - Minify CSS, HTML, JS, JSON, SVG, XML
- registry - Windows Registry Reading & Patching TBA
profiles options
- vim - Install the eSG vim profile
- tmux - Install the eSG tmux profile
web Options
- size - Will calculate website size
- headers - Will dump all http headers from a url
- tags - Will detect tags like Google Analytics and AdSense
- http - Detect http protocol
build Options
- arch - Reports all available architectures
- env - Will build the standardized esg environment TBA
- filename.go - if you pass it a go project it will build it and optimize it TBA
install Options
- tools - Will install esgtools to /usr/local/bin (v0.6.3+)
- go - Will install Go and setup paths TBA
Installation
The tool doesn't require any installation just use the following to download it.
Linux | x64 | curl -L https://tools.eservices-greece.net/download.php?f=esgt_linux_amd64 -o esgt;chmod +x esgt |
Linux | x86 | curl -L https://tools.eservices-greece.net/download.php?f=esgt_linux_386 -o esgt; chmod +x esgt |
esgtools has its own page https://tools.eservices-greece.net/
Usage Examples
Install profiles
./esgtools profiles vim
./esgtools profiles tmux
File hash
./esgtools hash sha256 filename
Webpage Size
./esgtools web size https://eservices-greece.com
Webpage Headers
./esgtools web headers https://eservices-greece.com
Webpage Tags (analytics etc)
./esgtools web tags https://eservices-greece.com
Webpage protocol
./esgtools web http https://eservices-greece.com
Minify File
./esgtools minify inputfilename outputfilename
Update esgtools
./esgtools update