Operation Misc
Operation Misc
コマンドソースコード取得
$ rpm -qf /usr/sbin/sshd
openssh-server-6.6.1p1-33.66.amzn1.x86_64
$ yumdownloader --source openssh-server
$ rpm2cpio openssh-7.4p1-16.71.amzn1.src.rpm | cpio -id
$ tar xf openssh-7.4p1.tar.gz
$ cd openssh-7.4p1$ sudo yum list git --show-duplicate
読み込んだプラグイン:priorities, update-motd, upgrade-helper
Repository packages-microsoft-com-prod is listed more than once in the configuration
1126 packages excluded due to repository priority protections
インストール済みパッケージ
git.x86_64 2.14.6-1.62.amzn1 @amzn-updates
利用可能なパッケージ
git.x86_64 2.13.6-2.56.amzn1 amzn-main
git.x86_64 2.14.4-2.58.amzn1 amzn-updates
git.x86_64 2.14.5-1.59.amzn1 amzn-updates
git.x86_64 2.14.5-1.60.amzn1 amzn-updates
git.x86_64 2.14.6-1.61.amzn1 amzn-updates
git.x86_64 2.14.6-1.62.amzn1 amzn-updates
$ yumdownloader --source git-2.14.6-1.62.amzn1
$ rpm -ih git-2.14.6-1.62.amzn1.src.rpm
$ tar xfJ rpmbuild/SOURCES/git-2.14.5.tar.xz 帯域測定
インストール(Amazon Linux AMI)
測定
Reference
OpenSSL
OpenSSL で自己署名証明書作成
Reference
RHEL
サブスクリプション更新
Squid
Squid で Forward Proxy 構築(デフォルトで Private IP アドレスレンジからはつながる)
Squid で Forward Proxy 構築(BASIC 認証必須)
HHKB
Error
サーバに秘密鍵を置かないでデプロイ
解決策
Eclipse
エラー: メイン・クラスcom.leetcode.problem.p1.P1が見つからなかったかロードできませんでした
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/leetcode/problem/p1/P1 has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Eclipse が起動しない
Debian のコンテナで apt-get install -y vim すると、E: Unable to locate package vim
Vim
補完が利かない
VSCode
ターミナルからファイルを開く
Topic
Docker
Get started
Docker イメージを作るコツ
Docker: ERROR: for app No such image: sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DockerでIPアドレス出力
DockerでNode.js
docker pull php:5.6-apache でフリーズする問題
client is newer than server
Docker composeの設定
Dockerでマウントしたファイルの権限が問題になった時
DockerでPHPモジュールのインストールが詰まった
Vagrant
default: Warning: Authentication failure. Retrying...でvagrant upしない
参考
iOS
pod set upができない
Tips
JSONデータ抜き出し
IPアドレス分析
Brewfile 自動生成
パブリックIP取得
Android どの程度@NonNull,例外をつけるか
スーパーユーザーから別のユーザーにログインできない
scp -i <秘密鍵>でNot a directoryが出るエラー
インフラエンジニアとしてよく使うコマンド集
historyコマンドをlessコマンドで遡る
秘密鍵の情報変更
vimでPHPのLintツールの導入(PSR-2)
NeoBundleのインストール
プラグインの有効化
PHP 設定確認
参考
SSHでホストが変わった時の接続
MacにNode.jsを入れる
UbuntuでNode.jsを最新版にする(v.6.2.2)
GitHubにSSH
ssh-addでエラーが出る
パス設定
git管理下からレポジトリ外で.gitignore管理
Network
iOS
iOS: Unknown error calling sqlite3_step (11: database disk image is malformed) eu
Unknown error calling sqlite3_step (11: database disk image is malformed) euiOS: TableViewとCustomセルの実装
iOS: タブバーの実装
iOS: Code Sign error : Command /usr/bin/codesign failed with exit code 1が出た時の対処
Code Sign error : Command /usr/bin/codesign failed with exit code 1が出た時の対処iOS: Bridging HeaderからObjective-Cファイルが読み込めない
XCTestでUse of undeclared type 'Todo' does not have a member named 'todo'のエラーが出てたときの対処
Use of undeclared type 'Todo' does not have a member named 'todo'のエラーが出てたときの対処Apache Spark
AWS
CodeCommitで突然403
DynamoDBローカル インストール
JSからS3に直接画像のアップロード
利用料金をSlackに毎日通知
参考
AWSシークレットキーをcommitするのを防止
Basic認証下のHealth checkが401が返る
参考
Lambdaでzipでアップロードするときの注意点
確認方法
依存ライブラリの管理方法
AWS EC2でELB配下のどれか1台でのみ実行
参考
S3 バケット容量 確認(2通り)
Last updated