- Install Virtualmin:
- Change root password:
sudo passwd root
- Set Firewall Rule:
TCP: 10000
| static func embedViewIntoMainApplicationWindow(_ view: UIView) { | |
| guard let keyWindow = UIApplication.shared.keyWindow else { | |
| fatalError() | |
| } | |
| guard let controller = keyWindow.rootViewController else { | |
| fatalError() | |
| } | |
| controller.view.addSubview(view) |
| extension String { | |
| var isValidEmail: Bool { | |
| let regex = "(?:[\\p{L}0-9!#$%\\&'*+/=?\\^_`{|}~-]+(?:\\.[\\p{L}0-9!#$%\\&'*+/=?\\^_`{|}" + | |
| "~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\" + | |
| "x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[\\p{L}0-9](?:[a-" + | |
| "z0-9-]*[\\p{L}0-9])?\\.)+[\\p{L}0-9](?:[\\p{L}0-9-]*[\\p{L}0-9])?|\\[(?:(?:25[0-5" + | |
| "]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-" + | |
| "9][0-9]?|[\\p{L}0-9-]*[\\p{L}0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21" + | |
| "-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])" |
| <?php | |
| namespace App\Providers\Passwords; | |
| use Illuminate\Auth\Passwords\DatabaseTokenRepository; | |
| class MyDatabaseTokenRepository extends DatabaseTokenRepository | |
| { | |
| /** | |
| * [Override] |
| // | |
| // MyTabBarController.swift | |
| // | |
| // Created by Johnny on 25/10/2018. | |
| // Copyright © 2018 Johnny@Co-fire.com. All rights reserved. | |
| // | |
| import UIKit | |
| import RxSwift | |
| import RxCocoa |
| <?php | |
| use App\Event; | |
| use Illuminate\Database\Seeder; | |
| class EventTableSeeder extends Seeder | |
| { | |
| /** | |
| * Run the database seeds. | |
| * |
sudo passwd rootTCP: 10000| // | |
| // Created by Johnny on 3/9/2018. | |
| // Copyright (c) 2018 Johnny@Co-fire.com. All rights reserved. | |
| // | |
| import UIKit | |
| import RxCocoa | |
| import RxSwift | |
| private var prepareForReuseBag: Int8 = 0 |
| // | |
| // PDFViewVCVC.swift | |
| // CindyChao | |
| // | |
| // Created by Johnny on 19/8/2018. | |
| // Copyright © 2018 Johnny@Co-fire.com. All rights reserved. | |
| // | |
| import UIKit | |
| import SwiftySound |
You can use WANDisco's CentOS repository to install Git 2.x: for CentOS 7
Install WANDisco repo package:
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
Install the latest version of Git 2.x: