Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Tiryoh / download_gazebo_models.sh
Last active September 26, 2024 13:42
A script to download Gazebo models from models.gazebosim.org manually
#!/usr/bin/env bash
set -eu
# (C) 2019 Daisuke Sato
# https://tiryoh.mit-license.org/2019
function download_model(){
if [[ -d $HOME'/.gazebo/models/'$1 ]]; then
echo model $1 is ready.
else
@Tiryoh
Tiryoh / ros_melodic_install_raspizero.bash
Created October 16, 2019 03:33
ROS Melodic installation on Raspberry Pi Zero/Raspberry Pi Zero W
#!/usr/bin/env bash
set -eu
# (C) 2019 Daisuke Sato
# https://tiryoh.mit-license.org/2019
# Special thanks to @nomumu
sudo apt update
sudo apt install -y build-essential gdebi
mkdir -p ~/tmp && pushd ~/tmp
@Tiryoh
Tiryoh / robin_nano_cfg.txt
Last active June 10, 2024 02:48
KINGROON KP3S純正ファームウェアで使用している設定ファイル
# robin_nano_cfg.txt [3D Touch] 日本語版 2021.10.30 Version 0.1.0 by @Tiryoh
# robin_nano_cfg.txt [3D Touch] 日本語版 2021.3.5 Version.0.0.1 by @hitoriblog の派生物です
#=================== 高度な機能設定 =======================================
>cfg_insert_det_module 0 # アクセス停電検出モジュール (1:mks 220det; 0:mks pwc)
>cfg_have_ups_device 0 # マシンにUPS電源が搭載されているかどうか (1:yes; 0:no)
>cfg_print_over_auto_close 1 # プリントオーバーシャットダウン設定 (1:on; 0:off) 「プリントオーバーシャットダウンモジュール」と同時に使用
@Tiryoh
Tiryoh / create_2gbswapfile.sh
Last active May 6, 2024 09:11
create 2GB swapfile on Linux
#!/usr/bin/env bash
set -eu
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cat /proc/swaps
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
@Tiryoh
Tiryoh / ros_kinetic_install_raspizero.bash
Last active October 11, 2023 07:17
ROS Kinetic installation on Raspberry Pi Zero/Raspberry Pi Zero W
sudo apt-get update
sudo apt-get install -y build-essential gdebi
mkdir -p ~/tmp
wget https://github.com/nomumu/Kinetic4RPiZero/releases/download/v_2017-10-15/rpi-zerow-kinetic_1.0.0-1_armhf.zip
unzip rpi-zerow-kinetic_1.0.0-1_armhf.zip
sudo gdebi rpi-zerow-kinetic_1.0.0-1_armhf.deb
sudo /opt/ros/kinetic/initialize.sh
@Tiryoh
Tiryoh / unity_hub_install_ubuntu.sh
Last active August 31, 2023 02:19
install Unity Hub on Ubuntu
#!/usr/bin/env bash
set -eu
# Unity Hub install script
# Tested Version: Ubuntu 20.04 + Unity Hub 3.4.1
#
# (C) 2023 Daisuke Sato
# Released under the MIT License
# https://tiryoh.mit-license.org/2023
@Tiryoh
Tiryoh / chrome-vscode-install.sh
Created June 10, 2023 13:31
Google Corme + VSCode install script
#!/usr/bin/env bash
set -eu
# Google Corme + VSCode install script
# Tested Version: Ubuntu 22.04
#
# (C) 2023 Daisuke Sato
# Released under the MIT License
# https://tiryoh.mit-license.org/2023
@Tiryoh
Tiryoh / JetsonNano.md
Last active April 20, 2023 03:35
JetsonNano configuration note
@Tiryoh
Tiryoh / mini_pupper_display_ip.service
Last active October 19, 2022 00:42
systemctl service to show IP address on Mini Pupper LCD
[Unit]
Description=Display IP Address on MiniPupper LCD
Requires=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service
[Service]
Type=forking
ExecStart=python3 -c "from MangDang.mini_pupper.display import Display ; disp = Display(); disp.show_ip();"
[Install]
@Tiryoh
Tiryoh / settings.json
Created July 29, 2020 04:52
CS+用VSCodeの設定
{
"files.encoding": "shiftjis",
"C_Cpp.default.defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"_VSCODE"
],
"C_Cpp.default.includePath": [
"${workspaceFolder}/**",