Skip to content

Instantly share code, notes, and snippets.

Dee Koder deekoder

Block or report user

Report or block deekoder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:be4534fc9d2a02485f304ca61a074804
* Currently online : User name engineers only.
(sort by online ones and keep the offline users grayed out)
* Total count of messages sent (last 100 days)
* Last activity : time per user
@deekoder
deekoder / Support Network
Created Nov 8, 2017
Support Site Must Hves
View Support Network
What should a support product entail :
* Customer Portal : Create account with moderation.
* Should be able to learn what they will get without having to login
* License Management
* Service plans levels (if there are more than 1)
* Hours of coverage
* Scope of coverage
* How to do escalations
* Whats not covered
View Remix2.0 Pod
* Remove Maps and replace with Website Map
* Enhance the data. Create a new db. For every entry requery APIS and enrich. Point to new database eventually.
-X-
* Advanced search model with dynamic dropdowns
* Widgets for canned queries such as : 1. Popular platforms.
@deekoder
deekoder / Error Logging Pod
Created Oct 31, 2017
Things to do wrt to error messages pod.
View Error Logging Pod
- json flag in CLI to get json output
- Remove file in config.json and upgrade version (migration code)
- Log messages : remove logrus dependencyl
- 2 separate structs for logging and startup
- Levels of logging:
- Error
- Fatal
- Debug
- Research json grouping of similar messages (50 times ): <same error message>
@deekoder
deekoder / config.json
Created Oct 18, 2017
config.json for minio server
View config.json
{
"version": "19",
"credential": {
"accessKey": "minio",
"secretKey": "minio123"
},
"region": "",
"browser": "on",
"logger": {
"console": {
@deekoder
deekoder / lambdaEvent.go
Created Oct 17, 2017
Lambda Function to do OCR and Barcode analysis
View lambdaEvent.go
func processOCR(minioClient *minio.Client, bucketname string, objectname string) string {\
// This is the simplest way :)
object, err := minioClient.GetObject(bucketname, objectname, minio.GetObjectOptions{})
if err != nil {
fmt.Println(err)
return ""
}
localFile, err := os.Create("/tmp/" + objectname)
if err != nil {
@deekoder
deekoder / SetBucketNotification.go
Created Oct 17, 2017
Sets up a bucket notification to Postgres
View SetBucketNotification.go
func setUp() {
minioClient, err := minio.New("192.168.1.15:9000", "minio", "minio123", false)
if err != nil {
log.Fatalln(err)
}
queueArn := minio.NewArn("minio", "sqs", "", "1", "postgresql")
queueConfig := minio.NewNotificationConfig(queueArn)
queueConfig.AddEvents(minio.ObjectCreatedAll, minio.ObjectRemovedAll)
bucketNotification := minio.BucketNotification{}
bucketNotification.AddQueue(queueConfig)
@deekoder
deekoder / Uploader.go
Last active Oct 17, 2017
Uploading Images to Minio from Trichorder Ap
View Uploader.go
func upload(w http.ResponseWriter, r *http.Request) {
file, header, err := r.FormFile("file")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
defer file.Close()
fname := header.Filename
View GCS_Rough_Instructions.md
 gcloud init
  • If you are reauthenticating use this command instead
gcloud beta auth application-default login
  • Perform the authentication using your minio.io email address (the CLI will launch a broswer window or show you a link)
View Minio installation on macOS
Fresh Install
Installing Minio packages for macOS is done via brew.
```
brew install minio/stable/minio
minio server ~/Photos
```
Upgrade
You can’t perform that action at this time.