proto tcp
$ systemctl restart openvpn@server.service
#!/usr/bin/env bash | |
scp $1 user@server:~ |
#!/usr/bin/env bash | |
scp user@server:$1 . |
#!/usr/bin/env bash | |
keytool -printcert -jarfile $1 |
proto tcp
$ systemctl restart openvpn@server.service
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using UnityEngine.UI; | |
/// <summary> | |
/// + MovePanel | |
/// + Out circle image |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
/// <summary> | |
/// https://gist.github.com/alexmelyon/8f79bd08c79202d1570f26faefe47bf3 | |
/// </summary> | |
[ExecuteInEditMode] |
using UnityEngine; | |
using UnityEngine.Events; | |
public class MouseFingerEvent | |
{ | |
public Vector2 position; | |
public int index; | |
} | |
public class MouseFinger : MonoBehaviour |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraEditorMovement : MonoBehaviour | |
{ | |
[Header("Mouse")] | |
public float lookSpeedH = 2f; | |
public float lookSpeedV = 2f; | |
public float zoomSpeed = 2f; |
fun main() { | |
val list = listOf(24, 36, 145, 48, 72L) | |
list.reduce { total, next -> lcm(total, next) }.let { println(it) } | |
} | |
/** | |
* НОК Наименьшее общее кратное | |
*/ | |
fun lcm(a: Long, b: Long): Long { |
/** | |
* Если слова анаграммы, то у них одинаковое количество всех букв | |
* (то есть в обоих словах 2 буквы а, одна буква р, нет буквы к, и тд). | |
* Во втором слове можно запомнить индексы соответствующих букв, | |
* и найти эти же конкретные буквы в первом слове. | |
* Например слова АААААББДКРР АБРАКАДАБРА, тогда массив из чисел, | |
* который показывает на каком месте буква из первого слова | |
* расположена во втором, будет выглядеть так: | |
* 0,3,5,7,10,1,9,6,4,2,8. | |
* Если непонятно зачем это нужно, то сейчас поясню |