Gist for Ubuntu and Debian users
nginx 1.16.1 + push stream module latest
apt-get update -y \| <?php | |
| define('EPOCH', 1414213562373); | |
| define('NUMWORKERBITS', 10); | |
| define('NUMSEQUENCEBITS', 12); | |
| define('MAXWORKERID', (-1 ^ (-1 << NUMWORKERBITS))); | |
| define('MAXSEQUENCE', (-1 ^ (-1 << NUMSEQUENCEBITS))); | |
| class Snowflake |
| float f = (float) (Runtime.getRuntime().maxMemory() / 1024L / 1024L); | |
| if(f > MIN_HEAP){ | |
| LauncherFrame.main(args); | |
| }else{ | |
| try{ | |
| ArrayList<String> localArrayList = new ArrayList<String>(); | |
| String str = TGMMain.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath(); |
| package ru.aengine.util; | |
| public class OperationSystem { | |
| public static OS getPlatform() { | |
| String str = System.getProperty("os.name").toLowerCase(); | |
| if(str.contains("win")) return OS.WINDOWS; | |
| if(str.contains("mac")) return OS.MACOS; | |
| if(str.contains("solaris")) return OS.SOLARIS; | |
| if(str.contains("sunos")) return OS.SOLARIS; |
| package main.ru.aengine.noise; | |
| import java.util.Random; | |
| public class NoiseGenerator { | |
| private double seed; | |
| private long default_size; | |
| private int[] p; | |
| private int[] permutation; |
| package ru.aengine.tgm.util; | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStreamWriter; | |
| import java.io.UnsupportedEncodingException; | |
| /** |
| package ru.aengine.ndt; | |
| import java.io.*; | |
| import java.util.*; | |
| import java.util.zip.*; | |
| /** | |
| * Named Data Tags (NDT) - file format for save array map. | |
| * StreamReader class for read data from *.ndt file; | |
| */ |
| /** | |
| * Copyright (c) 2017, AEngine Official | |
| * MIT License | |
| * | |
| * Need: jQuery, Backbone & Lodash | |
| */ | |
| 'use strict'; | |
| // App | |
| let App = {}; |
| /** | |
| * Standalone extraction of Events, no external dependency required. | |
| * Degrades nicely when underscore are already available in the current | |
| * global context. | |
| * | |
| * Note that docs suggest to use underscore's `_.extend()` method to add Events | |
| * support to some given object. A `mixin()` method has been added to the Events | |
| * prototype to avoid using underscore for that sole purpose: | |
| * | |
| * var myEventEmitter = Events.mixin({}); |
Add additional repositories by edit file /etc/apt/sources.list for each link add contrib non-free after main
Update:
apt-get update
Optional:
apt-get install mc htop build-essential
Install one command line:
apt-get install nginx-extras php7.0-cli php7.0-fpm php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-mcrypt php7.0-sybase php7.0-mbstring php7.0-redis redis-server mysql-server mysql-client