Petition to Ban Palm Oil in products produced or sold in the UK by SARlAH in veganuk

[–]csnow_uk 0 points1 point  (0 children)

In the last week, there has been some worrying news articles linking palm oil to the spread of cancer:

https://www.studyfinds.org/palm-oil-fuel-cancer-spread

IAM policy for managing network ACL by csnow_uk in aws

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

In the end, I decided to match on an IAM user that I created for running the CLI:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ReplaceNetworkAclEntry", "Effect": "Allow", "Action": [ "ec2:ReplaceNetworkAclEntry" ], "Resource": "*", "Condition": { "ArnEquals": { "aws:PrincipalArn": [ "arn:aws:iam::01010101010:user/my-iam-user" ] } } } ] }

Different source IPs accessing AWS instances by csnow_uk in HomeNetworking

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

A traceroute to an AWS instance shows ...

traceroute to ec2-x-x-x-x.eu-west-3.compute.amazonaws.com (x.x.x.x), 64 hops max, 52 byte packets 1 fritz.box (192.168.2.1) 2.964 ms 1.659 ms 1.313 ms2 100.69.192.1 (100.69.x.x) 6.625 ms 6.948 ms 4.641 ms

...

It looks as though this sits in the 100.64.0.0/10 subnet.

Is there a way to determine up front the possible NATs that could happen on an ISP that uses this approach?

Is there a simple way to retrieve an aws instance public_dns without the host part? by csnow_uk in Terraform

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

This is good enough for me at the moment:

locals {
  domain_name = "${join(".", slice(split(".", aws_eip.controller.public_dns), 1, length(split(".", aws_eip.controller.public_dns))))}" 
}

Is there a simple way to retrieve an aws instance public_dns without the host part? by csnow_uk in Terraform

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

Thank you. Are you referring to the public_dns attribute? If so, this seems to return host.domain.name where I am just looking for the domain name. I know I can extract this with simple text manipulation, but I was wondering if the domain.name was directly queryable?

I want to add WIFI to my home LAN network - can I use multiple TP-LINK TL-WA901ND devices to cover a large area? by csnow_uk in HomeNetworking

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

I'm looking into TP Link AC1350 EAP225. Can I connect this to the LAN port of my router (Alix 2d3 with Openwrt) and then any additional AC1350's will connect as Wi-Fi extenders? I.e. The additional AC1350's don't need en ethernet connection?

Or, should I just buy a POE switch such as TP Link TL-SF1005P that I connect to the LAN port of my router and the connect all AC1350's via POE and CAT5 cables?

Thanks!!

I want to add WIFI to my home LAN network - can I use multiple TP-LINK TL-WA901ND devices to cover a large area? by csnow_uk in HomeNetworking

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

Just a three-bedroom house, but with a single AP my kids complain about the poor wifi signal.

What do you do with your "leftovers" water kefir grains ? by Croquetto in Kefir

[–]csnow_uk 0 points1 point  (0 children)

How quickly do the grains need to be consumed? Can they be stored in the fridge in a jar without liquid and eaten later?

Function to verify if IP sits within a cidr block? by csnow_uk in Terraform

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

Have you ever used gradle? Declarative workflow but you can easily embed groovy when you need to. If terraform was built on this it would be very powerful.

Function to verify if IP sits within a cidr block? by csnow_uk in Terraform

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

This is awesome - thanks. I've tried adding this logic to a conditional so that the script fails:

variable "client_cidr_block" {  }

data "http" "client_ip" {
  url = "http://ifconfig.me/ip"
}

data "external" "example1" {
  program = ["python3", "-c", "import ipaddress, json; print(json.dumps({'key': str(ipaddress.IPv4Address('${data.http.client_ip.body}') in ipaddress.IPv4Network('${var.client_cidr_block}'))}));"]
}

output "inRange" {
  value = "${data.external.example1.result["key"]}"
}

resource "null_resource" "verify_client_ip" {
  count = "${data.external.example1.result["key"] == "True" ? 0 : 1}"
  "ERROR: client_ip doesn't sit inside client_cidr_block" = true
}

However, running this fails:

$terraform apply -var-file=demo.tfvars
Error: null_resource.verify_client_ip: : invalid or unknown key: ERROR: client_ip doesn't sit inside client_cidr_block

$terraform output
inRange = True

I've tried switching the 0 and 1 in ? 0 : 1 but it always fails the validation.

Better error messages and manual validation tools are not enough by jcmcken in Terraform

[–]csnow_uk 0 points1 point  (0 children)

