One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
""" | |
Author: @jatinkrmalik | |
This script creates a chat interface between the user and OpenAI's GPT model. | |
Instructions to run the program: | |
1. Set your OpenAI API key as an environment variable in your terminal session. You can do this by running the following command: | |
export OPENAI_API_KEY='your-api-key-here' | |
Remember to replace 'your-api-key-here' with your actual OpenAI API key. | |
2. After setting the API key, you can run the script with the following command: | |
python gpt_cli.py | |
3. Once the script is running, you can start typing your messages into the terminal. The model's responses will be printed out. You can keep the conversation going for as long as you like. |
/*#### Bulk add everyone on "My Network" tab on LinkedIn ####*/ | |
// ---==== Steps to use ====--- | |
// 1. Go to https://www.linkedin.com/mynetwork/ | |
// 2. Open Dev Console in your browser. Google "how to open dev console in <your-browser-name> for instructions". | |
// 3. Go to Console tab. | |
// 4. Paste the oneliner below into the console window and press enter. | |
// 5. ??? | |
// 6. Profit. |
// Bulk archive old facebook posts | |
// Writen by: @jatinkrmalik | |
// # Usage guide: | |
// 1. Open https://www.facebook.com/<your_user_id>/allactivity/ | |
// 2. Click on "Manage activity" in the left panel. | |
// 3. Make sure "Your posts" is selected. | |
// 4. Execute the script in dev console. | |
// 5. ??? | |
// 6. PROFIT! |
#!/usr/bin/env python3 | |
"""tally_backup.py: this auto backups the zip and folder for tally data.""" | |
__author__ = "Jatin Kumar Malik (@jatinkmalik)" | |
import os | |
import zipfile | |
import shutil |
import psycopg2 | |
import pymysql | |
class Database(object): | |
def __init__(self, host_name, user_name, database_name, password, port): | |
self.host_name = host_name | |
self.user_name = user_name | |
self.database_name = database_name | |
self.password = password |
import json | |
def prettyPrint(dct): | |
print(json.dumps(dct, indent=4, sort_keys=True)) | |
if __name__ == "__main__": | |
sample = {'name':'Jatin K Malik', 'age':25, 'id':1299, 'address':'Delhi, India', 'phone':9999999999, 'hobbies':'Code'} | |
prettyPrint(sample) | |
# Razorpay docs: | |
# https://github.com/razorpay/razorpay-python | |
# https://docs.razorpay.com | |
import razorpay # pip3 install razorpay | |
api_key = '<enter your api key here>' | |
api_secret = '<enter your api secret here>' | |
class RazorPay: |
# !/usr/bin/python | |
import time | |
from modules.faceOnboarding import service | |
from flask import Response | |
from modules.faceOnboarding import app | |
import tempfile | |
@app.app.route('/video_feed') |
# Testing python-omxplayer-wrapper from https://github.com/willprice/python-omxplayer-wrapper | |
from omxplayer import OMXPlayer as op | |
from time import sleep | |
file_path = '../audio/Baby.mkv' | |
player = op(file_path) | |
player.play() | |
sleep(10) |