Skip to content

Instantly share code, notes, and snippets.

@lexod
lexod / okta
Last active August 20, 2025 19:47
curl --location --request POST '{{url}}/api/v1/users/{{userId}}/lifecycle/reset_password?sendEmail=false' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: {{apiKey}}' \
--data ''
var response = JSON.parse(responseBody);
if(response.resetPassswordUrl) {
postman.setEnvironmentVariable("stateToken", JSONResponse.resetPassswordUrl.split('/').slice(-1)[0]);
}
import json
import os
import uuid
import base64
from datetime import datetime, timezone
import boto3
from botocore.exceptions import BotoCoreError, ClientError
@lexod
lexod / ToPHP71.sh
Created August 5, 2020 17:05
PHP: icu4c version incompatibility fix
#!/bin/bash
brew services stop [email protected];
brew unlink [email protected];
brew link --fore [email protected];
brew switch icu4c 64.2;
brew services start [email protected];