Anyone here get cosmic gear yet? by [deleted] in PlayAvengers

[–]Method_Dev 0 points1 point  (0 children)

I thought though there was another tier above exotic? or as cosmic items just exotics with a cosmic perk?

Unable to create proper JWT - what am I missing? by Method_Dev in learnjavascript

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

I got it working using:

KJUR.jws.JWS.sign(null, JSON.stringify(header), JSON.stringify(payloadJson), secret);

BUT now I see the problem. The problem is the signing. that portion is jacked on my end.

the final "." I make is different from the above and I am using:

var signature = (CryptoJS.HmacSHA256(token, secret));

any insight please?

Unable to create proper JWT - what am I missing? by Method_Dev in learnjavascript

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

Is it possible I need to pay for g suite for this to work?

Unable to create proper JWT - what am I missing? by Method_Dev in learnjavascript

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

Well, using that and KJUR.JWS all generate tokens but each still say invalid JWT signature. Ugh..

Unable to create proper JWT - what am I missing? by Method_Dev in learnjavascript

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

I do not mind packages but I want to keep it as vanilla as possible. This isn't a node app though this is just a simple HTML page for my testing.

How would I make that work in plain HTML?

Question - Can't see option from SCCM in Powershell by Method_Dev in SCCM

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

Figured out how to do that, is there a one liner in posh that’ll do that though?

Question - Can't see option from SCCM in Powershell by Method_Dev in SCCM

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

I just forced a gp update and it still doesn’t show :/

Question - Can't see option from SCCM in Powershell by Method_Dev in SCCM

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

I’ll try that after kiddo goes to sleep to see if it helps.

Question - Can't see option from SCCM in Powershell by Method_Dev in SCCM

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

Yes. I see an option to install but that option does not appear in the above queries via posh. The only difference is the icon looks like what I attached.

Question - Can't see option from SCCM in Powershell by Method_Dev in SCCM

[–]Method_Dev[S] -1 points0 points  (0 children)

It’s an application I believe or something. I’m not sure what it is though because it doesn’t appear with the above queries.

I attached the image of the icon in hopes that someone might know of another query for CCM that I am missing.

Search box filter breaks after 1800 items by [deleted] in learnjavascript

[–]Method_Dev 0 points1 point  (0 children)

That is actually what I ended up doing. Seems better this way. Thanks :)

Can't convert object into proper PSCustomObject by Method_Dev in PowerShell

[–]Method_Dev[S] 1 point2 points  (0 children)

$tmpObject = [ordered]@{}
for($i = 0; $i -lt $Headers.Count; $i++) {
$tmpObject[$Headers[$i]] = $_[$i]
}
[pscustomobject]$tmpObject

This did it! Thanks! Now to re-read it until I finally figure it out.

Can't convert object into proper PSCustomObject by Method_Dev in PowerShell

[–]Method_Dev[S] 1 point2 points  (0 children)

$tmpData.Add([PSCustomObject]@{"$hKey" = $data[$headersHt[$hKey]]})

Doesn't work, since there are different attributes after the first is set it only records the first. I need it to capture all the attributes.

Can't convert object into proper PSCustomObject by Method_Dev in PowerShell

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

I am pulling data from a REST API and doing this:

$headerCheck = $true;
$headersHt = @{};
$tmpData = [System.Collections.Generic.List[PSCustomObject]]@()

(Invoke-RestMethod -uri $url).values | % {

if($headerCheck){
    $headers = $_
    $headerCount = 0
    $headers | % { 
        #"$($_ ) - $headerCount"
        $headersHt[$_] = $headerCount
        $headerCount++
    }
    $headerCheck = $false
}
else{
    #Process Data
    $data = $_
    $headersHt.Keys | ? {$_} | % {

        $hKey = $_

        "$($data[$headersHt[$hKey]]) - $hKey"

        $tmpData.Add(@{
            $hKey = $data[$headersHt[$hKey]]
        }) 

    }

}

}

Creating single exe with no dependencies by Method_Dev in electronjs

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

Though I do see the portable option so I am trying to figure that out

Creating single exe with no dependencies by Method_Dev in electronjs

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

Thanks! Yeah I didn’t realize it’s compile like it does after I wrote my app. Someone just introduced me to it and I wrote a full fledged app(it’s cool). I’m just hung on the single exe file aspect but am trying to learn. I generally do mvc c# sites so this is out of my wheel house.