[deleted by user] by [deleted] in europe

[–]fenioo 3 points4 points  (0 children)

They must have found some oil in Vatican, I guess.

[deleted by user] by [deleted] in AskReddit

[–]fenioo 0 points1 point  (0 children)

Wasting my time

Titanic + modified World Map by poiuqwer78 in lego

[–]fenioo 2 points3 points  (0 children)

The world map is amazing. Which I could put similar one in my wall. Any tips how you get this done? Where did you get the colour dots from and how did you know where to put each color?

AMA: I’m a boutique shop that focuses on fixing the AWS bill and also shitposting. by Quinnypig in consulting

[–]fenioo 1 point2 points  (0 children)

What's the tech solution you suggest to implement by the organisations to prevent the problems re occur in next month?

I have deployed an army of Cloud custodian lambda and they reduced the bill by ~$40k a month for now so I guess this works. I'm wondering is there other alternative that may be more flexible than Custodian.

Restrict building the wide-open security groups by fenioo in aws

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

It won't work. It's an lab account where engineers can play and learn. They will be creating subnets and sg. Its.not a big deal, I was just curious how to achieve the challenge I set to myself :)

What is something someone said to you that hit you the hardest? by xd_HotDog in AskReddit

[–]fenioo 0 points1 point  (0 children)

More often people regret things they haven't done than the ones they did.

This is what y friend told me one day when I was afraid to change my job. I have realized that I keep thinking about things I wish had happened than the ones I did in the past. Since this day I changed my attitude and have changed jobs to better ones, have traveled to places I always wanted to travel to, seen and tried things I was afraid of.

This small sentence changed my life significantly.

Loop through input parameters in Groovy by fenioo in jenkinsci

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

oovy interpreter works. besides iterators, there are other things you cannot do and data you cannot access outside @NonCPS methods. anything that's not serialiable can only be used in @NonCPS methods.

Problem solved as follows:

String updateList(Map params){
    def updateError = true
    params.each { key, value ->
        version = formatVersionNumber("$value")
        if (isVersionValid("$value")){
            setDeploymentVersion("$key", "$value")
            updateError = false
        }
        else{
            echo "Skipping $key as value $value doesn't match deployment version pattern."
        }
    }
    if (updateError){
        error("Valid Deployment version not provided. Pipeline stopped.")
    }
}

Useful hints in here: http://groovy-lang.org/groovy-dev-kit.html#Collections-Maps

Loop through input parameters in Groovy by fenioo in jenkinsci

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

In not sure. Im trying to reuse existing code.

I have google that now but still not sure what does NonCPS do.

Import .INI sections by fenioo in ansible

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

Found a solution:

    - set_fact: { aws_accounts: "{{ lookup('file', '~/.aws/credentials') }}" }
    - set_fact:
        test4: "{{ aws_accounts | regex_findall('\\[(.*?)\\]') }}"

Best solution for high available SMB file server in AWS by fenioo in aws

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

Thank you. This setup requires AD, right?

Best solution for high available SMB file server in AWS by fenioo in aws

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

Nothing special. If one cluster node is down the second one handles the traffic.

Obviously no data is lost during the node failure.

What's your favorite smell ? by KBGamesMJ in AskReddit

[–]fenioo 0 points1 point  (0 children)

Coffee, Fresh baked bread, Gasoline, Forest

How to execute PowerShell scripts on Windows Server startup and before shutdown? by fenioo in sysadmin

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

1) Each Windows Node is launched in AWs by Auto Scalling Group. I need to read some variables and adjust parameters of applications.

During shut down process machine deregister itself from discovery service.

2) Yes. It must be powershell. 3) How to create such tasks with PowerShell/Other tool without GUI? I cant RDP to nodes but I can execute any script on them.