Skip to content

Instantly share code, notes, and snippets.

View adamshamsudeen's full-sized avatar
🎯
Focusing

Adam Shamsudeen adamshamsudeen

🎯
Focusing
View GitHub Profile
@k4ml
k4ml / slacktg_bridge.py
Last active March 22, 2020 22:36
2 way bridge between Slack and Telegram.
"""
Copyright 2017 [email protected].
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
@nathanborror
nathanborror / instructions.txt
Last active May 17, 2023 00:55
Example Kubernetes setup with Postgres and two Services for serving an API and a static site using Ingress. Also have a CronJob example for kicks.
*** Cluster Setup for Google Container Engine ***
0/ Install and configure local gcloud and kubectl: https://cloud.google.com/sdk/docs/
> gcloud components install kubectl
1/ Configure Google Cloud account:
> gcloud config set account YOUR_EMAIL_ADDRESS
> gcloud config set project YOUR_PROJECT_ID
> gcloud config set compute/zone us-west1-a
> gcloud config set container/cluster example
@iqbalali
iqbalali / user-feedback-tagging-openai.py
Created December 15, 2022 19:23
Using OpenAI to tag user feedback. You can use this as starting block to build an app iterating over user feedback items and tagging them.
import openai
openai.api_key = 'sk-****' # Get your own API key from OpenAI, I ain't sharing mine!
prompt = """
Decide whether to tag the following review with one or more of the following themes:
Pricing, Efficiency, Reliability, Food, Service, Positive, Negative
Review: Great authentic Indian food. Good prices and childrens menu too (seems quite rare in Indian restaurants). I would definitely recommend going. The waiter service was good and waiting Tim's for food was minimal. We visited based on the good reviews on here and they seemed justified.
The only reason it isn't a 5 star was because me and my family found the lady who greeted us quite abrupt and rude and didn't allow me yo point out we had a table booked instead sent us to wait for a table to be ready in the waiting area.