Posts

Showing posts from 2020

Fortigate host file manual entry

Fortigate host file manual entry  config system dns-server edit " port11" next end config system dns-database edit " bbb" config dns-entry edit 1 set hostname " site1" set ip 1.1.1.1 next end set domain " bbb.com" next end  edit after FortiOS 7.4.0   To configure FortiGate as a primary DNS server in the CLI: config system dns-database     edit WebServer         set domain example.com         set type master         set view shadow         set ttl 86400         set primary-name corporate         set contact [email protected]         set authoritative disable         config dns-entry             edit 1                 set status enable                 set hostname web.example.com                 set type A                 set ip 192.168.21.12             next         end     next end

Centos 6.10 Cannot find a valid baseurl for repo

Centos 6.10 Cannot find a valid baseurl for repo     echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt  echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt      

Windows 10 change MTU

  Windows 10 change MTU It is possible to change the MTU from the command line. Open the command Prompt window and follow the steps below to change the MTU size: Type “netsh interface ipv4 show subinterface”. Press Enter. You will see a list of network interfaces. Type “netsh interface ipv4 set subinterface ` Local Area Connection ` mtu=1472 store=persistent”. You should replace Local Area Connection with the name that appeared in the “Interface” column from steps 1-3. Press Enter. Type “netsh interface ipv4 show subinterface” to check the result.
How to remove Cluster from Proxmox 6   https://pve.proxmox.com/pve-docs/pve-admin-guide.html#pvecm_separate_node_without_reinstall   On cluster master server do: systemctl stop pve-cluster corosync  pmxcfs -l  rm /etc/corosync/*  rm /etc/pve/corosync.conf  killall pmxcfs  systemctl start pve-cluster   Server should become single node.

How to Edit a File in a docker container with no Text Editor

 Simply editing a file is an ordeal if you don’t have vim , vi or nano available. One of the best things to do may be to copy the file from the container to your host machine: docker cp <container> :/path/to/file .ext . Edit the file. Then send it back to the container. docker cp file.ext <container> :/path/to/file .ext

Midnight Commander missing syntax highlighting

Midnight Commander missing syntax highlighting Try to pres Ctl-s, which toggles syntax highlighting on and off in mcedit

VLC HowTo/Adjust subtitle delay in advance way

VLC HowTo/Adjust subtitle delay in advance way Advance Synchronisation When subtitles are late compared to the audio, and only in this case, you can use the advance synchronisation functionality of VLC : Step 1 : Detect (“hear and see”) that subtitles are out of sync Step 2 : Press Shift H when you hear a sentence that you will be able to easily recognize Step 3 : Press Shift J when you read the same sentence in the subtitle Step 4 : Press Shift K to correct the sync

Remove string from file in Windows 10 powershell like sed

Remove string from file in Windows 10 powershell like sed   If you need to edit file like stream and replace/remove string in Windows using powershell this command will open text.txt file, search for ",,,,," and replace with nothing "" and save as new file test2.txt get-content test.txt | %{$_ -replace ",,,,,",""} | set-content test2.txt