limnh / journey

Notes and learnings along the way of becoming an engineer
0 stars 1 forks source link

2019-03-11 #17

Open limnh opened 5 years ago

limnh commented 5 years ago

Issues/Questions:

  1. to execute necessary shell script, is scp or ssh more effective?

Solutions:

  1. good questions, IDK. I did some digging on google and asked alvin if there were any pros to using one or the other.

    so by just talking through it, i think its better to just pipe the script to ssh or in a heredoc heredoc is ok for a few lines but gets kinda messy if its larger. i assume your script is longer than a few lines so piping it is better

    • decided to use scp shell.sh ubuntu.json root@$PACKET_IP:/tmp instead of cat shell.sh | ssh root@$PACKET_IP 'bash -'
    • PACKER IS RUNNING IN THE NEWLY PROVISION SERVER
limnh commented 5 years ago

Things that went well last week:

  1. More deliberate about heads down time, honing in on work and cutting down on distractions.
  2. Learned to ask for help more effectively. Barry was working on the Isolation RFC, and I asked for other folks for assistance (Alvin really helped out a lot last week).
  3. I like feeling productive.
  4. Music with no words is great for coding on shit.