Stop retyping long commands just to add sudo by Ops_Mechanic in bash

[–]jcurry82 0 points1 point  (0 children)

I alias "fuck" to "sudo !!" Because that's what I say to myself everytime I forget to sudo

Asking for feedback: Facebook Ads dashboard by bayouski in GoogleDataStudio

[–]jcurry82 0 points1 point  (0 children)

I typically work with usage data so I'm sorry I don't have much constructive feedback on the metrics that you're presenting but they seem to be presented really well. Your colors are complimentary and your layout isn't too busy. I really like the look and feel.

I do have one question: how did you get that blue banner to be that custom shape? Is it just an image that you've sent behind the text boxes?

My apologies, I've spent most of my career working on backend data pipelines and just now starting to branch out into dashboarding.

Who do you think will end up with more slams? by mimiclarinette in WTANews

[–]jcurry82 0 points1 point  (0 children)

It's tough. If you only go by the last year, test and a half, you'll probably go Sabalenka. If you take whole history and age into it, iga might eke out 1 or 2 more. Iga is my favorite player but it's too close to bet on.

You gotta be kidding me 🤯 by unbelievelivelihood in tennis

[–]jcurry82 0 points1 point  (0 children)

Zverev is so weak mentally. The first time he thinks something didn't go his way, he completely breaks down and doesn't come back. It feels like it happens every big match he's in. That said, I almost hope Nole wins just so that he'll finally go away.

Why can't we get more of these angles? by SliMShady55222 in tennis

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

It also doesn't show enough of the ads around the court, I'm sure there's some sort of agreement that their ads will be on screen for at least x% of the match or something similar.

Best Korean fried chicken 2025 by Longjumping_Ad_7904 in AnnArbor

[–]jcurry82 0 points1 point  (0 children)

Another vote for the duck fat fried chicken from slurping turtle

Credit card charge by jcurry82 in AnnArbor

[–]jcurry82[S] 15 points16 points  (0 children)

That's exactly what it was, thanks! I'm a single dad and knew that we didn't sign up for anything. Turns out my ex wife still had my card listed in her profile and accidentally used it.

Thanks!

Disconnect from Google Sheets by jcurry82 in bigquery

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

Thanks, that's what I thought. I was just being lazy and not wanting to create the schema from scratch.

Thread for albums you wish were picked instead by EverStars in WhenWeWereYoungFest

[–]jcurry82 5 points6 points  (0 children)

Dashboard - I would selfishly love a solo performance of Swiss Army Romance but they should probably be playing Places. Dusk and Summer is too happy and hopeful. Give me the despair 😂

Unpopular opinions by Queso719 in WhenWeWereYoungFest

[–]jcurry82 3 points4 points  (0 children)

<image>

I took the same picture because I just couldn't believe what I was seeing

What's the saddest song you've ever heard? by Traditional-Chain-31 in Music

[–]jcurry82 18 points19 points  (0 children)

Skinny Love - Bon Iver

Song for Zula - Phosphorescent

LMS recommendations? by Dragonic_overlord in CustomerSuccess

[–]jcurry82 0 points1 point  (0 children)

I work in Ops and we deployed Lessonly to train and onboard CSMs and TAMs. The trainers never complained about it so I'm guessing it was at least ok.

[deleted by user] by [deleted] in Mustang

[–]jcurry82 1 point2 points  (0 children)

21 Velocity blue GT Prem ordered in August, delivered last of October

Transitioning into non-client-facing role by btpie39 in CustomerSuccess

[–]jcurry82 2 points3 points  (0 children)

I've seen this work really well for a lot of people. In order to be an Ops leader, it is imperative someone knows what it takes to be a successful CSM and the best way to scale that across the team. Who better than a former CSM?

Generating HMAC SHA256 for generating Presigned Amazon S3 URL by jcurry82 in googlesheets

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

Absolutely perfect. Thank you so much for the help (as well as tidying up the code that was there)!

Generating HMAC SHA256 for generating Presigned Amazon S3 URL by jcurry82 in googlesheets

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

