How to generate network interface config file?

On CentOS, is there a way to generate again the network interface config files? The ones stored in /etc/sysconfig/network-scripts/ifcfg-ifaceName It’s quite easy to do manually: Get interface name with ip link show Create config file /etc/sysconfig/network-scripts/ifcfg-ifaceName with following content: DEVICE=”enp1s0″ BOOTPROTO=”dhcp” ONBOOT=”yes” But I assume it’s possible to trigger some script to create them. It…

Details

How to connect from one server to another server`s postgresql database by configuring firewall

I am trying to connect from Ubuntu 16.04 server to Gentoo server`s Postgresql database. But i cannot connect to it. Ubuntu server has internet with static Ip: 93.154.53.88. In my Gentoo server has Ip: 192.168.0.104. I configured my pg_hba.conf also to Ip address of Ubuntu server. But anyway it cannot connect to it. My pg_hba.conf…

Details

How to auto close a customized vue toast component

I have a customized toast component: <template> <div v-show=”isToastVisible” class=”toast-wrapper”> <div class=”toast-conatiner”> </div> </div> </template> <script> import { mapState, mapActions } from ‘vuex’; export default { props: { message: { type: String, default: ”, }, isToastVisible: { type: Boolean, default: false, }, }, }; </script> I pass state to the property: <toast :is-toast-visible=”isToastVisible” message=”please say…

Details