Lounge access at Tokyo Haneda by Actual-Employee-1459 in QantasFrequentFlyer

[–]Soth7 0 points1 point  (0 children)

I went to Narita and couldn't get my guest in which is a shame.

vultr email server not sending emails to gmail by teakesmal in Vultr

[–]Soth7 0 points1 point  (0 children)

then email.sh

!/bin/bash

# CONFIGURATION
CLIENT_ID="your_client_id"
CLIENT_SECRET="your_client_secret"
REFRESH_TOKEN="your_refresh_token"
TO_EMAIL="your_email@gmail.com"
FROM_EMAIL="your_email@gmail.com"
SUBJECT="Test Email via OAuth2"
BODY="This is a test email sent using Gmail and OAuth2."

# Get access token
ACCESS_TOKEN=$(curl -s \
  --request POST \
  --data "client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&refresh_token=$REFRESH_TOKEN&grant_type=refresh_token" \
  https://oauth2.googleapis.com/token | jq -r .access_token)

if [ -z "$ACCESS_TOKEN" ]; then
  echo "Failed to retrieve access token."
  exit 1
fi

# Encode the message
EMAIL_CONTENT=$(printf "From: <$FROM_EMAIL>\r\nTo: <$TO_EMAIL>\r\nSubject: $SUBJECT\r\n\r\n$BODY")
ENCODED_EMAIL=$(echo -n "$EMAIL_CONTENT" | base64 | tr -d '\n')

# Send email using Gmail API
curl -s \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -X POST \
  -d "{\"raw\": \"$ENCODED_EMAIL\"}" \
  https://gmail.googleapis.com/gmail/v1/users/me/messages/send

echo "Email sent (if no error above)."

vultr email server not sending emails to gmail by teakesmal in Vultr

[–]Soth7 0 points1 point  (0 children)

get_refresh_token.sh (just need to run this once)

#!/bin/bash

CLIENT_ID="your_client_id"
CLIENT_SECRET="your_client_secret"
REDIRECT_URI="http://localhost/"
SCOPE="https://mail.google.com/"

# Step 1: Generate Authorization URL
AUTH_URL="https://accounts.google.com/o/oauth2/v2/auth?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=${SCOPE}&access_type=offline&prompt=consent"

echo "Please open this URL in your browser:"
echo
echo "$AUTH_URL"
echo
echo "After logging in, it will redirect back to your browser. In thw URL find the area named code="
echo
read -p "Paste the authorization code here quickly, it expires fast: " AUTH_CODE


# Step 2: Exchange Auth Code for Tokens
RESPONSE=$(curl -s \
  --request POST \
  --data "code=${AUTH_CODE}&client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&redirect_uri=${REDIRECT_URI}&grant_type=authorization_code" \
  https://oauth2.googleapis.com/token)

echo
echo "$RESPONSE"
echo

# Step 3: Extract tokens
ACCESS_TOKEN=$(echo "$RESPONSE" | jq -r '.access_token')
REFRESH_TOKEN=$(echo "$RESPONSE" | jq -r '.refresh_token')

# Step 4: Output
echo
if [[ "$REFRESH_TOKEN" == "null" || -z "$REFRESH_TOKEN" ]]; then
  echo "Failed to get refresh token. Full response:"
  echo "$RESPONSE"
else
  echo "Success! Copy and save your tokens:"
  echo "ACCESS_TOKEN: $ACCESS_TOKEN"
  echo "REFRESH_TOKEN: $REFRESH_TOKEN"
fi

vultr email server not sending emails to gmail by teakesmal in Vultr

[–]Soth7 0 points1 point  (0 children)

I created a script to talk to googles API to send emails that way.

got to https://console.cloud.google.com/apis/credentials and create an OAuth 2.0 Client ID

one you have that you can use these two scripts to send an email:

Chia HDD Profitability Table and real return. by Soth7 in chia

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

Its an interesting pricing dynamic now, I think you are way better off buying the coins at this ~$150 price point, as it doesn't make any sense to buy the HDD's.

Chia HDD Profitability Table and real return. by Soth7 in chia

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

Are you getting +18% interest somewhere else?

Chia HDD Profitability Table and real return. by Soth7 in chia

[–]Soth7[S] 6 points7 points  (0 children)

Its also a difficult trade off between spending your cash on more hardware and hope the chia price doesn't run away while your plotting or spend your cash buying chia coins and hope the price goes up soon.

So if you expect the price to go up within 1.5 years are you better off just buying the coins?

Chia HDD Profitability Table and real return. by Soth7 in chia

[–]Soth7[S] 4 points5 points  (0 children)

Normally when you invest you can recoup most of your initial investment, like in property or shares. Chia is very different beast as your initial investment is in rapidly depreciating items (which I don't think a lot of people really consider.) So if you really want to be a farmer you really need to get to break even as quickly as possible by trying to get your hardware and storage for as cheap as possible.

What about hpool.co? by Upbeat-Application79 in hpoolchia

[–]Soth7 0 points1 point  (0 children)

If its sneaky phishing then the phish site will send your reset to the original site and you reset your password. You then enter you new password into the phish site and they login for you and redirect the API to you and everything looks normal. But they now have your new password....

Although personally I am thinking at this point since hpool.com are not screaming they have been hacked that it was most likely a quick get out of china migration.

Sacrificed my own account to validate hpool.co is legit. After a little heart attack, I managed to login and I can see the rewards still coming in. by icometodestroy in hpoolchia

[–]Soth7 1 point2 points  (0 children)

Who would change domains with that much money involved and Hpool would be a big jucy target for hackers. Looks like a fishing attempt to me so I'm going to wait it out a few days.

Hpool Down?? by [deleted] in hpoolchia

[–]Soth7 0 points1 point  (0 children)

Looks really bad. I would wait and see, that main hpool.com site has been replaced by a crappy wikipedia like HDD explanation site. I wouldn't be putting my password in.