Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Tiryoh / bitbucket_ssh_config
Created September 22, 2016 05:29
~/.ssh/config
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
IdentityFile ~/.ssh/id_rsa
@Tiryoh
Tiryoh / keybase.md
Last active May 2, 2017 09:58
Kyebase proof

Keybase proof

I hereby claim:

  • I am tiryoh on github.
  • I am tiryoh (https://keybase.io/tiryoh) on keybase.
  • I have a public key ASBl_EtPZXUVALwm_rJtYLWMtNAFVLGKUsZJcreJxxdo5Qo

To claim this, I am signing this object:

@Tiryoh
Tiryoh / raspimouse_sensor_receiver.ipynb
Last active October 4, 2017 15:00
Jupyter Notebook + Robot (getting light sensor status from Raspberry Pi Mouse)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Tiryoh
Tiryoh / raspimouse_sensor_monitor.ipynb
Last active January 25, 2018 02:31
Jupyter Notebook + Robot 2 (getting real time light sensor status from Raspberry Pi Mouse) https://youtu.be/sBr1ngoACnU
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / vim8-local-install.sh
Last active November 7, 2018 11:46
Vim8 local install script
#!/usr/bin/env bash
# This script installs Vim 8.x in to your ~/usr/local/bin
set -eu
mkdir -p ~/usr/local/bin
mkdir -p ~/usr/local/src
cd ~/usr/local/src
git clone https://github.com/vim/vim.git
cd vim
@Tiryoh
Tiryoh / fix_appstream_on_ubuntu16.04.sh
Last active March 2, 2019 12:54
Ubuntu 16.04でapt updateできない不具合に対処するスクリプト https://kledgeb.blogspot.com/2016/05/ubuntu-1604-57.html
#!/usr/bin/env bash
set -eu
[ $(pgrep appstreamcli | wc -l) -gt 0 ] && { echo 'kill process "appstreamcli"'; exit 1; }
mkdir -p /tmp/asfix && cd /tmp/asfix
wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i *.deb
echo 'Probably fixed. Run "apt update".'
@Tiryoh
Tiryoh / log.txt
Created November 26, 2018 16:11
UnixBench Log on UP Board
$ ./Run
make all
make[1]: ディレクトリ '/home/ubuntu/tmp/UnixBench' に入ります
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: ディレクトリ '/home/ubuntu/tmp/UnixBench' から出ます [121/136]
@Tiryoh
Tiryoh / create_2gbswapfile.sh
Last active May 4, 2024 16:22
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 swap swap defaults 0 0" | sudo tee -a /etc/fstab
@Tiryoh
Tiryoh / create_4gbswapfile.sh
Created July 12, 2019 14:41
create 4GB swapfile on Linux
#!/usr/bin/env bash
set -eu
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=4096
sudo mkswap /var/swapfile
sudo chmod 600 /var/swapfile
sudo swapon /var/swapfile
sudo cat /proc/swaps
echo "/var/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab