SREとはのブログ

日々の作業メモ

kubernetes-cli インストール失敗? 

メモ > [23:02:56] tm@tm-22 /Users/tm (0) > brew install kubernetes-cli Updating Homebrew... ==> Auto-updated Homebrew! Updated 3 taps (homebrew/core, homebrew/cask and caskroom/fonts). ==> New Formulae mmctl wasmer ==> Updated Formulae ghq…

MAC Chrome Google drive このWebページ表示中に問題が発生しました。

GoogleDriveを使っていると1〜2分ごとに 「このWebページ表示中に問題が発生しました。」 になる。 ChromeのUpgradeはChromeの右上に出てなかったので アンインストールするかなーと思ったのですが brewで入れていたため brew cask upgrade google-chrome …

finder隠しファイル表示

sshとか.bash_profileとか表示 # 隠しファイルを表示 $ defaults write com.apple.finder AppleShowAllFiles TRUE # Finderを再起動する $ killall Finder qiita.com

brew cask install clip

クリップボード用 brew cask install clip なぜかこのエラー curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 curl: (22) The requested URL returned error: 403 Forbidden Error: Download failed on Cask 'clipy' with message: Download fai…

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib? Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems BUILD FAILED (OS X 10.14.6 using python-build 20180424…

pipが消えた

pip install --upgrade pip うつと pipが消えた [ 21:26:11 ] ➜ pip install --upgrade pip DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date…

pyenvのインストール

qiita.com

ping fish 色

brew install grc ~/.config/fish/config.fish source /usr/local/etc/grc.fish これやると export CLICOLOR=1 export LSCOLORS="GxFxCxDxBxegedabagaced" とかで ls(ll)のフォルダの色を変更していた場合 にフォルダの色がつかなくなるので 下記からlsを外…

hub browse

brew install hub nishinatoshiharu.com

fishのpecoこっちじゃないと動かない

こっちで動く teratail.com こっちはなぜか動かない 【Mac】fish + fisher + peco + fzfで快適なターミナル環境を構築 | Public Constructor これもちょっと違うのかな qiita.com

vim 範囲

範囲指定すぐ忘れるので japanrock-pg.hatenablog.com 前に#挿入 ctrl+V ビジュアルモード ctrl+G 一番下まで ctrl+I 頭編集 # esc 後ろに#挿入 ctrl+V ビジュアルモード ctrl+G 一番下まで shift+$ 後ろ全部 ctrl+A 最後のあため # esc

tmux-powerline の weatherは使えない

tmux-powerline を入れると note.com No weather location specified 質問 blog.adachin.me export TMUX_POWERLINE_SEG_WEATHER_LOCATION="26237038" と適当に入れておくと表示はされなくなる github.com 修正されているのがこれ github.com

ghq+peco

qiita.com

powerline プロンプトTime変更

choco-late3.hatenablog.com vim ~/.powerline-shell.json { "segments": [ "virtual_env", "ssh", "time", "git", "hg", "jobs", "root" ] }

bashrc再読み込み

source ~/.bashrc

fish git completions

fish git completions blog.lorentzca.me

docker run 中身

このサイトがわかりやすかった noumenon-th.net

docker completion

fishだとこのサイトがいいかも gist.github.com fishこれも qiita.com bashはこれ docs.docker.com

while read line

1行ずつマッチするか検索 shell lanchesters.site #!/bin/bash while read line do grep -m1 $line /Users/****/Downloads/g***.csv done < ./list.txt list.xtx aaaa bbbb cccc

Interface NAMEを DEVICEと合わせる

これやらないと nmcli connection modify ens** -ipv4.routes "" に日本語いれないといけなくなる nmcli c m "有線接続 1" connection.id "インターフェース" NAMEを DEVICEと合わせる nmcli c sNAME UUID TYPE DEVICE

CentOS Linux release 7.6.1810 (Core) DNAT SNAT

DNAT,SNAT staticRoute https://qiita.com/Morihaya/items/293ba49f97e7a46fa760 iptable転送 https://sky-joker.tech/2018/11/25/linux%E3%81%AEiptables%E3%81%A6%E3%82%99dnat%E3%81%99%E3%82%8B%E3%83%A1%E3%83%A2/ Iptableinstall https://qiita.com/mi…

キー権限変更

chmod 0600 ~/.ssh/ The authenticity of host can't be established.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added (RSA) to the list of known hosts.Welcome to VyOS@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…

rpm -e --justdb

# rpm -e --justdb パッケージ名 パッケージのデータベース情報を「削除」する場合

bash-completion MAC bash 保管

http://sig9.hatenablog.com/entry/2016/06/19/003000 種類 heartbeats.jp

github別PC

https://qrunch.net/@keikuchen/entries/suAWjESgk5fugAce

brew install grc Ping色

fhiyo.github.io -s "/usr/local/etc/grc.bashrc" && source /usr/local/etc/grc.bashrc

iterm2 Bell

アラートが出るからこれをやろうとしたが なぜか出なくなった。。 tech.withsin.net

dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib

http://sugilog.hatenablog.com/entry/2019/08/09/081551

brew cask install hyperswitch

brew cask install hyperswitchUpdating Homebrew...==> Auto-updated Homebrew!Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask).==> New Formulaealp gleam pnetcdfappium libtensorflow@1 wagyudafny mysql-connector-c++@1.1=…

VIMコピー

$をよく忘れる japanrock-pg.hatenablog.com