Skip to content

Instantly share code, notes, and snippets.

@Toakan
Toakan / Palworld-Server-FAQ-Community.md
Last active March 1, 2025 18:28
Palworld Server Community FAQ

Palworld Server Community FAQ

I've been in the #pal-server-help channel for a while now, and these same things keep coming up. So here's a one stop list of items people keep asking for.

Server Setup

Server Recommended Specs (For 8-12 Players)

  • 4x CPU cores @3.8Ghz+
  • 30GB Storage
  • 8GB RAM Base + 2GB RAM per player (If using scheduled restarts)
@jcpowermac
jcpowermac / create-existing-folder-permissions.sh
Created January 13, 2021 17:29
openshift vsphere permissions with govc
#!/bin/bash
set -e
set -x
declare -A roles
VCENTER="Cns.Searchable InventoryService.Tagging.AttachTag InventoryService.Tagging.CreateCategory InventoryService.Tagging.CreateTag InventoryService.Tagging.DeleteCategory InventoryService.Tagging.DeleteTag InventoryService.Tagging.EditCategory InventoryService.Tagging.EditTag Sessions.ValidateSession StorageProfile.View"
VCENTER_ROLE_NAME="openshift-vcenter-level"
@jcpowermac
jcpowermac / README.md
Created December 8, 2020 18:23
vCenter: role, privileges, permissions - mitmproxy

There is a proxy already running on vCenter - assuming this proxies the various services running on vCenter via the single port (TCP 443 - https):

Modify /sdk changing the port to 28085.

root@ip-172-31-250-99 [ /etc/vmware-rhttpproxy/endpoints.conf.d ]# cat vpxd-rhttpproxy-endpoint.conf 
/sdk local 28085 redirect allow
@goutomroy
goutomroy / measure_time.py
Last active September 26, 2024 16:03
A Python decorator which will calculate function execution time in seconds and prints it in console.
import functools
import time
def timer(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
start_time = time.perf_counter()
value = func(*args, **kwargs)
@cgmartin
cgmartin / vera_auth_test.sh
Last active March 22, 2023 19:43
Vera Auth Sessions Example
#!/bin/bash
set -e
command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed (see: https://stedolan.github.io/jq/). Aborting."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "I require curl but it's not installed (see: https://curl.haxx.se/). Aborting."; exit 1; }
# Auth API Notes: http://forum.micasaverde.com/index.php/topic,24942.45.html
# New Server domains listing: http://forum.micasaverde.com/index.php/topic,25859.0.html
# Example implementations:
# https://github.com/rickbassham/vera/blob/master/vera_test.py
# https://github.com/amg0/ALTUI/blob/master/Remote/VeraloginAction.php
@infosec-intern
infosec-intern / vscode.desktop
Last active March 14, 2025 11:50
A simple .desktop file for Visual Studio Code
[Desktop Entry]
Name=Visual Studio Code
Comment=Programming Text Editor
Exec=/usr/local/src/VSCode-linux-x64/code
Icon=/usr/local/src/VSCode-linux-x64/resources/app/resources/linux/code.png
Terminal=false
Type=Application
Categories=Programming;
@whitlockjc
whitlockjc / Environment_for_Developing_Kubernetes.md
Last active June 15, 2019 18:35
Resources on creating a development environment for contributing to Kubernetes.

Environment for Developing Kubernetes

First and foremost, this is not a document on how to create an environment for developing applications targeting Kubernetes as its runtime. This document is to outline the steps required to create an environment for contributing to Kubernetes based on recently setting up both Linux and Mac development environments. This document is written as if you will be creating your development enivonment on OS X but just know that things are basically the same when on other OSes. Of course, the installation and configuration of these tools will changed based on which OS you're on, and possibly other things, but the gist is that in this guide when you see that tool X is required, you follow whatever steps to install tool X on your OS.

@booherbg
booherbg / gist:b4f26a947c52ba31940c
Last active September 24, 2024 14:42
Setting up RetroPi + iBuffalo SNES controllers
The documentation online can be confusing, especially with config paths from old files floating around.
1. Download an image file for RetroPi (Ideally 2.5+)
2. Unzip the image file, plug in your SD card (likely /dev/sdb)
3. dd if=retropi.img of=/dev/sdb (this will erase your entire SD card)
4. Optional: increase the size of the new partition with gparted
System Setup
1. Add your ROMs to ~/RetroPi/roms/snes (which will cause your EmulationStation to now show the system in the menu). Be sure to unzip them.
2. (Not needed in RetroPie 2.5) Update your controller config, either by running ~/retropi_setup/retropi_setup.sh, or copying a known config to /opt/retropie/emulators/RetroArch/USB,2-axis8-buttongamepad.cfg
@tom-lpsd
tom-lpsd / GC.java
Last active September 16, 2016 17:20
java -verbose:gc -XX:+PrintGCDetails -XX:+PrintPromotionFailure -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDateStamps -Xmx1g -Xms1g -Xmn100m -XX:CMSInitiatingOccupancyFraction=99 GC 2000000
import java.util.Random;
public class GC {
static class Foo {
byte[] raw;
public Foo(int n) {
raw = new byte[n];
}
}
@mortezaadi
mortezaadi / persistence.xml
Last active July 23, 2024 00:45
persistence xml configurations for major databases and jpa providers
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<!-- derby -->