This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list | |
$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/raspi.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get update | |
$ sudo apt-get -y dist-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ touch /Volumes/boot/ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh pi@raspberrypi.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo raspi-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ifconfig | |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
inet 169.254.19.83 netmask 255.255.0.0 broadcast 169.254.255.255 | |
<中略> | |
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
inet 10.253.131.84 netmask 255.255.255.0 broadcast 10.253.131.255 | |
<中略> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get update | |
$ sudo apt-get upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pushing to https://github.com/XXX/XXX.git | |
remote: Invalid username or password. | |
fatal: Authentication failed for 'https://github.com/XXX/XXX.git/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.*; | |
public class Main { | |
public static void main(String[] args) { | |
// 現在日時を取得(エポック時間) | |
Instant i1 = Instant.now(); // -> 2018-09-16T13:24:09.496Z | |
// long -> Instant | |
Instant i2 = Instant.ofEpochMilli(1537104249489L); // -> 2018-09-16T13:24:09.489Z |