update npm packages to latest versions
I was doing some housekeeping on a Node.JS project today. Wanted to update all
the dependencies to their latest versions. At first I tried npm update but
come to find out that is ment more for upgrading single packages and not
major versions. In the end after some googling I found
To upgrade the dependencies of a project without installing anything else I ran:
$ npx npm-check-updates -u
It updated the package.json so it must be followed up by a:
$ npm i
Which will install the new packages and update the package-lock.json.
Got a new Macbook Pro with the start of my new job and I love it. Except. It did
not come with and english keyboard. Now every time I try to type the backslash (`)
or tilde (~) instead I get “§” or “±” 😔. Lucky for me there are a bunch of people
with the same issue.
Just moved computers and thus moved my pass store. After importing
my gpg keys, explained in this snippet, I had to trust them in order to stop the annoying
warnings everytime I created a new password.
Recently I was testing an IOS app on my wifes phone. The UI was completly broken.
Turns out she had dark mode enabled. That led me down the path of adding dark mode support to the
app. Which is testable via the Xcode simulator if you know how to enable it.
Working on my Oblastle game today. In an effort to standardize the way I store images for the game in S3 I needed to move all the files with key image-service/images/oblastle/flags/ to /image-service/images/oblastle/flag/.
Here is how I did it:
$ aws s3 mv s3://travisshears.images/image-service/images/oblastle/flags/ s3://travisshears.images/image-service/images/oblastle/flag/ --recursive --profile personal
Where were you –recursive when I was hacking around with
for file * ; do aws s3 cp $file…..
$ aws s3 cp ./ s3://travisshears.images/image-service/images/oblastle/context/ --profile personal --recursive
upload: ./us-ak.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-ak.jpg
upload: ./us-co.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-co.jpg
upload: ./us-ar.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-ar.jpg
upload: ./us-ca.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-ca.jpg
upload: ./us-al.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-al.jpg
upload: ./us-ct.jpg to s3://travisshears.images/image-service/images/oblastle/context/us-ct.jpg
–recursive is an easy win to upload a bunch of files to s3.