Skip to content

Instantly share code, notes, and snippets.

@tomatohammado
Last active June 20, 2019 15:04
Show Gist options
  • Save tomatohammado/7e7c71660abb27372e0ce18f04e82f36 to your computer and use it in GitHub Desktop.
Save tomatohammado/7e7c71660abb27372e0ce18f04e82f36 to your computer and use it in GitHub Desktop.
fresh install, pt3
Last login: Thu Jun 20 09:21:40 on ttys000
monβœ” ~
09:28 $ mongod
2019-06-20T09:28:22.723-0400 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] MongoDB starting : pid=26486 port=27017 dbpath=/data/db 64-bit host=Hammads-MacBook-Air.local
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] db version v4.0.3
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] git version: 7ea530946fa7880364d88c8d8b6026bbc9ffa48c
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] allocator: system
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] modules: none
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] build environment:
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] distarch: x86_64
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] target_arch: x86_64
2019-06-20T09:28:22.739-0400 I CONTROL [initandlisten] options: {}
2019-06-20T09:28:22.740-0400 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3584M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2019-06-20T09:28:23.376-0400 I STORAGE [initandlisten] WiredTiger message [1561037303:376456][26486:0x11cf725c0], txn-recover: Set global recovery timestamp: 0
2019-06-20T09:28:23.400-0400 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten]
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten]
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten]
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten]
2019-06-20T09:28:23.436-0400 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2019-06-20T09:28:23.440-0400 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bf0881a5-e3f2-4466-81f6-20cd37eaf58d
2019-06-20T09:28:23.466-0400 I COMMAND [initandlisten] setting featureCompatibilityVersion to 4.0
2019-06-20T09:28:23.469-0400 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: bc97090b-b883-4ae0-978f-1a9c3040bdca
2019-06-20T09:28:23.499-0400 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2019-06-20T09:28:23.501-0400 I NETWORK [initandlisten] waiting for connections on port 27017
2019-06-20T09:28:23.501-0400 I STORAGE [LogicalSessionCacheRefresh] createCollection: config.system.sessions with generated UUID: f5088ad9-67e1-4c29-a21c-80e609a4cd7d
2019-06-20T09:28:23.553-0400 I INDEX [LogicalSessionCacheRefresh] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 }
2019-06-20T09:28:23.553-0400 I INDEX [LogicalSessionCacheRefresh] building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-06-20T09:28:23.558-0400 I INDEX [LogicalSessionCacheRefresh] build index done. scanned 0 total records. 0 secs
2019-06-20T09:28:37.736-0400 I NETWORK [listener] connection accepted from 127.0.0.1:50385 #1 (1 connection now open)
2019-06-20T09:28:37.737-0400 I NETWORK [conn1] received client metadata from 127.0.0.1:50385 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.3" }, os: { type: "Darwin", name: "Mac OS X", architecture: "x86_64", version: "18.6.0" } }
2019-06-20T09:28:42.462-0400 I NETWORK [conn1] end connection 127.0.0.1:50385 (0 connections now open)
^C2019-06-20T09:30:49.564-0400 I CONTROL [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends
2019-06-20T09:30:49.564-0400 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets...
2019-06-20T09:30:49.564-0400 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2019-06-20T09:30:49.566-0400 I CONTROL [signalProcessingThread] Shutting down free monitoring
2019-06-20T09:30:49.566-0400 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
2019-06-20T09:30:49.568-0400 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
2019-06-20T09:30:49.684-0400 I STORAGE [signalProcessingThread] shutdown: removing fs lock...
2019-06-20T09:30:49.685-0400 I CONTROL [signalProcessingThread] now exiting
2019-06-20T09:30:49.685-0400 I CONTROL [signalProcessingThread] shutting down with code:0
βœ” ~
09:30 $ brew tap heroku/brew && brew install heroku
==> Tapping heroku/brew
Cloning into '/usr/local/Homebrew/Library/Taps/heroku/homebrew-brew'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 10 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Tapped 2 formulae (38 files, 28.6KB).
==> Installing heroku from heroku/brew
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-11.14.0.tar.xz
######################################################################## 100.0%
🍺 /usr/local/Cellar/heroku-node/11.14.0: 3 files, 40MB, built in 4 seconds
==> Installing heroku/brew/heroku
==> Downloading https://cli-assets.heroku.com/heroku-v7.25.0/heroku-v7.25.0.tar.
######################################################################## 100.0%
==> Caveats
To use the Heroku CLI's autocomplete --
Via homebrew's shell completion:
1) Follow homebrew's install instructions https://docs.brew.sh/Shell-Completion
NOTE: For zsh, as the instructions mention, be sure compinit is autoloaded
and called, either explicitly or via a framework like oh-my-zsh.
2) Then run
$ heroku autocomplete --refresh-cache
OR
Use our standalone setup:
1) Run and follow the install steps:
$ heroku autocomplete
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/heroku/7.25.0: 17,849 files, 45.8MB, built in 31 seconds
==> Caveats
==> heroku
To use the Heroku CLI's autocomplete --
Via homebrew's shell completion:
1) Follow homebrew's install instructions https://docs.brew.sh/Shell-Completion
NOTE: For zsh, as the instructions mention, be sure compinit is autoloaded
and called, either explicitly or via a framework like oh-my-zsh.
2) Then run
$ heroku autocomplete --refresh-cache
OR
Use our standalone setup:
1) Run and follow the install steps:
$ heroku autocomplete
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
βœ” ~
09:34 $ heroku -v
heroku/7.25.0 darwin-x64 node-v11.14.0
βœ” ~
09:34 $ brew install libpq
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Downloading https://homebrew.bintray.com/bottles/libpq-11.3.mojave.bottle.ta
==> Downloading from https://akamai.bintray.com/46/464e74593da2d7b8c9375d74346e7
######################################################################## 100.0%
==> Pouring libpq-11.3.mojave.bottle.tar.gz
==> Caveats
libpq is keg-only, which means it was not symlinked into /usr/local,
because conflicts with postgres formula.
If you need to have libpq first in your PATH run:
echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile
For compilers to find libpq you may need to set:
export LDFLAGS="-L/usr/local/opt/libpq/lib"
export CPPFLAGS="-I/usr/local/opt/libpq/include"
For pkg-config to find libpq you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/libpq/lib/pkgconfig"
==> Summary
🍺 /usr/local/Cellar/libpq/11.3: 2,205 files, 22.4MB
βœ” ~
09:35 $ brew cask install postman spectacle
==> Satisfying dependencies
==> Downloading https://dl.pstmn.io/download/version/7.2.2/osx64
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'postman'.
==> Installing Cask postman
==> Moving App 'Postman.app' to '/Applications/Postman.app'.
🍺 postman was successfully installed!
==> Satisfying dependencies
==> Downloading https://spectacle.s3.amazonaws.com/downloads/Spectacle+1.2.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'spectacle'.
==> Installing Cask spectacle
==> Moving App 'Spectacle.app' to '/Applications/Spectacle.app'.
🍺 spectacle was successfully installed!
βœ” ~
09:36 $ brew cask install google-chrome slack
==> Satisfying dependencies
==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'google-chrome'.
==> Installing Cask google-chrome
==> Moving App 'Google Chrome.app' to '/Applications/Google Chrome.app'.
🍺 google-chrome was successfully installed!
==> Satisfying dependencies
==> Downloading https://downloads.slack-edge.com/mac_releases/Slack-3.4.2-macOS.
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'slack'.
==> Installing Cask slack
==> Moving App 'Slack.app' to '/Applications/Slack.app'.
🍺 slack was successfully installed!
βœ” ~
09:37 $ git config --global user.name Hammad Malik
βœ” ~
09:38 $ git congit --list
git: 'congit' is not a git command. See 'git --help'.
The most similar commands are
commit
config
✘-1 ~
09:38 $ git config --list
credential.helper=osxkeychain
user.name=Hammad
βœ” ~
09:38 $ git config --global user.name "Hammad Malik"
βœ” ~
09:38 $ git config --list
credential.helper=osxkeychain
user.name=Hammad Malik
βœ” ~
09:38 $ git config --global user.email "[email protected]"
βœ” ~
09:39 $ git config --global push.default simple
βœ” ~
09:39 $ git config --global color.ui always
βœ” ~
09:39 $ git config --global color.branch.current 'green reverse'
βœ” ~
09:39 $ git config --global color.branch.local green
βœ” ~
09:39 $ git config --global color.branch.remote yellow
βœ” ~
09:39 $ git config --global color.status.added green
βœ” ~
09:39 $ git config --global color.status.changed yellow
βœ” ~
09:39 $ git config --global color.status.untracked red
βœ” ~
09:39 $ git config --global core.editor 'subl --wait'
βœ” ~
09:39 $ curl -sSL https://raw.git.generalassemb.ly/tomatohammado/installfest/feature/sei31-dry-run/gitignore-global--template -o ~/.gitignore_global
βœ” ~
09:41 $ git config --global core.excludesfile ~/.gitignore_global
βœ” ~
09:41 $ git config --list --global
user.name=Hammad Malik
[email protected]
push.default=simple
color.ui=always
color.branch.current=green reverse
color.branch.local=green
color.branch.remote=yellow
color.status.added=green
color.status.changed=yellow
color.status.untracked=red
core.editor=subl --wait
core.excludesfile=/Users/hammad/.gitignore_global
βœ” ~
09:41 $ ls -al ~/.ssh
ls: /Users/hammad/.ssh: No such file or directory
✘-1 ~
09:47 $ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/hammad/.ssh/id_rsa):
Created directory '/Users/hammad/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/hammad/.ssh/id_rsa.
Your public key has been saved in /Users/hammad/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:acBIXG8XX5IyuPMKHpMHJ5favNE8/OHE0hoDwT3nA/E [email protected]
The key's randomart image is:
+---[RSA 4096]----+
| ..... oo.... |
| ..o .+ *+oo |
| . o o+.BE |
| ooBo o |
| XSB o . |
| *.= X = |
| . = + X . |
| . o . o |
| |
+----[SHA256]-----+
βœ” ~
09:58 $ eval "$(ssh-agent -s)"
Agent pid 30609
βœ” ~
10:16 $ ssh-add ~/.ssh/id_rsa
Identity added: /Users/hammad/.ssh/id_rsa ([email protected])
βœ” ~
10:16 $ eval "$(ssh-agent -s)"
Agent pid 30648
βœ” ~
10:18 $ pbcopy < ~/.ssh/id_rsa.pub
βœ” ~
10:22 $ pbcopy < ~/.ssh/id_rsa.pub
βœ” ~
10:23 $ ssh -T [email protected]
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Hi tomatohammado! You've successfully authenticated, but GitHub does not provide shell access.
✘-1 ~
10:34 $ ssh -T [email protected]
Hi tomatohammado! You've successfully authenticated, but GitHub does not provide shell access.
✘-1 ~
10:35 $ ssh -T [email protected]
The authenticity of host 'git.generalassemb.ly (54.204.15.65)' can't be established.
ECDSA key fingerprint is SHA256:pVAJYAd8Ha3GE27Huoeth4S4d/8mal7vLVcd1LUePJQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.generalassemb.ly,54.204.15.65' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
✘-255 ~
10:35 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment