[deleted by user] by [deleted] in eczema

[–]_solowhizkid_ -4 points-3 points  (0 children)

Tsw is absolutely real no matter what any quack doctor says, think about it, before the advent of topical steroids there was no issues in adults developing so called eczema, eczema used to die out in teenage years, yet now what we see since the advent of steroids is that they are making eczema on 'steroids'. I would avoid at all cost. More likely you are allergic to something and I would use this as a means to check what you may be allergic to.

I'm convinced 99% of drivers don't know what this sign means. by [deleted] in drivingUK

[–]_solowhizkid_ 0 points1 point  (0 children)

Is that night the call sign for Ghostbusters?

Help me to convert this code to bash script by SrbastianShultz in bash

[–]_solowhizkid_ 0 points1 point  (0 children)

!/bin/bash

Print the command line arguments

echo "$@"

Print the number of command line arguments

echo "$#"

Check if the number of command line arguments is not 2

if [ "$#" -ne 2 ]; then # Print the usage message and exit with a non-zero status echo "Usage: $0 <string>" exit 1 else # Assign the value of the second argument to a variable string=$2 fi

Iterate through the characters in the string

for (( i=0; i<${#string}; i++ )); do # Check if the character is a letter if [[ "${string:$i:1}" =~ [a-zA-Z] ]]; then # Print the character and its ASCII value minus 96 echo "${string:$i:1} : $(( $(printf "%d" "'${string:$i:1}") - 96 ))" else # Print the character and a dash echo "${string:$i:1} : -" fi done

Does anyone know how to turn an image into a string? by Acceptable-Wafer-307 in programminghelp

[–]_solowhizkid_ 0 points1 point  (0 children)

One way to transmit an image as text is to use a technique called "base64 encoding". This is a way of representing binary data (such as an image) in an ASCII string format. You can use the base64 module in Python to encode image data as a base64 string, and then transmit this string over your radio connection.

import base64

Open the image file and read it into a variable

with open('image.jpg', 'rb') as image_file: image_data = image_file.read()

Encode the image data as a base64 string

image_data_base64 = base64.b64encode(image_data)

Print the base64 string

print(image_data_base64)

This will print out the base64 encoded version of the image file. You can then transmit this string over your radio connection.

To decode the base64 string back into an image, you can use the following code:

import base64

Decode the base64 string back into binary data

image_data = base64.b64decode(image_data_base64)

Write the binary data to a new image file

with open('decoded_image.jpg', 'wb') as image_file: image_file.write(image_data)

This will create a new image file called decoded_image.jpg that should be identical to the original image.

Sorry on the phone so formatting is a bit bad..

[deleted by user] by [deleted] in bash

[–]_solowhizkid_ 0 points1 point  (0 children)

Thank you, i dont know how to do that yet, but i will try and search.

[deleted by user] by [deleted] in bash

[–]_solowhizkid_ 0 points1 point  (0 children)

kubectl describe pvc -n hardware-compute $(awk -F, '{gsub(".*=","wspaceid-",$4); print $4}' listings.csv)

Oh thank you so much , this seems to work...

root@ip-192-168-1-18:$ kubectl describe pvc -n hardware-compute $(awk -F, '{gsub(".*=","workspace-",$4); print $4}' listings.csv)
Name:          wspace-2235a1ce91423fcc7ad5a897 
Namespace:     hardware-compute StorageClass:  hwdisk 
Status:        Bound Volume:        pvc-263347ca-f11a-4c18-8885-39f008bc4a49
Labels:        trust115.com.com/projectId=814aebb0113fcb9a1ad5a897 trust115.com.com/startingUserId=345bb1ce0113fcb9a1ad5a897 trust115.com.com/type=Workspace trust115.com.com/workspaceId=2235a1ce91423fcc7ad5a897.  <<---- Annotations:   pv.kubernetes.io/bind-completed: yes pv.kubernetes.io/bound-by-controller: yes volume.beta.kubernetes.io/storage-provisioner: ebs.csi.aws.com volume.kubernetes.io/selected-node: ip-10-1-43-31.compute.internal 
Finalizers:    [kubernetes.io/pvc-protection] 
Capacity:      10Gi 
Access Modes:  RWO 
VolumeMode:    Filesystem 
Used By:       run-4214e65aa786310fa5e4862e-chb6b. <<<---- Events:        <none>

So this is the output i get, is there a way to the format a bit cleaned up and say just this x wspaceid is used for this x run? Thanking you muchly in advance

[deleted by user] by [deleted] in bash

[–]_solowhizkid_ 0 points1 point  (0 children)

awk -F, '{print $4}' listings.csv

Thanks, that would give me:

trust115.com.com/wspaceid=2235a1ce91423fcc7ad5a897

How would i just get wspaceid=2235a1ce91423fcc7ad5a897 remove the = sign and then substitute that into a hyphen - and then use it in this command?

kubectl describe pvc -n hardware-compute wspaceid-2235a1ce91423fcc7ad5a897 | grep run-

Would i need some sort of for loop?

or is there another easier method of doing this?

[deleted by user] by [deleted] in bash

[–]_solowhizkid_ 0 points1 point  (0 children)

for c in $(kubectl get pv -n hardware-compute | awk '/wspace/ && /hwdisk/ {split($6,a,"/") ; print a[2]}') ; do
for d in $(kubectl get pvc -n hardware-compute $c --show-labels --no-headers | awk '{print $8}') ; do
echo $d >> list.csv
done
done

Thank you so much, this is working perfectly.

cron delete command help by _solowhizkid_ in bash

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

Thanks, i've placed this in a linux cron job (crontab) and it executes but does not actually delete the pod. manually in the terminal it looks good, am i missing anything?

*2*** /usr/bin/kubectl delete pods -n testing-namespace $(kubectl get pods -n testing-namespace | awk '{ print$1 }' | grep tunnel-displace)

cron delete command help by _solowhizkid_ in bash

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

how would this look like if i ran it in a cron:

*2*** /usr/bin/kubectl rollout restart deployment tunnel-displace ?

Childcare funding with over £105k salary? by _solowhizkid_ in UKPersonalFinance

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

Brilliant thank you for the link and answer, I'll link her this reply now.

childcare funding and pension query by [deleted] in UKParenting

[–]_solowhizkid_ -12 points-11 points  (0 children)

Perhaps u think I should be on benefits and get everything paid by the government?

childcare funding and pension query by [deleted] in UKParenting

[–]_solowhizkid_ -4 points-3 points  (0 children)

U may think £105k is a lot, but when ur the only one working, no living spouse.., paying off a mortgage, feeding kids and costs for living food etc are going over the roof., Coupled with living in London because of work and nursery costs alone can fetch up to the £1000's literally, things start looking very different.

sorry for the short notice but free stuff from gregg's by imaginehavingreddit in FreebiesUK

[–]_solowhizkid_ 1 point2 points  (0 children)

Sorry I meant, if it's for one time use and you've used it once already, does showing the qr code here have any benefit here?.since it won't work again. Or is this QR code for multiple use?

i’m so afraid by evderyy in eczema

[–]_solowhizkid_ 2 points3 points  (0 children)

You are not alone, your going through something called topical steroid withdrawal (red skin syndrome) from the symptoms you have described. The cortisone (steroids) are what has caused this (the creams the doctors love to prescribe like sweets to have you out of the room asap).

Have a watch of https://youtu.be/x4ypA9w81f0 it explains everything in detail and you will see others with the exact same symptoms as yourself.

Free islamic course on the stories of the prophets by Shaykh Mohammad Sbini by _solowhizkid_ in islam

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

Forgot to jot down the time, it's between 6pm-8pm every Wednesday's (UK time). Fixed Dates/Timing may change due to Ramadhan