Show config file location with sudo -u postgres psql -c 'SHOW config_file'
Edit the file, default: sudo nano /etc/postgresql/14/main/postgresql.conf
listen_addresses = '*'
port = <remember-port>
sudo ufw allow
# For all you people out there who occasionally work from home on an OLED but want to keep the wallpapers in the office. | |
# | |
# > Creates a file in your Userprofile named oled-mode-enabled (and deletes it later) | |
# > Sets the background to black and reverts it to the path you gave it. (See below) | |
# > Sets the screen timeout to 3 Minutes | |
# > Stops Explorer for a restart to take effect | |
# | |
# You might need to manually set the background to black once. | |
# | |
# DO NOT RUN UNCHECKED CODE FROM THE INTERNET. |
System: | |
Kernel: 6.7.3-arch1-2 arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.10 | |
Distro: EndeavourOS | |
Machine: | |
Type: Desktop Mobo: ASRock model: B550 Extreme4 serial: <superuser required> | |
UEFI: American Megatrends LLC. v: P2.40 date: 10/19/2022 | |
CPU: | |
Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP cache: L2: 4 MiB | |
Speed (MHz): avg: 2995 min/max: 2200/4426 cores: 1: 3600 2: 2091 3: 2102 | |
4: 4133 5: 2167 6: 2128 7: 4266 8: 4030 9: 3897 10: 2031 11: 2066 12: 4249 |
Feb 04 18:01:32 MAA001103EOS com.docker.backend[1299]: [2024-02-04T17:01:32.923472026Z][com.docker.backend.httpproxy][I] HTTP 214 CONNECT desktop.docker.com:443: successful (5 active requests) | |
Feb 04 18:01:45 MAA001103EOS kernel: Lethal Company. invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=200 | |
Feb 04 18:01:45 MAA001103EOS kernel: CPU: 13 PID: 32090 Comm: Lethal Company. Not tainted 6.7.2-arch1-1 #1 a8cc6217560401daa1a3b2de3f94ad139a093ff5 | |
Feb 04 18:01:45 MAA001103EOS kernel: Hardware name: To Be Filled By O.E.M. B550 Extreme4/B550 Extreme4, BIOS P2.40 10/19/2022 | |
Feb 04 18:01:45 MAA001103EOS kernel: Call Trace: | |
Feb 04 18:01:45 MAA001103EOS kernel: <TASK> | |
Feb 04 18:01:45 MAA001103EOS kernel: dump_stack_lvl+0x47/0x60 | |
Feb 04 18:01:45 MAA001103EOS kernel: dump_header+0x45/0x1b0 | |
Feb 04 18:01:45 MAA001103EOS kernel: oom_kill_process+0xfa/0x200 | |
Feb 04 18:01:45 MAA001103EOS kernel: out_of_memory+0x244/0x590 |
/* | |
Contains 3 Files: | |
- components/socket/socketProvider.tsx (Client-Connection) | |
- components/socket/webSocketStatus.tsx (Client-Status and useSocket-Example) | |
- websocket/src/index.ts (Server) | |
Websocket-Server is done externally because nextjs-API-Routes are simply not made for that except you hate yourself. | |
"next": "^13.4.3", |
Show config file location with sudo -u postgres psql -c 'SHOW config_file'
Edit the file, default: sudo nano /etc/postgresql/14/main/postgresql.conf
listen_addresses = '*'
port = <remember-port>
sudo ufw allow
===================================================================== | |
== E:\Steam\steamapps\common\Arma 3\Arma3.exe | |
== "E:\Steam\steamapps\common\Arma 3\Arma3.exe" -noSplash -name=Alex -showScriptErrors "-mod=E:\Steam\steamapps\common\Arma 3\!Workshop\@CUP Terrains - Core;E:\Steam\steamapps\common\Arma 3\!Workshop\@CUP Terrains - Maps;E:\Steam\steamapps\common\Arma 3\!Workshop\@CUP Terrains - CWA;E:\Steam\steamapps\common\Arma 3\!Workshop\@CBA_A3;E:\Steam\steamapps\common\Arma 3\!Workshop\@RHSAFRF;E:\Steam\steamapps\common\Arma 3\!Workshop\@RHSUSAF;E:\Steam\steamapps\common\Arma 3\!Workshop\@ace;E:\Steam\steamapps\common\Arma 3\!Workshop\@Project OPFOR;E:\Steam\steamapps\common\Arma 3\!Workshop\@BWMod;E:\Steam\steamapps\common\Arma 3\!Workshop\@ACE3 - BWMOD Compatibility;E:\Steam\steamapps\common\Arma 3\Mods\@task_force_radio;E:\Steam\steamapps\common\Arma 3\!Workshop\@ACEX;E:\Steam\steamapps\common\Arma 3\!Workshop\@ACE Compat - RHS United States Armed Forces;E:\Steam\steamapps\common\Arma 3\!Workshop\@ACE C |
private static ItemStack getItem(String b64stringtexture) { | |
GameProfile profile = new GameProfile(UUID.randomUUID(), null); | |
PropertyMap propertyMap = profile.getProperties(); | |
if (propertyMap == null) { | |
throw new IllegalStateException("Profile doesn't contain a property map"); | |
} | |
propertyMap.put("textures", new Property("textures", b64stringtexture)); | |
ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); | |
ItemMeta headMeta = head.getItemMeta(); | |
Class<?> headMetaClass = headMeta.getClass(); |
package de.zbs.nationz.api; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.Sound; |