Patrick Denis > Articles by: patrick
Author Archive: patrick
patrick
May 20, 2021
toggle python 3 by default instead of python 2.7 debian is still delivered with 2.7 as the default version of python. /usr/bin/python is in fact a symlink to the current default versions binary. The update-alternatives scripts allows to change this….
Read more
patrick
April 16, 2021
No need to redo it , its all in there and pretty well explained. MENOG4-ISIS-Tutorial
patrick
March 18, 2021
Coming soon , not an easy topic !
patrick
March 17, 2021
Install Nmap then you can scan ports : Exemple: sudo nmap -sU -p 1162 192.168.142.150 user@XXX# sudo nmap -sU -p 1162 192.168.142.150 Starting Nmap 7.80 ( https://nmap.org ) at 2021-03-17 15:56 UTC Nmap scan report for 192.168.142.150 Host is up…
Read more
patrick
February 25, 2021
I just can’t remember this lol https://crontab.guru/ https://crontab-generator.org/ addind cron jobs : 1- crontab -e 2- use the link above to create the schedule “following the path and the script to execute “don’t forget to make the script executable” 3-…
Read more
patrick
January 28, 2021
Git object types: – Blob – Tree – Commit – Annoted Tag Git low-level commands: git hash-object git cat-file git mktree echo “Hello, Git” | git hash-object –stdin -w b7aec520dec0a7516c18eb4c68b64ae1eb9b5a5e
patrick
January 27, 2021
docker alpine is a linux with all minimum networking files/tools to be able to test quick stuff. docker run -it alpine = how to start it. hostname -i ip address ip address | grep inet ip route ifconfig nslookup traceroute…
Read more
patrick
January 27, 2021
echo $PATH = will show all executable commands path available. export PATH=$PATH:/home/dir/dir = will add this path to the executable path available which “name” = will show the path of the executable “name” man = get in deep help on…
Read more
patrick
November 17, 2020
Found a nice and easy article of how to Expand a Hard Disk with Ubuntu LVM : http://www.geoffstratton.com/expand-hard-disk-ubuntu-lvm So you’re running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to…
Read more
patrick
November 11, 2020
Example ! #### Script1 #### from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment env = Environment(undefined=StrictUndefined) env.loader = FileSystemLoader([“.”, “./templates/”]) var_interfaces = {} var_template_file = “intf_config1.j2” var_template = env.get_template(var_template_file) var_output = var_template.render(**var_interfaces) print(var_output) ####…
Read more