Skip to content

Instantly share code, notes, and snippets.

View JohnTheCoolingFan's full-sized avatar

JohnTheCoolingFan

View GitHub Profile
@JohnTheCoolingFan
JohnTheCoolingFan / ipc.py
Created February 1, 2020 11:31 — forked from dankrause/ipc.py
Simple socket IPC in python
# Copyright 2017 Dan Krause
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@JohnTheCoolingFan
JohnTheCoolingFan / buildmod.sh
Last active January 27, 2023 15:50
A simple script that uses 7zip to build a Factorio mod and put it into the mods folder
#! /bin/bash
MODNAME="$(cat info.json | jq -r ".name")"
MODVERSION="$(cat info.json | jq -r ".version")"
mkdir -p "/tmp/buildmod/$MODNAME"_"$MODVERSION/"
cp -r * "/tmp/buildmod/$MODNAME"_"$MODVERSION/"
rm ~/.factorio/mods/"$MODNAME"*
7z a -sdel "/tmp/buildmod/$MODNAME"_"$MODVERSION.zip" "/tmp/buildmod/$MODNAME"_"$MODVERSION" > /dev/null
mv "/tmp/buildmod/$MODNAME"_"$MODVERSION.zip" ~/.factorio/mods/
This file has been truncated, but you can view the full file.
[ START ] 2021-07-03T20:16:11+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:16:24+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:15:23+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:18:13+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:18:27+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:18:35+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:18:50+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:19:56+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:20:52+0300 ] LSP logging initiated
[ START ] 2021-07-03T20:21:01+0300 ] LSP logging initiated
@JohnTheCoolingFan
JohnTheCoolingFan / lsp.log 2.0
Last active December 19, 2022 04:38
Neovim log from :LspLog
This file has been truncated, but you can view the full file.
[START][2022-10-02 17:24:32] LSP logging initiated
[ERROR][2022-10-02 17:24:32] .../vim/lsp/rpc.lua:733 "rpc" "rust-analyzer" "stderr" "thread '<unnamed>' panicked at 'No `#[uuid = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"` attribute found.', /home/jtcf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_reflect_derive-0.8.1/src/type_uuid.rs:54:14\nstack backtrace:\n"
[ERROR][2022-10-02 17:24:32] .../vim/lsp/rpc.lua:733 "rpc" "rust-analyzer" "stderr" " 0: rust_begin_unwind\n at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5\n 1: "
[ERROR][2022-10-02 17:24:32] .../vim/lsp/rpc.lua:733 "rpc" "rust-analyzer" "stderr" "core::panicking::panic_fmt\n at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14\n 2: core::panicking::panic_display\n at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:72:5\n 3: core::panicking::panic_str\n at /rustc/a55dd71d5fb0ec5a6a3a9e8c2
Compiling nix v0.24.3
error[E0432]: unresolved import `libc::PATH_MAX`
--> /home/jtcf/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.24.3/src/unistd.rs:11:34
|
11 | uid_t, gid_t, mode_t, PATH_MAX};
| ^^^^^^^^ no `PATH_MAX` in the root
error[E0432]: unresolved import `self::consts`
--> /home/jtcf/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.24.3/src/errno.rs:7:15
|
@JohnTheCoolingFan
JohnTheCoolingFan / lite_cfg.txt
Created November 13, 2023 03:42
EasyThreed K9 Marlin factory firmware configuration
######### MKS Robin Lite configuration #########
#-------------------------------------------------------------
#��ѡ��ֻ�ڳ�������ʹ��
#>cfg_hardware_test_enable 1 #Ӳ������ʹ�ܡ�
#============================= Basic Settings =========================
>MACHINETPYE 0 # 0:Cartesian; 1:DELTA ; 2:COREXY