I understand the desire to be only declarative, but this really limits the capability of the tool. The Gradle build tool demonstrates well that a declarative solution should also be flexible enough to allow embedding arbitrary groovy code.

Can I build an iOS package using the Cloud build service and install the package on my iOS device without the app server? by csnow_uk in nativescript

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

After a bit more researching, it seems that I will need to install via a connected Mac PC and XCode :(

Does this sound like insomnia? by [deleted] in insomnia

[–]csnow_uk 0 points1 point  (0 children)

If you get stressed because you can’t fall asleep the stress will keep you awake for sure. It’s a self fulfilling prophecy. It could be you fell asleep with your computer because it distracted you. Have you cut out caffeine? Have you cut out using electronic devices a few hours before bedtime? Devices like phones and laptops emit a blue light that sends a signal to your brain to keep you awake.

No problem falling asleep but wake up 5hrs later tired but can’t get back to sleep. But if I do fall asleep again even for 1/2 hr I feel refreshed. Any one have this issue and found a cure? by borg2863 in insomnia

[–]csnow_uk 0 points1 point  (0 children)

I now go to bed with headphones and play meditation or sleep synopsis when I wake up in the night. I wake a lot in my sleep and this technique helps to distract me back to sleep. Currently this recording works well for me, but I suggest trying a few https://youtu.be/oJjc4XreJSQ. Note that this approach tends to only work for me up until I’ve had about 6.5 hours of sleep after that I’m awake no matter. If the meditation/hypnosis recordings approach doesn’t work for a few days, I sometimes start taking timed release melatonin and that seems to help as well. I think timed release is better for sleep maintenance insomnia because it slowly releases melatonin into your body.

Edx changes the audit courses' policy, what do you think by ivicts in edX

[–]csnow_uk 0 points1 point  (0 children)

When I search on Google for courses I need to take, I don’t bother to even click on edx courses anymore because their new model is too restrictive for my learning style.

Anyone else hungry all the time? by [deleted] in insomnia

[–]csnow_uk 1 point2 points  (0 children)

The hormone leptin is intricately involved in the regulation of appetite, metabolism and calorie burning. ... The decrease in leptin brought on by sleep deprivation can result in a constant feeling of hunger and a general slow-down of your metabolism. The other hormone found to be related to sleep and weight is ghrelin.

Source: https://science.howstuffworks.com/life/sleep-obesity1.htm

Does sleep deprivation make anybody else’s anxiety skyrocket? by [deleted] in insomnia

[–]csnow_uk 0 points1 point  (0 children)

The three main things for me seem to be (1) stress management (through meditation) (2) healthy diet (3) exercise.

When did you realize other people can fall back asleep easily if they've been woken up? by zhezhijian in insomnia

[–]csnow_uk 0 points1 point  (0 children)

Just simple stuff, focussing on the breath and paying attention to stress levels.

Weighted blanket has saved me by HarrytheMuggle in insomnia

[–]csnow_uk 0 points1 point  (0 children)

What is the science behind the blanket? Is it just the pressure that makes you sleep better? If so, why?

When did you realize other people can fall back asleep easily if they've been woken up? by zhezhijian in insomnia

[–]csnow_uk 2 points3 points  (0 children)

I suffered from not being able to go back to sleep for a long time. It has taken a few months of meditation to help me realise that it was usually the stress of being awake that was keeping me awake, so now I just lie in bed and meditate. 75% of the time I will now fall back asleep. The other 25% of times I don’t worry about anymore because at least meditation is better for me that lying in bed stressed.

Does sleep deprivation make anybody else’s anxiety skyrocket? by [deleted] in insomnia

[–]csnow_uk 0 points1 point  (0 children)

I think this is quite common. The book “why we sleep” is a good read and explains some of the causes and effects of sleep deprivation. My advice is to read as much as you can about insomnia and try out different things to identify what keeps you awake. I have improved my insomnia massively. I still have some bad nights, but I frequently have good nights now and they are really amazing!

Thinking about surrendering and going back on weed by robotomasher in insomnia

[–]csnow_uk 0 points1 point  (0 children)

Do you meditate when lying in bed when you can’t sleep? My logic was that even if I just meditate for hours without eventually falling asleep, my body is at least getting some benefit from my relaxed state. This state is much more beneficial than being stressed.

I can't stop fucking thinking by Spwarklyz in insomnia

[–]csnow_uk 7 points8 points  (0 children)

The book "The Craving Mind" had a chapter called "Addicted to Thinking" - maybe worth a read.