Skip to content

Instantly share code, notes, and snippets.

<?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;
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Conversations\DummyConvo;
use Mpociot\BotMan\BotMan;
class BotManController extends Controller {
@Telegramsrv
Telegramsrv / CentOS Static IP
Created December 7, 2017 07:37 — forked from keshara/CentOS Static IP
Static IP Configuration on CentOS 6.5
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