Skip to content

Instantly share code, notes, and snippets.

View RichardDally's full-sized avatar
🏠

Richard Dally RichardDally

🏠
  • Paris, France
  • 19:35 (UTC +02:00)
View GitHub Profile
@RichardDally
RichardDally / python_std_logger_bootstrap.py
Created August 21, 2023 08:11
Python standard logger bootstrap
import sys
import logging
from datetime import datetime
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s.%(msecs)03d | %(levelname)s | %(module)s.%(funcName)s | %(message)s",
datefmt="%Y/%m/%d %H:%M:%S",
handlers=[
@RichardDally
RichardDally / readme.md
Created January 5, 2023 13:53
Minikube Ubuntu

Minikube on Ubuntu

Install kubectl

  • sudo apt-get update && sudo apt-get install -y apt-transport-https
  • curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
  • echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
  • sudo apt-get update
  • sudo apt-get install -y kubectl
@RichardDally
RichardDally / docker-compose.yml
Created December 11, 2022 21:59
Kafka Cluster
version: '3.3'
services:
zookeeper:
image: docker.io/confluentinc/cp-zookeeper:7.3.0
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
volumes:
- "zookeeper-data:/var/lib/zookeeper/data"
@RichardDally
RichardDally / Satisfactory_Windows_dedicated_server_instructions.txt
Created October 30, 2022 13:28
Satisfactory Windows dedicated server
Download steamcmd:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
Install/update the server:
.\steamcmd.exe ^
+force_install_dir C:\SteamCMD\SatisfactoryServer ^
+login anonymous ^
+app_update 1690800 ^
-beta public ^
@RichardDally
RichardDally / gist:32dddd17441eff386c8ee80bfd276628
Last active March 29, 2022 11:16
Compile SFML and TGUI statically
Windows (powershell):
cd C:\Temp\
git clone --branch 2.5.1 -q https://github.com/SFML/SFML sfml
cmake -G "Visual Studio 16 2019" -H"sfml" -B"C:\Temp\sfml\build" -DCMAKE_INSTALL_PREFIX="C:\Temp\sfml\install\" -DBUILD_SHARED_LIBS=OFF -DSFML_USE_STATIC_STD_LIBS=ON
cmake --build "C:\Temp\sfml\build" --config release --parallel 8 --target INSTALL
cd C:\Temp\
git clone --branch 0.10 -q https://github.com/texus/TGUI.git tgui
cmake -G "Visual Studio 16 2019" -H"tgui" -B"C:\Temp\tgui\build" -DCMAKE_INSTALL_PREFIX="C:\Temp\tgui\install\" -DSFML_DIR="C:\Temp\sfml\install\lib\cmake\SFML" -DTGUI_BACKEND=SFML_GRAPHICS -DTGUI_SHARED_LIBS=OFF -DTGUI_USE_STATIC_STD_LIBS=ON -DTGUI_BUILD_EXAMPLES=OFF -DTGUI_BUILD_GUI_BUILDER=OFF
cmake --build "C:\Temp\tgui\build" --config release --parallel 8 --target INSTALL
@RichardDally
RichardDally / Rust_Windows_Dedicated_Server_Instructions.txt
Last active October 30, 2022 13:22
Rust Windows Dedicated Server
--- How to setup and run a Rust dedicated server on steam ---
Download steamcmd:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
Install/update the server:
steamcmd +force_install_dir D:\SteamCMD\RustServer +login anonymous +app_update 258550 +quit
Create a batch file to start server:
List all running containers
$ docker ps
List all containers
$ docker ps -a
Start mongo:3.4-xenial (tagged mongo-test-server) and expose port 27017
$ docker run --publish 27017:27017 --name mongo-test-server --detach mongo:3.4-xenial
Stop container <container_name>