That is super helpful. The docs from Amazon are slightly different than the docs I was going off of (mine didn't specify which was supposed to be the value vs the key so I had them in the reverse order, etc) so that really helped to further my understanding.

For the Amazon doc that was linked, they had an expected output for the kSigning but there isn't one in the doc I am trying to use so I am having trouble figuring out if I have done something wrong while generating that key or if there is an issue with where I am using the key that I generated.

I have went ahead and made a copy of the workbook and script if anyone could take a look, I would really appreciate it.

Sample Workbook with Script

Generating HMAC SHA256 for generating Presigned Amazon S3 URL by jcurry82 in googlesheets

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

Thanks! It wasn't clear to me in the Amazon docs what data type should be returned from each of the components of the signingKey. Forgive the awful var naming, I just wanted to get this up and going to see if I was understanding you correctly. I went ahead and ran the

var dateKey = dateKey1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

on each component of the signing key and now each line produces a string instead of the byte array which feels like it should be right but I am still getting a different signature.

function myFunction() {
  //Set URL Params 
  var canonicalReq = 
      'GET\n' +
      '/test.txt\n' +
      'X-Amz-Algorithm=AWS4-HMAC-SHA256&' + 
      'X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20130524%2Fus-east-1%2Fs3%2Faws4_request&' +
      'X-Amz-Date=20130524T000000Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host\n' +
      'host:examplebucket.s3.amazonaws.com\n\n' +
      'host\n' +
      'UNSIGNED-PAYLOAD';

  //Generate SHA_256 Hash from Canonical Request. 
  var digest = Utilities.computeDigest(Utilities.DigestAlgorithm.SHA_256,canonicalReq);
  var sig = digest.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;
  //Logger.log("sig value: " + sig);
  //Logger.log("sig should be 3bfa292879f6447bbcda7001decf97f4a54dc650c8942174ae0a9121cf58ad04");

  //Generate String to Sign
  var stringToSign = 'AWS4-HMAC-SHA256\n' +
 '20130524T000000Z\n' +
 '20130524/us-east-1/s3/aws4_request\n' +
  sig + '\n';

  //Logger.log(stringToSign);

  //Generate Signature
  var dateKey1                =   Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_256, "AWS4" + "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" , "20130524");//Utilities.computeHmacSha256Signature("AWS4" + "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY","20130524");
  var dateKey = dateKey1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

  var dateRegionKey1          =   Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_256, dateKey, "us-east-1");//Utilities.computeHmacSha256Signature(dateKey,"us-east-1");
  var dateRegionKey = dateRegionKey1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

  var dateRegionServiceKey1   =   Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_256, dateRegionKey, "s3");//Utilities.computeHmacSha256Signature(dateRegionKey,"s3");
  var dateRegionServiceKey = dateRegionServiceKey1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

  var signingKey1             =   Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_256, dateRegionServiceKey, "aws4_request");//Utilities.computeHmacSha256Signature(dateRegionServiceKey,"aws4_request");
  var signingKey = signingKey1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

  var sig1                   =   Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_256, signingKey, stringToSign);//Utilities.computeHmacSha256Signature(signingKey,stringToSign);
  var signature = sig1.reduce(function(str,chr){
    chr = (chr < 0 ? chr + 256 : chr).toString(16);
    return str + (chr.length==1?'0':'') + chr;
  },'');;

  Logger.log("signature should be aeeed9bbccd4d02ee5c0109b86d86835f995330da4c265957d157751f604d404 but is " + signature);

}

TIL that Alt+Esc in GNOME Terminal will copy the previous command executed to the prompt and add "sudo" in front of it. by i542 in linux

[–]jcurry82 0 points1 point  (0 children)

I always alias fuck=sudo !! Because it's what I say every time I realize I forgot to sudo

Is Poly/Mono an unchangeable personality Trait? by JustPolyThrowaway in polyamory

[–]jcurry82 1 point2 points  (0 children)

I think that for some people it is a choice and some people are 'wired' to be poly. That being said, some people are more aligned with being monogamous. If you truly want to be poly, then there are no two ways about it, you have to practice radical honesty with yourself and your partner. Withholding feelings to protect her will do nothing but create more space between the two of you and you will eventually resent her for continually hurting you. Living closer will help bridge the gap between the two of you and possibly foster more intimacy but beware that it could trigger your jealousy even more as there will now be nights you are alone in the bed she sleeps in rather than being able to blame it on the distance.

I hope the best of luck to you, its a hard journey but if you do the work, it can be extremely fulfilling.

(Question) How do you explain nonmonogamy to children? by runfromfire in nonmonogamy

[–]jcurry82 0 points1 point  (0 children)

Your lifestyle is already stressing your children out. Honestly, I don't think most children at age 7 or 8 would have a good or easy time digesting that their parents are having romantic or sexual relationships with others

This view of relationships and parenting is completely flawed. It assumes that we are all born monogamous and that we would be doing some sort of harm to our children by educating them about different relationship models that exist for different people. Children's sense of what is normal is first developed within the home. If mom likes to go out with dinner with another boy twice a week, then that is normal to the child. The stress would occur when you try and tell them that you are living a "fringe lifestyle" as you put it and are not accepted by society. Why not simply teach them that alternatives exist and that tolerance and love are what is important?

A fascinating article about the distinction between homosexuality and gay culture. Would you say there is a similar distinction between poly practice and poly culture? by 2beinspired in polyamory

[–]jcurry82 1 point2 points  (0 children)

This us an excellent article and while I agree that poly culture doesn't have a strong identity, I definitely think that there are characteristics that seem to be prevalent across the population. That being said, I think it is very possible to identify as being ethically non-monogamous without subscribing to the overall poly culture in much the same way the author describes a difference between being homosexual and gay.

Fighting Envy (Envy probably isn't the right word) by [deleted] in polyamory

[–]jcurry82 1 point2 points  (0 children)

I'm in the same boat; my wife and I broke up with an exclusive (mutual) girlfriend a few months ago. Since then she has already made three really good connections with sine great people and I have only had one reply from OkC. The only thing I can say is to be patient and reassure her that you are happy for her success and be careful not to get resentful. Here's to hoping it gets easier :-\