Skip to content

Instantly share code, notes, and snippets.

@mogproject
Created February 15, 2015 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogproject/fe57a6b1e053815bc2f6 to your computer and use it in GitHub Desktop.
Save mogproject/fe57a6b1e053815bc2f6 to your computer and use it in GitHub Desktop.
Mac Cheat Sheet

Mac Cheat Sheet

  • ランダムなパスワードの生成
$ brew install pwgen
$ pwgen -s 32 1
5IhJe8rhdG9fJCsq1tVBQWUJjIjCCMWe
### 32文字のセキュアな文字列を一個生成/シンボルを含めたい場合は -y オプション
  • パスワード付きzipファイルの作成
$ zip -e foo.zip foo.txt
Enter password:
Verify password:
  adding: foo.txt (deflated 9%)
$ zip -e -r bar.zip bar/
### フォルダごと圧縮
  • Finder/ファイル操作ダイアログで、フルパスを直接入力

Command + Shift + G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment