Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / 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 / 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 / set_date.sh
Created August 1, 2016 01:43
Ubuntu date setup
#!/bin/bash
# Check https://raw.githubusercontent.com/Tiryoh/oneliners/master/set_date.sh for new version
sudo date -s "$(curl -s --head http://www.google.co.jp | grep '^Date' | cut -b 7-)"
@Tiryoh
Tiryoh / github_ssh_config
Last active September 22, 2016 05:29
~/.ssh/config
Host github.com
HostName ssh.github.com
Port 443
IdentityFile ~/.ssh/id_rsa
@Tiryoh
Tiryoh / interfaces
Created May 9, 2016 01:17
RaspberryPi2_WiFiConfig
#/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface