Skip to content

Instantly share code, notes, and snippets.

View linj121's full-sized avatar
:shipit:
Focusing

Josh linj121

:shipit:
Focusing
View GitHub Profile
@Bluefissure
Bluefissure / pal-scripts.md
Last active February 25, 2024 20:23
Some Useful PalWorld Scripts

Pal World Scripts (Linux & Bash)

Remember to replace the folder directory, <AdminPassword>, <RCONPort> to your own.

Also, you need to use crontab to schedule the following scripts if necessary.

Supervisor

I'm using supervisor to restart the service, the example config is as:

@Toakan
Toakan / Palworld-Server-FAQ-Community.md
Last active March 20, 2024 07:23
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)
@cheahjs
cheahjs / README.md
Last active February 11, 2024 01:13
Converting PalWorld saves to JSON and back
@nichham2
nichham2 / Sources.list--
Last active June 2, 2024 16:27
This is a copy of the sources.list file for ubuntu-22.04-lts Server arm64 Also sources.list-ubuntu-22.04-lts Server amd64
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
@iam-hussain
iam-hussain / default HTTP
Last active June 4, 2024 07:57
Serve nextJS app from a port through NGINX reverse proxy HTTP and HTTPS
# Serve nextJS app from a port through NGINX reverse proxy (HTTP)
# Path: /etc/nginx/sites-available/default
# Default server configuration for HTTP
server {
server_name www.DOMAINNAME.com DOMAINNAME.com;
# Serve any static assets with NGINX
location /_next/static {
alias /home/ubuntu/PROJECT_FOLDER/.next/static;
@demid5111
demid5111 / 1_install_opencv_win.md
Last active April 29, 2024 04:04
Instructions for installing opencv on Windows 10

Install OpenCV 4.5 on Windows 10

Pre-configured OpenCV for Python from PyPi

  1. open the terminal (Ctrl+R + cmd)
  2. check Python3 installation: py --version
  3. go to official website to learn details: https://pypi.org/project/opencv-python/
  4. choose the most complete package and run: py -m pip install opencv-contrib-python
  5. check installation by entering the Python REPL: py
  6. import tha library: import cv2
@crearo
crearo / gstreamer-recording-dynamic.c
Last active January 17, 2024 18:26
Example of dynamic pipeline in Gstreamer (recording + display). Stop recording at will by hitting ctrl+c.
#include <string.h>
#include <gst/gst.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink
static GMainLoop *loop;
@ygotthilf
ygotthilf / jwtRS256.sh
Last active June 4, 2024 12:18
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub