Skip to content

Instantly share code, notes, and snippets.

How to use the keychain service

// Set a password
security add-generic-password -s shizuku -a rhoboro -p password

// Show the password
security find-generic-password -gs shizuku -w

// Delete the password

Docker

  • ホストのポート80をコンテナの8080にポートフォワードしてコンテナを立ち上げる
docker run -p 80:8080 -p 50000:50000 jenkins
  • 稼働中コンテナでbashを立ち上げ、ログインする
#cloud-config
coreos:
units:
- name: iptables-restore.service
enable: true
write_files:
- path: /var/lib/iptables/rules-save
permissions: 0644
owner: root:root