How to create a docker-compose.service

Here are the steps I made to set a service into my Fedora server to start/stop my Docker-compose (Wikijs) Why I decided to use a docker-compose into a Linux VM machine? —> for make it more stable, faster,portable, isolated, etc. First I stared using Docker for Windows and it was a little bit unstable and not quite easy to handled, so when I switched to Docker compose into a Fedora VM and in that point it was a huge different(I do not recommend to use Docker in Windows); I use a Vmware hypervisor ( in the office we use it ). ...

2019-09-08 Â· map[name:Jose Castrillo]

Create a .zip using 7z by cmd in Windows

After to install the 7z in our windows workstation/server then we need to create our evironment variables to call the function from the cmd [1]. Then the command below will guide you to zip a simple file: 7z a -r [myzip] [example.txt] [myzip] - the zip name file [example.txt] file used for the example To zip a folder 7z a [myzip] [folder] Docu based thx to the information seen from: [1] GlobalEnviroment

2019-06-11 Â· map[name:Jose Castrillo]

Closing opened ports on Linux (Fedora 29)

Using the Nmap to list our opened port in our machine, how described the official website: Nmap “..is an utility for network discovery and security auditing..” Regarding CUPS from the official website: “is an open source printing system developed by Apple Inc. for macOS® and other UNIX®-like operating systems. CUPS uses the Internet Printing Protocol (IPP) to support printing to local and network printers.” By default we have the cups service running in the system’s startup we could check out issue the following commands: ...

2019-05-05 Â· map[name:Jose Castrillo]

Output IPCONFIG report to HTML by PowerShell

$file = "C:\Users\jcr\a.html" $ipconfig=ipconfig /all |%{"$_<br/>"} $body=@" <html> <head> <title>Network Report</title> </head> <body> <h1>IPConfig /All</h1> <pre>$ipconfig</pre> </body> </html> "@ $body | Out-File $file . $file

2019-04-25 Â· map[name:Jose Castrillo]

Setup Grafana in Raspbian (Raspberrypi)

The below post is a simple explanation I did time ago, if you want further info and better explanation about how to setup a monitoring system into your Raspberripy please go to here. Raspbian version:9.8 $ uname -r 4.14.98-v7+ $ uname -m armv7l Version installed on my RasPi: Grafana v6.0.2 (3f4c2e7) Download Grafana package for your correct Raspi ARM $sudo dpkg -i grafana_6.1.3_armhf.deb $systemctl start grafana-server $systemctl status grafana-server then you will see from the status propmt the address=0.0.0.0:3000 msg="HTTP Server Listen" logger=http.server address=0.0.0.0:3000 To check the site is working go through localhost:3000 ...

2019-04-09 Â· map[name:Jose Castrillo]

Create a job using crontab

To automate tasks or create some monitoring job we can use the older and efficient tool the “CronJob”. For our example, I’ve created a simple script to detect the cache memory and clean it if raise to a condition then send a notification by mail. Library used: exim4 (mail server) or ssmtp (mail server). Both uses the same “mail” command. Script: # grab the buff/cache memory mem="$(free -m | grep 'Mem:' | awk '{print $6}')" if (( $mem > 350 )) then echo 'wooo is more than 250M' echo 3 | sudo tee /proc/sys/vm/drop_caches echo 'cache dropped' echo "Memory buff/cache cleaned last value:" $mem | mail -s "cache_memory" target_mail@local.com else echo 'be cool man, memory lower' fi script path: /user/Documents/script/memory ...

2019-04-03 Â· map[name:Jose Castrillo]