Skip to content

Instantly share code, notes, and snippets.

# Copyright 2016 Open Source Robotics Foundation, Inc.
#
# 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,
@wildlarva
wildlarva / 3D解析ライブラリ.md
Last active November 19, 2023 06:27
3D解析ライブラリ
ライブラリ概要 言語サポート 3D解析/加工機能 3D Analysis & Processing 備考
ライブラリ名 レポジトリ 主な提供機能/主要用途 スター数 (k) Python C/C++ レイ・キャスティング Ray Casting / Tracing 3D投影 3D Projection 3D再構成 3D Reconstruction ポイントクラウド登録 Point Cloud Registration メッシュ単純化 Mesh Decimation / Simplification
@wildlarva
wildlarva / udp-port-forwarding.ps1
Last active July 14, 2024 14:30
WSL Port Forwarding Example for UDP
#--------------------------------------------------------
# Background: WSL UDP port forwarding
#--------------------------------------------------------
# Microsoft recommends "netsh interface portproxy" for port forwarding, but it does not support UDP for now.
# See https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan.
# For UDP port forwarding, you can use Windows NAT mechanism.
# See https://gist.github.com/the-moog/e7a1b5150ce9017309afbcf91848e622.
@wildlarva
wildlarva / useful_gpg_commands.md
Last active August 20, 2023 02:43
Useful GPG commands

Useful commands for GPG

Check public key

# List public keys
gpg --list-keys

Backup and restore

@wildlarva
wildlarva / useful_apt_commands.md
Last active July 2, 2021 04:57
Useful apt/dpkg commands

Useful apt/dpkg commands

Explore package contents

# Find file in installed packages
dpkg -S <file>

# List files in a package
dpkg -L 
@wildlarva
wildlarva / commands to get apt packages manually installed.sh
Last active January 6, 2020 02:54
Get apt packages manually installed in ubuntu
# Edit 'MANIFEST' and point to the manifest file of the ubuntu version you installed
#
# Ubuntu server image 18.04.3
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest
#
# Ubuntu desktop image 18.04.3
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.manifest
MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest
wget $MANIFEST -q -O - | cut -f 1 | cut -d':' -f1 | sort > preinstalled.txt
apt list --manual-installed | cut -d'/' -f1 | sort > manual_installed.txt
@wildlarva
wildlarva / useful_tmux_commands.md
Last active July 2, 2021 04:57
Useful tmux commands

Useful tmux commands

# Find tmux command with a description
tmux list-commands | grep <description>

# Find tmux keybinding with a description
tmux list-keys | grep <description>
@wildlarva
wildlarva / useful_commands.md
Last active August 20, 2023 02:09
Useful commands

Useful commands

utils

file

tree

list contents of directories in a tree-like format

@wildlarva
wildlarva / rarely_used_commands.md
Last active July 2, 2021 04:57
Rarely-used useful commands

Rarely used commands

utils

amusement

banner

print ascii art of text

@wildlarva
wildlarva / DiffDumpUtils.java
Last active June 12, 2019 01:38
A snippet to dump java object differences with java-object-diff
import de.danielbechler.diff.ObjectDifferBuilder;
import de.danielbechler.diff.node.DiffNode;
import de.danielbechler.diff.node.Visit;
// implemented with java-object-diff(https://github.com/SQiShER/java-object-diff)
public final class DiffDumpUtils {
public static void dumpDiff(Object o1, Object o2) {
DiffNode root = ObjectDifferBuilder.buildDefault().compare(o2, o1);
root.visit((DiffNode node, Visit visit) -> {