2023年2月17日 星期五

東京鰻魚飯

 

東京鰻魚飯


搭了飛機,進了地鐵,坐了公車,再徒步;為了鰻魚飯國外旅行真的很努力
找到了店家,因為是周日,所以只有外帶餐盒,沒有內用的便當。
怎麼辦,日本的路上沒有人邊走邊吃,更沒有在馬路上吃便當的
難到要買了外帶便當,拿回飯店吃(來回應該要三個小時)
下午還要去星巴克 旗艦店(沒錯,就是東京中目黑的星巴克 烘焙工坊)

還好老闆娘出來解釋,由於周日沒有開放店內使用(馬路斜對面的小屋)
但是,她看我們是遠方特地來的客戶,特例給我們店內用餐
只是沒有辦法提供飲料、和其他服務,要我們自助
(想說 原本就是自助旅行,再來個自行用餐也行)



星巴克 烘焙工坊








2022年4月18日 星期一

名句一

健康可以使工作成為一種樂趣

耐力可以實蹕心中理想的藍圖

仁慈可以包容周遭一切的缺失

希望可以去除未知事物的恐懼

懺悔可以洗滌身口意念的罪過

思想可以躍出種種事俗的牢籠

豁達可以擺脫悶悶不樂的情緒

自信可以決定理想人生的目標

2018年7月24日 星期二

bash: cannot create temp file for here-document: No space left on device

於終端機上按tab (auto-complete)出現下列錯誤:
bash: cannot create temp file for here-document: No space left on device

[root@localhost bin]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   44G   44G   20K 100% /
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    3.9G  420M  3.5G  11% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1               1014M  226M  789M  23% /boot
tmpfs                    783M   12K  783M   1% /run/user/42
tmpfs                    783M     0  783M   0% /run/user/0
tmpfs                    783M     0  783M   0% /run/user/1000

HDD滿載了

ANS:

1.使用命令df -h 檢查磁碟狀況

2.使用命令du -h --max-depth=1 /var/log/* 檢查/var/log下檔案的大小

3.使用命令du -sh /* 一層一層檢查檔案大小

2018年3月31日 星期六

Linux using proxy


====CentOS yum using proxy====
#vi /etc/yum.conf
proxy http://proxy-server-ip:port

====Ubuntu 16.04 apt using proxy====
#vi /etc/apt/apt.conf
Acquire::http::Proxy "http://proxy-server-ip::8080";


====git using proxy====
git config http.proxy http://proxy.server:port
git config http.proxy http://myusername:mypassword@proxy.server:port

git config --global http.proxy http://proxy.server:port

====wget using proxy====
~/.wgetrc
use_proxy = on
http_proxy =  http://username:password@proxy.server.address:port/
https_proxy =  http://username:password@proxy.server.address:port/

ftp_proxy =  http://username:password@proxy.server.address:port/

2018年3月30日 星期五

Check PowerShell version

PS E:\> get-host


Name             : ConsoleHost
Version          : 5.1.14393.1944
InstanceId       : 0a7a283a-5bed-4c0a-8853-3517117e5814
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace


PS E:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.1944
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.1944
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS E:\> $host.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  1944


PS E:\> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  1944

2018年3月26日 星期一

Get IP Address at CentOS 7


ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/'

ip -f inet a show eth0| grep inet| awk '{ print $2}' | cut -d/ -f1

2016年10月13日 星期四

Linux Shell Trouble Shooting Command


檢查的磁碟使用狀態

[linux@bash ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.8G  5.7G  2.1G  74% /
devtmpfs        3.7G   68K  3.7G   1% /dev
tmpfs           3.7G  4.0K  3.7G   1% /dev/shm
/dev/xvda2       22G  2.5G   18G  13% /mnt/hd00
/dev/xvdf        99G   29G   65G  31% /mnt/hd01

[linux@bash ~]$


[linux@bash /]$du -hx --max-depth=1
51M ./boot
4.0K ./selinux
3.9M ./opt
36K ./run
12M ./sbin
403M ./webserver
11M ./etc
22M ./lib64
4.0K ./srv
310M ./home
152K ./tmp
8.7M ./bin
122M ./lib
1.9G ./var
2.5G ./usr
4.0K ./local
4.0K ./media
4.0K ./mnt
405M ./root
16K ./lost+found
5.7G .
[linux@bash /]$ 

sort -g 來排序
$du --max-depth=1 -B M | sort -g