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
find / -type d -name "logs" -exec sh -c 'grep -r --include="*.log" "seconds (JMV running for" "$0"' {} \; | |
find / -type d -name "logs" -exec grep -l --include="*.log" "seconds (JMV running for" {} \; |
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
#!/bin/bash | |
# Цвета | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
services=("nginx" "httpd" "sshd" "docker") | |
for service in "${services[@]}"; do |
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
namespace CarService | |
{ | |
internal class Program | |
{ | |
internal static void Main(string[] args) | |
{ | |
var orderForm = new Order(); | |
PaymentSystem[] _paymentSystems = new[] | |
{ |
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
class Player | |
{ | |
private readonly Mover _mover; | |
private readonly Weapon _weapon; | |
public Player(Mover mover, Weapon weapon) | |
{ | |
_mover = mover ?? throw new ArgumentNullException(nameof(mover)); | |
_weapon = weapon ?? throw new ArgumentNullException(nameof(weapon)); | |
} |
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
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using Random = System.Random; | |
// This source code is used for the video. It obviously requires heavy alterations to be used in a real project. | |
public class ExampleGrid : MonoBehaviour | |
{ | |
[SerializeField] private Vector2Int _size; | |
[SerializeField] private Vector2 _gap; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PhysicsMovement : MonoBehaviour | |
{ | |
public float MinGroundNormalY = .65f; | |
public float GravityModifier = 1f; | |
public Vector2 Velocity; |
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
using UnityEngine; | |
using TMPro; | |
public class BuildDisplayer : MonoBehaviour | |
{ | |
[SerializeField] private TMP_Text _textBuildNumber; | |
private void Awake() | |
{ | |
if (_textBuildNumber.TryGetComponent(out TMP_Text textBuildLabel)) |
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
using UnityEngine; | |
public class FlyCamera : MonoBehaviour | |
{ | |
private float _mainSpeed = 100.0f; | |
private float _shiftAdd = 250.0f; | |
private float _maxShift = 1000.0f; | |
private float _camSens = 0.25f; | |
private float _totalRun = 1.0f; | |
private Vector3 _lastMouse = new (255, 255, 255); |
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
using System.Collections; | |
using UnityEngine; | |
[RequireComponent(typeof(Rigidbody))] | |
public class InstantiateBulletsShooting : MonoBehaviour | |
{ | |
[SerializeField] private float _multiplier; | |
[SerializeField] private Rigidbody _prefabBullet; | |
[SerializeField] private Transform _objectToShoot; |
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
namespace MergeSquads | |
{ | |
public static class Program | |
{ | |
public static void Main() | |
{ | |
Army army = new Army(); | |
Database database = new Database(); | |
army.Work(database); |
NewerOlder