2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コンソールログインしたら日本語キーボードで俺のMacはUS配列でコロン(:)が打てなくて死んだ

Last updated at Posted at 2018-07-17

そういう事件がつい最近起きたんです。

コロンを打とうとしても * とか ; とか 7 とか出ちゃって一向に : (コロン) が打てない。悲しいし、URLが作れない。死んだ。

そんなときは printf で解決できました。

$ printf "\x$(printf %x 58)\n"
:

例えば https://example.com/ を curl で叩きたければ

$ curl -I $(printf "https\x$(printf %x 58)//example.com/")

こんな感じで。

無事解決できたので先ほど生き返りました。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?