Skip to content

Instantly share code, notes, and snippets.

View adrianjagielak's full-sized avatar
🚀
Deploying stuff

Jagi ᯅ adrianjagielak

🚀
Deploying stuff
View GitHub Profile

How to use spawn command for testing purposes (entities and items) Analytics

syntax is simple

spawn -e/-i <thing name> <optionally number>

For instance if i want to spawn one cow i type

spawn -e entity_cow

Some of my stuff created for Odd Realm community Analytics

JagiMod

Improvements included in my modification:

  • slighty better autojob (unlimited vs 10, wait, it is 50 now but still for someone too little hehe)
  • custom time scales (like x8)
  • season autosave on/off
  • day autosave on/off
  • Rimworld-like camera speed (hold ctrl and camera goes faster)

Install JagiMod Analytics

  1. update your game and download latest version from here
  2. unzip file
  3. move Assembly-CSharp.dll to C:\Program Files (x86)\Steam\steamapps\common\Odd Realm\OddRealm_Data\Managed
  4. move jagi.txt to C:\Program Files (x86)\Steam\steamapps\common\Odd Realm\
  5. tune jagi.txt config file if you want :)
  6. enjoy :)

How to use kill command for testing purposes Analytics

kill -e

Kill all visible enemies on map


kill -n

Kill all neutral things

How to use vpath command for finding underground structures Analytics

vpath and vpath -h

show and hide vpath to find underground structures ;))

there are also -p, -r, -n and -g arguments but they only change coloring I mean they are useful for developer but for us no :P

How to use foo command to summon different fun stuff Analytics

foo 1 - 5 humans and base resources

foo 2 - all of cooked food

foo 3 - all of raw food

foo 4 - all entities

@adrianjagielak
adrianjagielak / MTActuatorTest.m
Created December 15, 2022 14:32
A small sample code to trigger a haptic feedback on MacBook trackpad. (https://gist.github.com/niw/b120b460e854ec10cefeeb60784f5dbb)
//
// MTActuatorTest.m
// MTActuatorTest
//
// Created by Yoshimasa Niwa on 12/2/17.
// Copyright © 2017 Yoshimasa Niwa. All rights reserved.
//
/*
@adrianjagielak
adrianjagielak / Proxyman tvOS.md
Last active September 7, 2023 07:01
Proxyman tvOS

Method I (regular profiles, should work for most apps):

  1. Configure (new?)wifi network with manual proxy using apple configurator (https://lucaslegname.github.io/mitmproxy/2020/04/10/setting-proxy-tvos.html)
  2. reboot
  3. export proxyman certificate .cer from macos keychain and install in tvos as profile
  4. trust root certificate in tvos settings (Settings > General > About > Certificate Trust Settings)

Method II (supervising, requires device erase, should work for all apps):

  1. https://www.willowtreeapps.com/craft/a-how-to-guide-for-apple-tv-setup-with-charles-proxy
@adrianjagielak
adrianjagielak / Fix Google Photos Takeout timestamps.py
Last active October 16, 2023 15:22
Fix Google Photos Takeout timestamps+gps+broken files (populate file creation time (all files), file modification time (all files), and exif DateTimeOriginal (images), clear the gps exif if its invalid (0,0), and remove invalid broken images (move them to a "corrupted_files" dir)
import os
import json
from PIL import Image, UnidentifiedImageError
import datetime
import re
import shutil
def set_file_timestamps(filename, timestamp):
"""Set the creation and modification dates for a file."""
dt = datetime.datetime.fromtimestamp(int(timestamp))