Skip to content

Instantly share code, notes, and snippets.

View dschowta's full-sized avatar

Shreekantha Devasya dschowta

  • SumUp
  • Bonn
View GitHub Profile
@tkrajina
tkrajina / unmarshal_interface.go
Last active October 29, 2024 03:30
Unmarshal JSON to specific interface implementation
package main
import (
"encoding/json"
"fmt"
"reflect"
)
type Something interface{}
@n3wtron
n3wtron / converter.go
Created June 28, 2017 09:50
golang: grpc Struct converter fom map and golang struct
package util
import (
protobuf_struct "github.com/golang/protobuf/ptypes/struct"
"errors"
"fmt"
"reflect"
"github.com/fatih/structs"
)
@shaneutt
shaneutt / LICENSE
Last active November 14, 2024 02:16
Golang: Demonstrate creating a CA Certificate, and Creating and Signing Certs with the CA
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@farshidtz
farshidtz / amzn2-unattended-upgrades.md
Last active February 26, 2022 14:45
AWS Amazon Linux 2 Unattended Upgrades with Email Notifications

This guide provides instructions for setting up unattended security upgrades on Amazon Linux 2 with optional Email notifications.

To send notifications by Email, an SMTP server is required; more details below this page.

Yum-cron

For unattended upgraded, use yum-cron as recommended in https://stackoverflow.com/a/46248515/3041544

Configure yum-cron: /etc/yum/yum-cron.conf.

Relevant yum-cron config options are: