Skip to content

Instantly share code, notes, and snippets.

View donchan922's full-sized avatar
🐶
I'm fine.

donchan922 donchan922

🐶
I'm fine.
View GitHub Profile
$ 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
$ sudo apt-get update
$ sudo apt-get -y dist-upgrade
$ touch /Volumes/boot/ssh
$ ssh pi@raspberrypi.local
pi@raspberrypi:~ $
$ sudo raspi-config
$ 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
<中略>
$ sudo apt-get update
$ sudo apt-get upgrade
Pushing to https://github.com/XXX/XXX.git
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/XXX/XXX.git/'
@donchan922
donchan922 / Main.java
Last active September 16, 2018 13:56
Use of Instant class for java 8
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