This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason I wanted to share this post is configuring static IP on CentOS seems to trouble many centos users. Probably, when you configure static IP, network may not work as you expected, sometimes no internet access, sometimes no IP address on eth0 etc.. | |
First, "watch-out whether it is a CentOS Desktop version or Server version".? because they are runs at different run-levels, where; | |
- Desktop ver runs on run-level 5 | |
- Server ver runs on run-level 3 | |
Second, watch-out the configuration on | |
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Controllers\Conversations\DummyConvo; | |
use Mpociot\BotMan\BotMan; | |
class BotManController extends Controller { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
class TimeUtils{ | |
public const YEAR = self::DAY * 365; | |
public const MONTH = self::DAY * 30; | |
public const WEEK = self::DAY * 7; | |
public const DAY = self::HOUR * 24; | |
public const HOUR = self::MIN * 60; |