| # syntax = docker/dockerfile:1 | |
| # Adjust BUN_VERSION as desired | |
| ARG BUN_VERSION=1.1.1 | |
| FROM oven/bun:${BUN_VERSION}-slim as base | |
| LABEL fly_launch_runtime="Next.js" | |
| # Next.js app lives here | |
| WORKDIR /app |
If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.
Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.
| // disable forced dark mode to prevent weird color changes | |
| // eslint-disable-next-line @typescript-eslint/no-var-requires | |
| const { createRunOncePlugin, withAndroidStyles, AndroidConfig } = require('expo/config-plugins') | |
| function setForceDarkModeToFalse(styles) { | |
| const newStyles = AndroidConfig.Styles.assignStylesValue(styles, { | |
| add: true, | |
| // ############# FOLLOW IF YOU'RE ON SDK 52 ############# | |
| // TODO: AndroidConfig.Styles.getAppThemeGroup() will be available in SDK 52 (or expo/config-plugins 9+), for now I just hardcoded AppTheme | |
| // parent: AndroidConfig.Styles.getAppThemeGroup(), |
| 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 |
| knockbackFriction = 2.0D; | |
| knockbackHorizontal = 0.35D; | |
| knockbackVertical = 0.35D; | |
| knockbackVerticalLimit = 0.4D; | |
| knockbackExtraHorizontal = 0.425D; | |
| knockbackExtraVertical = 0.085D; |
| 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) |
| 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; |
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])
| _ |
