Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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}/**",
@Tiryoh
Tiryoh / python3.bat
Last active April 29, 2022 17:46
Windowsでpython3を実行したときにpython.exeを呼び出せるようにする
@echo off
call python.exe %*
cmd /k exit /B %ERRORLEVEL%
@Tiryoh
Tiryoh / robin_nano_cfg.txt
Last active March 25, 2022 15:36
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 / add_target_blank_in_markdown.sh
Created June 15, 2021 15:45
A shell script to add target="_blank" option to link in Markdown text
#!/usr/bin/env bash
set -eu
# (C) 2021 Daisuke Sato
# Released under the MIT License
# https://tiryoh.mit-license.org/2021
SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
# there is no Negative Lookahead in sed