ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. stacksofplates
    3. Topics
    • Profile
    • Following 0
    • Followers 13
    • Topics 145
    • Posts 7,946
    • Best 2,861
    • Controversial 1
    • Groups 0

    Topics created by stacksofplates

    • stacksofplatesS

      Kubeless

      IT Discussion
      • kubernetes kubeless serverless • • stacksofplates
      2
      2
      Votes
      2
      Posts
      403
      Views

      stacksofplatesS

      Kubeless years Bottle by default. This is great for simple use cases. However FastAPI offers a lot while still being minimal. I wrote a custom runtime for Kubeless using FastAPI. Here's a demo of that runtime.

      Youtube Video

    • stacksofplatesS

      FastAPI

      IT Discussion
      • python rest • • stacksofplates
      1
      2
      Votes
      1
      Posts
      357
      Views

      No one has replied

    • stacksofplatesS

      BoltDB API

      IT Discussion
      • golang go boltdb docker • • stacksofplates
      1
      3
      Votes
      1
      Posts
      346
      Views

      No one has replied

    • stacksofplatesS

      Gophemeral

      IT Discussion
      • • • stacksofplates
      15
      7
      Votes
      15
      Posts
      926
      Views

      stacksofplatesS

      @JasGot said in Gophemeral:

      @Pete-S said in Gophemeral:

      I mean you are mailing the message ID and password needed to decrypt.

      You could mail one, and speak the other.

      Many institutions send usernames and passwords through separate mediums.

      This is anther way. If you really want to be secure, text the ID and email the password. Or call and give one of them.

    • stacksofplatesS

      Functional Options In Go

      IT Discussion
      • golang development • • stacksofplates
      2
      3
      Votes
      2
      Posts
      432
      Views

      stacksofplatesS

      So here's a playground example of using functional options and error handling: https://play.golang.org/p/cfw7axv6pjO

      The advantage over method chaining is that we can return our errors correctly this way. Using the following as an example, I can return my error the whole way to the function call in main() and only need to handle it in a single place.

      type MethodOption func(*http.Request) (*http.Request, error) func NewRequest(opt ...MethodOption) (*http.Request, error) { r := &http.Request{} var err error for _, opt := range opt { r, err = opt(r) if err != nil { return nil, err } } return r, nil } func SetURL(URL string) MethodOption { return func(r *http.Request) (*http.Request, error) { u, err := url.Parse(URL) if err != nil { return nil, err } r.URL = u return r, nil } } req, err := NewRequest( SetURL("https://google.com"), ) if err!= nil { fmt.Println(err) os.Exit(1) }
    • stacksofplatesS

      Piggy Bank

      IT Discussion
      • go passwords • • stacksofplates
      6
      3
      Votes
      6
      Posts
      630
      Views

      stacksofplatesS

      @jmoore said in Piggy Bank:

      If I get time tonight I will look at this and test it to see how it works for me.

      It's def still alpha so don't have high hopes lol.

    • stacksofplatesS

      Using Zeit for Serverless

      IT Discussion
      • • • stacksofplates
      7
      1
      Votes
      7
      Posts
      314
      Views

      jmooreJ

      Oh I see. Will have to check that out too then. Thanks!

    • stacksofplatesS

      Terratest

      IT Discussion
      • terraform terratest • • stacksofplates
      3
      4
      Votes
      3
      Posts
      390
      Views

      jmooreJ

      @stacksofplates said in Terratest:

      I wrote a new article on unit testing Terraform modules with Terratest.

      https://hooks.technology/2020/03/testing-terraform-with-terratest/

      Nice article, I've never played with Teraform yet but its on my list.

    • stacksofplatesS

      Should SodiumSuite Be Open Source

      IT Discussion
      • • • stacksofplates
      103
      0
      Votes
      103
      Posts
      5.5k
      Views

      stacksofplatesS

      @Dashrender said in Should SodiumSuite Be Open Source:

      @JaredBusch said in Should SodiumSuite Be Open Source:

      @stacksofplates said in Should SodiumSuite Be Open Source:

      . And like truecrypt it could be picked back up again.

      Software, not a service.

      Plus the authors were never trying to profit off truecrypt - Scott clearly wants to make a profit from these efforts.

      That's not the point. Even if it did make money and they decided to cancel it or it died for another reason it could be picked back up again. Making money is not a factor there.

    • stacksofplatesS

      When Can IT Know a Password for a User

      IT Discussion
      • • • stacksofplates
      36
      0
      Votes
      36
      Posts
      969
      Views

      DashrenderD

      @scottalanmiller said in When Can IT Know a Password for a User:

      When working with doctors, one of the first things we see everywhere is that they commonly require the same password for all staff and have it published everywhere. That our Rocket.Chat logins are the one secure thing in a sea of insecurity makes it the absolute last point of concern in their entire environment.

      ug - so true...

    • stacksofplatesS

      Building A Hugo Site From a Theme

      IT Discussion
      • hugo • • stacksofplates
      12
      3
      Votes
      12
      Posts
      1.1k
      Views

      stacksofplatesS

      @IRJ said in Building A Hugo Site From a Theme:

      Help @stacksofplates

      9ae3eb54-ad8b-448b-b2ee-5dfbf7a7b92c-image.png

      Do you need the source or are you just building a site with Hugo?

    • stacksofplatesS

      Extending Packages with Go

      IT Discussion
      • golang • • stacksofplates
      2
      1
      Votes
      2
      Posts
      1.6k
      Views

      stacksofplatesS

      In this example you wouldn't have to write an interface, but that's part of the power of Go. Interfaces are defined implicitly.

    • stacksofplatesS

      Mocking API Endpoints with Go

      IT Discussion
      • golang unit test mock api api • • stacksofplates
      7
      1
      Votes
      7
      Posts
      881
      Views

      stacksofplatesS

      @Danp said in Mocking API Endpoints with Go:

      I know that Postman provides the ability to perform this type of API testing. Has anyone tried this feature?

      I'm sure it does. The problem there though is if you're running in a pipeline you'd have to somehow get Postman downloaded, set up, and configured automatically to test against it. This is just in the standard library so you can unit test in your pipeline automatically.

    • stacksofplatesS

      GitLab Feature Flags

      IT Discussion
      • feature flags gitlab golang • • stacksofplates
      2
      3
      Votes
      2
      Posts
      552
      Views

      stacksofplatesS

      To be clear, GitLab uses Unleash for their feature flags which is open source. It also has it's own UI, but it's nice to have it in your code base and not need to run a separate server.

    • stacksofplatesS

      Using Make for SysAdmin Work

      IT Discussion
      • make terraform ansible devops idempotent • • stacksofplates
      1
      5
      Votes
      1
      Posts
      437
      Views

      No one has replied

    • stacksofplatesS

      Vagrant Libvirt and Fedora 30

      IT Discussion
      • • • stacksofplates
      1
      7
      Votes
      1
      Posts
      464
      Views

      No one has replied

    • stacksofplatesS

      Traefik Reverse Proxy

      IT Discussion
      • traefik reverse proxy • • stacksofplates
      3
      4
      Votes
      3
      Posts
      376
      Views

      stacksofplatesS

      @flaxking said in Traefik Reverse Proxy:

      Are you currently using it in production?

      Not at work. I'm using it for projects outside of that though. My docker compose stack at home uses it.

    • stacksofplatesS

      Static site in a CI/CD Pipeline

      IT Discussion
      • • • stacksofplates
      6
      6
      Votes
      6
      Posts
      868
      Views

      jmooreJ

      @stacksofplates Sounds like a good plan, thanks!

    • stacksofplatesS

      Weather cli app

      IT Discussion
      • • • stacksofplates
      2
      3
      Votes
      2
      Posts
      142
      Views

      stacksofplatesS

      To build this, you can just create those two files and do a go build -o weather main.go openweathermap.go and it will generate your executable.

      To build it for a different platform (Windows vs Linux) pass the build environment variable in like this:

      GOOS=windows go build -o weather.exe main.go openweathermap.go
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1 / 8