Skip to content

Instantly share code, notes, and snippets.

@AviiNL
AviiNL / accelerated_encoder_axis.py
Created March 6, 2024 10:06
Accelerated encoder to Axis for Joystick Gremlin
import time
import math
import gremlin
from gremlin.user_plugin import *
def timestamp():
return math.floor(time.time() * 1000)
mode = ModeVariable(
"Mode",
var coffeeMachine = new CoffeeMachine();
var beans = new Beans();
var cup = new Cup();
var tap = new Tap();
if(cup.Empty()) {
var ground = coffeeMachine.Grind(beans);
if(!ground)
throw new Exception("Grinding beans did not result in successful ground");
[ 611907] Failed to run a tick for Client: System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.Serialization.DefaultSerializationBinder' threw an exception. ---> System.MethodAccessException: Error verifying Newtonsoft.Json.Serialization.DefaultSerializationBinder:.ctor (): Method System.Runtime.Serialization.SerializationBinder:.ctor () is not accessible at 0x0001
[ 611907] at Newtonsoft.Json.Serialization.DefaultSerializationBinder..cctor () [0x00000] in <dc86da7fc46c487ba6c7ab826da479cc>:0
[ 611922] --- End of inner exception stack trace ---
[ 611922] at Newtonsoft.Json.JsonSerializer.Create () [0x00000] in <dc86da7fc46c487ba6c7ab826da479cc>:0
[ 611922] at Newtonsoft.Json.JsonSerializer.Create (Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <dc86da7fc46c487ba6c7ab826da479cc>:0
[ 611922] at Newtonsoft.Json.JsonSerializer.CreateDefault () [0x00011] in <dc86da7fc46c487ba6c7ab826da479cc>:0
[ 611938] at Newtonsoft.Json.JsonSerializer.Cre
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(CameraRaycaster))]
public class CursorAffordance : MonoBehaviour {
[SerializeField]
Texture2D unknownCursor = null;
#!/usr/bin/env node
/**
* blessed-ssh2.js
* https://github.com/chjj/blessed
* Copyright (c) 2013-2015, Christopher Jeffrey (MIT License)
* A blessed ssh2 server.
* See: https://github.com/mscdex/ssh2
*/
#!/bin/bash
# Remove old repositories due to conflicts
rm -rf /etc/yum.repos.d/ocaml.repo
rm -rf /etc/yum.repos.d/hop5.repo
rm -rf /etc/yum.repos.d/epel.repo
rm -rf /etc/yum.repos.d/epel-testing.repo
yum install -y postgresql94-devel zeromq-devel libpqxx-devel
2015-11-19 17:11:40 ERROR POSTPROCESSER :: Exception generated in thread POSTPROCESSER: ascii : /mnt/media/Series/South Park/Season 19/South Park - S19E04 - You’re Not Yelping.mkv : error 64 : error 65 : ordinal not in range(128)
2015-11-19 17:11:40 DEBUG POSTPROCESSER :: Trying to determine free space on destination drive
2015-11-19 17:11:40 INFO POSTPROCESSER :: This download is marked a priority download so I'm going to replace an existing file if I find one
2015-11-19 17:11:40 DEBUG POSTPROCESSER :: File /mnt/media/Series/South Park/Season 19/South Park - S19E08 - Sponsored Content.mkv is larger than /mnt/media/downloads/completed/south.park.s19e08.internal.proper.720p.hdtv.hevc.x265.rmteam.mkv
2015-11-19 17:11:40 DEBUG POSTPROCESSER :: Is ep a priority download: True
2015-11-19 17:11:40 DEBUG POSTPROCESSER :: SR snatched this episode and it is not processed before
2015-11-19 17:11:40 DEBUG POSTPROCESSER :: Quality of the episode we're processing: 4
2015-11-19 17:11:40 DEBUG POSTP