Skip to content

Instantly share code, notes, and snippets.

View henrich's full-sized avatar
💭
I may be slow to respond due to private reason

Hideki Yamane henrich

💭
I may be slow to respond due to private reason
View GitHub Profile
@henrich
henrich / gist:94afaf07d43e80da90d027a42d05d54b
Last active April 16, 2023 01:01
何故かNASの管理画面にアクセスできない謎
デスクトップPCのDebian sidのブラウザからNASの管理画面にアクセスできなくなった。
NASはSynologyを使っていて、SynologyのDDNSサービスを使って https://xxxx.synology.me:5001/ という形でアクセスができる。
xxxx.synology.meが指す先は今現在インターネット接続に利用しているパブリックIPアドレス。
* ブラウザはlynxやw3mなど別のブラウザを使っても挙動は同じ(なのでブラウザ起因の挙動ではないはず)
* 名前解決は問題なくできている(DNSの問題は除外できるはず)
* 同じPCから2ヶ月ほど前にはNASの管理画面に問題なくアクセスできていた。
- 古いカーネルにしたりしたら動作しないかなーと思ったが、挙動は変わらなかった(少なくともカーネルバージョンではない)
* 同じPCでDualブートしているWindows10からはNASの管理画面にアクセスできる(ハードウェア起因の問題ではない)
$ sudo LANG=C apt update
Hit:1 https://aquasecurity.github.io/trivy-repo/deb buster InRelease
Hit:2 http://debian-mirror.sakura.ne.jp/debian bullseye InRelease
Hit:3 https://repo.skype.com/deb stable InRelease
Hit:4 http://debian-mirror.sakura.ne.jp/debian sid InRelease
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://packages.microsoft.com/repos/edge stable InRelease
Hit:7 http://security.debian.org/debian-security bullseye-security InRelease
Hit:8 http://deb.debian.
henrich@tiny:~ $ time docker run --rm -it -d debian:buster-slim /bin/bash
4b8de253954a105a5d6982024ab1ef404ff03f06b24736c4b9490d495dbea21e
real 0m0.736s
user 0m0.030s
sys 0m0.025s
henrich@tiny:~ $ sudo mv /etc/docker/
daemon.json.bak key.json
henrich@tiny:~ $ sudo mv /etc/docker/daemon.json.bak /etc/docker/daemon.json
henrich@tiny:~ $ sudo systemctl daemon-reload
-------------------------------------------------------------------------------
2705 tests, 10932 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
-------------------------------------------------------------------------------
3.13 tests/s, 12.67 assertions/s
rake aborted!
-rw-r--r-- 1 root root 33102821 3月 8 08:04 initrd.img-4.19.0-3-amd64
-rw-r--r-- 1 root root 5213472 2月 12 01:55 vmlinuz-4.19.0-3-amd64
-rw-r--r-- 1 root root 33102821 3月 8 08:04 initrd.img-4.19.0-3-amd64
-rw-r--r-- 1 root root 5213472 2月 12 01:55 vmlinuz-4.19.0-3-amd64
@henrich
henrich / gist:97c5dda6f818a8b49279346d24b8cfb3
Created March 8, 2019 05:48
translate architecture name
diff --git a/debootstrap b/debootstrap
index bc5e522..b17bc8b 100755
--- a/debootstrap
+++ b/debootstrap
@@ -234,6 +234,23 @@ if [ $# != 0 ] ; then
else
error 1 NEEDARG "option requires an argument %s" "$1"
fi
+
+ case "$ARCH" in
@henrich
henrich / gist:859bd98820bdd175f61a9125f80db840
Created March 2, 2019 13:21
funny changelog date for Google Chrome deb package
google-chrome-stable (72.0.3626.121-1) stable; urgency=low
* Build spec: https://chromium.googlesource.com/chromium/src.git/+/72.0.3626.121/
* Release Notes:
http://googlechromereleases.blogspot.com/search/label/Stable%20updat
es
-- Chrome Linux Team <chromium-dev@chromium.org> Tue, 03 Feb 2009 14:54:35 -0800
google-chrome-unstable (74.0.3717.0-1) unstable; urgency=low
From 9790b28ec589485ebb450344d66cfae1bd19dcde Mon Sep 17 00:00:00 2001
From: Hideki Yamane <henrich@debian.org>
Date: Thu, 5 Jul 2018 17:06:25 +0900
Subject: [PATCH] Add docker support (Closes: #890867)
---
functions | 4 +++-
scripts/aequorea | 4 ++--
scripts/debian-common | 4 ++--
scripts/edgy | 4 ++--
From 5cbe6582a3976c32b10b9d0114d5d8e970260fc2 Mon Sep 17 00:00:00 2001
From: Hideki Yamane <henrich@debian.org>
Date: Thu, 5 Jul 2018 11:25:17 +0900
Subject: [PATCH 1/2] improve related to container
---
debootstrap | 6 ++++--
functions | 58 ++++++++++++++++++++++++++---------------------------
2 files changed, 32 insertions(+), 32 deletions(-)