Skip to content

Instantly share code, notes, and snippets.

@lisanhu
lisanhu / rimworld_log_03232024
Created March 23, 2024 14:58
F.S. - Live2D RimWorld mod not working in Linux log
This file has been truncated, but you can view the full file.
Log uploaded on Saturday, March 23, 2024, 10:56:56 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.7.1.0]: 0Harmony(2.2.2), HarmonyMod(1.5.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.3]: 0Harmony(av:2.2.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:10.0.1)
[FS] - Live2D Cubism Framework(FS.LivelyRim): CubismRim(0.0.0), CubismRimAddon(0.0.0), FS_Warfarin(0.0.0), LitJSON(0.18.0), LivelyRim(1.0.0), Unity.2D.Animation.Runtime(0.0.0), Unity.2D.Animation.Triangle.Runtime(1.0.0), Unity.2D.Common.Runtime(0.0.0), Unity.2D.PixelPerfect(0.0.0), Unity.2D.SpriteShape.Runtime(0.0.0), Unity.InternalAPIEngineBridge.001(0.0.0), Unity.Mathematics(0.0.0), Unity.Timeline(1.0.0)
@lisanhu
lisanhu / colors.sh
Last active September 2, 2021 06:18
view terminfo colors and their corresponding color code
#!/bin/bash
# origin: https://unix.stackexchange.com/questions/269077/tput-setaf-color-table-how-to-determine-color-codes
color(){
for c; do
printf '\e[48;5;%dm%03d ' $c $c # adding one more space in the end to seperate the numbers
done
printf '\e[0m \n'
}
@lisanhu
lisanhu / nvhpc-link-libs.txt
Created August 4, 2021 09:03
nvhpc linking libraries ( get from -dryrun flag )
@lisanhu
lisanhu / sample.cc
Created February 24, 2020 21:06
Deepcopy Sample code in Cpp
typedef struct Outer {
int *data, w, h;
#pragma acc policy<dpmove> copy(data[:w])
// Outer(int *data = nullptr, int w = 0, int h = 0): data(data) {}
} Outer;
Outer init_outer(int *data, int w, int h) {
Outer r = {data, w, h};
return r;
}
@lisanhu
lisanhu / .tmux.conf
Last active August 10, 2022 12:12
tmux configuration
# enable colors in tmux
set -g default-terminal "xterm-256color"
# changing prefix from 'Ctrl+b' to 'Ctrl+b'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# enable mouse scrolling
set -g mouse on
@lisanhu
lisanhu / .rustfmt.toml
Created August 13, 2019 02:31
rustfmt format configuration
brace_style = "PreferSameLine"
@lisanhu
lisanhu / cleanup.sh
Last active July 3, 2019 04:14
Clean up PATH like environment variables to remove duplicates
echo -n $PATH | awk 'NF && !seen[$0]++ {printf "%s:", $0}' RS=':'
@lisanhu
lisanhu / TUTORIAL.txt
Created June 3, 2019 20:12
Emacs Tutorial Cheat Sheet
# Moving short-cuts
C-v next page
M-v previous page
C-l make cursor middle
Number means how many lines above this line
C-n next line
C-p previous line
C-f one character forward
C-b one character backward
@lisanhu
lisanhu / .bashrc
Last active July 23, 2023 20:10
Pop OS defaut .bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@lisanhu
lisanhu / cmake-test-vendor.txt
Created March 25, 2019 00:48
CMake testing C/CXX compiler vendor
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# using Clang
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
# using Intel C++
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# using Visual Studio C++
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI")
# using PGI