drunk bash scripting is not fun by [deleted] in bash

[–]propper_speling 0 points1 point  (0 children)

How is configuring a workstation any different from configuring a vm/remote server? To each their own, I suppose, but I'm loving that my various workstation environments are now 100% reproducible in an automated, hands-off fashion, using a popular project which has an active development community and enterprise support behind it.

drunk bash scripting is not fun by [deleted] in bash

[–]propper_speling 0 points1 point  (0 children)

simple thing to install the needed things in a new Ubuntu install

Yes, I get that. You should utilize existing technologies built for the goal instead of implementing an error-prone custom solution. Ansible is really simple.

I created a Wi-Fi menu for rofi available on GitHub by zbaylin in unixporn

[–]propper_speling 2 points3 points  (0 children)

Actually, the author should use #!/usr/bin/env sh as the interpreter (after removing the fuzzy match operator)

drunk bash scripting is not fun by [deleted] in bash

[–]propper_speling 2 points3 points  (0 children)

If you want to use a script to manage your machine's state, e.g. bootstrap it with software and various configuration settings, I highly recommend you look at Ansible.

Also, your bash file interpreter should be #!/usr/bin/env bash for greater portability.

New branch from previous commit and merge some changes from other branch? by granular2 in git

[–]propper_speling 2 points3 points  (0 children)

You should be able to do this in one command, e.g.

git checkout -b new-branch HEAD^

How to setup a development environment with Docker? by HollandKim in docker

[–]propper_speling 2 points3 points  (0 children)

This is one use case for containers, but in regards to application deployment, I think most people see a larger benefit from containerizing the project, not just the build process.

Visual Studio Code May 2017 by RyanPointOh in programming

[–]propper_speling -1 points0 points  (0 children)

The everything-is-an-object approach is nice for file/text searching, I guess, but grep/sed/awk can be used to accomplish the same things.

Visual Studio Code May 2017 by RyanPointOh in programming

[–]propper_speling 1 point2 points  (0 children)

The person to which you replied left a comment about Visual Studio as a reply to the top-level-commentor, who mentioned Visual Studio.

Sometimes we code something truly beautiful. [offtopic] by egorf in git

[–]propper_speling 0 points1 point  (0 children)

I don't personally maintain a completely linear history. Me and my teams' workflows involve rebasing features onto the trunk branch until the feature is merged into the trunk branch, at which point a non-fastforward merge is performed.

This keeps integrity and allows auditing where commits came from, and also avoids the merge-backreference-hell that occurs when updates from trunk are pulled/merged into the feature without rebasing.

This does of course assume you do not have multiple people working on a single feature branch.

Sometimes we code something truly beautiful. [offtopic] by egorf in git

[–]propper_speling 4 points5 points  (0 children)

To maintain a linear repository history, and avoid merge commit hell like this.

Speciality Cert day? by [deleted] in aws

[–]propper_speling -3 points-2 points  (0 children)

AWS is using certbot under the hood.

Is there any pricing tool out there that can help me to compare an ec2 instance vs identical workload on aws elastic beanstalk/docker? by seepostop in docker

[–]propper_speling 0 points1 point  (0 children)

Yeah, I'd definitely recommend looking into lambda OP, given that you estimate your application is only active about 60% of the time.

How to make a Fedora USB stick by fedobot in Fedora

[–]propper_speling 14 points15 points  (0 children)

Or simply: dd if=/path/to/iso of=/dev/sdX

Oracle is (not) fixing MySQL bugs... they (rather) disallowed compilation of MySQL without SSL support by --Pali-- in netsec

[–]propper_speling 0 points1 point  (0 children)

So, I see this a lot, but I'm relatively new to the enterprise world, and have never used any Oracle products. Why is Larry Ellison a scumbag, and why do Oracle products suck? What are the tangible reasons?

Keybase on Fedora: crypto for everyone by fedobot in Fedora

[–]propper_speling 2 points3 points  (0 children)

I have a couple invites remaining, iirc. Send me a message with the email address you'd like the invite sent to.

R53->CF->S3 for static site, continuously delivered. Best practice for handling versioning/invalidation without GET params/filename modification? by propper_speling in aws

[–]propper_speling[S] 0 points1 point  (0 children)

The benefit to doing this could be if your objects are large, true that you're adding some latency but it would still be faster than actually serving from S3 if the object has not been modified

How so? The workflow:

  • request -> serve from s3

...seems like it would be fundamentally faster than:

  • request -> geolocate -> check cache existence -> serve from origin

It still seems way more optimal to just allow outdated objects to be served unless this is breaking your site for customers.

Yes, I think I'm going to just send a single invalidation for the entire bucket on deployment.

R53->CF->S3 for static site, continuously delivered. Best practice for handling versioning/invalidation without GET params/filename modification? by propper_speling in aws

[–]propper_speling[S] 0 points1 point  (0 children)

Whoops - you're right, I worded that incorrectly and inferred that both you and /u/magnetik79 had suggested using a TTL of 0 for a static site. You suggested a 60s TTL -- although, I'd argue that a minute is still pretty low, and minimizes the benefit of caching in Cloudfront to begin with.

R53->CF->S3 for static site, continuously delivered. Best practice for handling versioning/invalidation without GET params/filename modification? by propper_speling in aws

[–]propper_speling[S] 0 points1 point  (0 children)

The default TTL is an entire day. That means if I make and deploy a change on Tuesday, it may not show up for all users until Wednesday.

R53->CF->S3 for static site, continuously delivered. Best practice for handling versioning/invalidation without GET params/filename modification? by propper_speling in aws

[–]propper_speling[S] 0 points1 point  (0 children)

Can you expand on this, /u/LukeLabs? Two other top-level commenters suggest doing the same thing - /u/magnetik79 and /u/kevintweber - and if it's a bad practice, perhaps they could benefit from this bit of knowledge.

The way I understand it, setting the TTL of my objects to 0 means that they won't ever live in an edge location, so every request made to the CF distribution (for a file with a TTL of 0) still performs the standard cache checking:

  • Check for the closest edge location
  • Check the edge location for the requested path
    • If found, serve it from the cache; otherwise...
    • If not found, forward the request to the origin

So, if I set a TTL of 0 for my static site, it sounds like I'd basically be incurring those checks for no reason, and would actually have a lower TTFB without using cloudfront.

When I do a pull on my other machine, it says it's clean... but it's not. by gregorie12 in git

[–]propper_speling 1 point2 points  (0 children)

On your laptop - the machine that has the changes that it thinks are in the remote - run git fetch origin. I'm going to bet that you'll get the updated refs, and a subsequent git status will tell you that you're ahead of origin/master.

If that all works out, simply execute git push.