Skip to content

Instantly share code, notes, and snippets.

@simrit1
simrit1 / falcon_pdf_bot.py
Created August 23, 2023 20:22 — forked from abhishekkrthakur/falcon_pdf_bot.py
This is a reference to the YouTube tutorial here: https://youtu.be/hSQY4N1u3v0
import argparse
from pdfminer.high_level import extract_text
from sentence_transformers import SentenceTransformer, CrossEncoder, util
from text_generation import Client
PREPROMPT = "Below are a series of dialogues between various people and an AI assistant. The AI tries to be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable. The assistant is happy to help with almost anything, and will do its best to understand exactly what is needed. It also tries to avoid giving false or misleading information, and it caveats when it isn't entirely sure about the right answer. That said, the assistant is practical and really does its best, and doesn't let caution get too much in the way of being useful.\n"
PROMPT = """"Use the following pieces of context to answer the question at the end.
If you don't know the answer, just say that you don't know, don't try to
// ==UserScript==
// @name Quizlet Match Hacker
// @namespace Ray D. Adams
// @version 1.1
// @description The time will freeze and the answers will be the same color
// @author You
// @match https://quizlet.com/*/*
// @grant none
// @license MIT
// ==/UserScript==
@simrit1
simrit1 / aurora.py
Created August 19, 2022 18:36 — forked from schollz/aurora.py
My Raspberry Pi Aurora Alarm Clock
import time
import json
import requests
from bs4 import BeautifulSoup
import RPi.GPIO as GPIO
# Setup GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
@simrit1
simrit1 / fine_tune_glove.py
Created July 29, 2022 21:51 — forked from chmodsss/fine_tune_glove.py
Fine tuning glove embeddings using Mittens
import csv
import numpy as np
from collections import Counter
from nltk.corpus import brown
from mittens import GloVe, Mittens
from sklearn.feature_extraction import stop_words
from sklearn.feature_extraction.text import CountVectorizer
def glove2dict(glove_filename):
@simrit1
simrit1 / exfiltration.md
Created July 27, 2022 23:06 — forked from ricardomaia/exfiltration.md
Eavesdropping / Data exfiltration

Eavesdropping / Data exfiltration

My collection of eavesdropping / data exfiltration videos from air gapped computers.

Air-Fi: Generating Covert Wi-Fi Signals from Air-Gapped Computers

https://www.youtube.com/watch?v=vhNnc0ln63c

POWER-SUPPLaY: Leaking Data from Air-Gapped Systems by Turning the Power-Supplies Into Speakers

@simrit1
simrit1 / PY-ReduceSum.ipynb
Created July 27, 2022 20:25 — forked from WetHat/PY-ReduceSum.ipynb
SymPy: Reducing Symbolic Sums Over Constants
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simrit1
simrit1 / PY-BoxTree.ipynb
Created July 27, 2022 20:25 — forked from WetHat/PY-BoxTree.ipynb
A Partially Balanced Bounding Box Tree Implementation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simrit1
simrit1 / PY-CircleFitting.ipynb
Created July 27, 2022 20:25 — forked from WetHat/PY-CircleFitting.ipynb
Fitting a Circle to a 2d Point Cloud by Linear Least Squares
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.