So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])
This file contains 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
// disable forced dark mode to prevent weird color changes on | |
// certain android devices (Xiaomi MIUI and others enforcing dark mode with view analyzing) | |
// create a file like "plugins/withDisableForcedDarkModeAndroid.js". Insert this content and edit your app.config.js/app.json | |
/* | |
"expo": { | |
... | |
... | |
... | |
"plugins": [ |
This file contains 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
1- Step : open the sysctl.conf and add this line fs.file-max = 65536 | |
vi /etc/sysctl.conf add end of line | |
fs.file-max=500000 | |
save and exit. | |
2. Step : vi /etc/security/limits.conf and add below the mentioned | |
* soft nproc 500000 |
This file contains 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
{ | |
"Unity MonoBehaviour": { | |
"prefix": "MonoBehaviour", | |
"description": "Unity MonoBehaviour class template.", | |
"body": [ | |
"using UnityEngine;", | |
"", | |
"public class ${TM_FILENAME_BASE} : MonoBehaviour", | |
"{", | |
"\t$0", |
This file contains 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
knockbackFriction = 2.0D; | |
knockbackHorizontal = 0.35D; | |
knockbackVertical = 0.35D; | |
knockbackVerticalLimit = 0.4D; | |
knockbackExtraHorizontal = 0.425D; | |
knockbackExtraVertical = 0.085D; |
This file contains 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
private static ScrollableMenuModel getModel(){ | |
ItemStack air = new ItemStack(Material.AIR); | |
ItemStack nextpage = nolore(Material.ARROW, 1, 0, "§ePágina siguiente"); | |
ItemStack previouspage = nolore(Material.ARROW, 1, 0, "§ePágina anterior"); | |
ItemStack shop = nolore(Material.EMERALD, 1, 0, "§aVolver a la tienda"); | |
ScrollableMenuModel menumodel = new ScrollableMenuModel(54, air, | |
new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.DECORATION, null, 0) | |
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.NEXT_PAGE, nextpage, 41) | |
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.PREVIOUS_PAGE, previouspage, 39) | |
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.ITEM, null, 10,11,12,13,14,15,16,19,20,21,22,23,24,25,28,29,30,31,32,33,34) |
This file contains 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
package com.plugin.npc; | |
import com.mojang.authlib.GameProfile; | |
import com.mojang.authlib.properties.Property; | |
import net.minecraft.server.v1_12_R1.*; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer; |
This file contains 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
_ |
This file contains 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
/*** | |
* This script will anchor a GameObject to a relative screen position. | |
* This script is intended to be used with ViewportHandler.cs by Marcel Căşvan, available here: http://gamedev.stackexchange.com/a/89973/50623 | |
* It is also copied in this gist below. | |
* | |
* Note: For performance reasons it's currently assumed that the game resolution will not change after the game starts. | |
* You could not make this assumption by periodically calling UpdateAnchor() in the Update() function or a coroutine, but is left as an exercise to the reader. | |
*/ | |
/* The MIT License (MIT) |
NewerOlder