Skip to content

Instantly share code, notes, and snippets.

View Suleman-Elahi's full-sized avatar
🏴‍☠️
Working from underground

Suleman Suleman-Elahi

🏴‍☠️
Working from underground
  • Winterhold
View GitHub Profile
@svpino
svpino / llama2.py
Last active January 25, 2024 13:12
Running a fine-tuned Llama 2 model
import torch
import peft
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
from huggingface_hub.hf_api import HfFolder
ACCESS_TOKEN = "ENTER YOUR HUGGINGFACE ACCESS TOKEN HERE"
HfFolder.save_token(ACCESS_TOKEN)
@Suleman-Elahi
Suleman-Elahi / unsaver.py
Last active April 23, 2023 00:31
Sript to unsave all saved Instagram posts. Uses Instagram private API by ping and its extensions to do the heavy lifting.
from instagram_private_api import Client, ClientCompatPatch
from instagram_private_api_extensions import pagination
import json, time
user_name = 'UserName'
password = 'PassWord'
api = Client(user_name, password)
items=[]
@jslim89
jslim89 / ig-login.py
Created April 26, 2018 06:34
Instagram login through requests
import requests
import pprint
INSTAGRAM_URL = 'https://www.instagram.com'
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
IG_ACCOUNTS = [
{'username': 'username1', 'password': 'pass1'},
{'username': 'username2', 'password': 'pass2'},
]
@FenrirCesar
FenrirCesar / GPS GSM Tracker
Created November 27, 2017 14:59
rastreador satelital por sms
#include <SoftwareSerial.h>
#include <TinyGPS.h>
SoftwareSerial gsm(7, 8); // RX, TX
TinyGPS gps;
SoftwareSerial ss(4, 3); // RX, TX
char numero_cell[]="985819817";//meter numero de telefono
int estado=13;
int led =12;
int i=0;
int j=0;
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active May 22, 2024 14:36
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arulrajnet
arulrajnet / MXEmailVerifier.py
Last active May 25, 2023 14:23
Verify the given mail id is valid or not, without sending mail. Verifying the email id directly from mail exchange server.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Verify the given mail id is valid or not without sending mail. Verifying the email id directly from mail exchange server.
"""
import argparse
import smtplib
import dns.resolver
@mgamini
mgamini / ajaxspreadsheet.js
Last active September 20, 2021 23:15
How to receive ajax data and store it in a Google spreadsheet
// Follow the instructions here: http://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
//
// That'll get you 80% of the way there. Unfortunately, you'll run into CORS and MIMETYPE errors, so make the following changes.
// ============================================================
// Your clientside script should actually look like this (jquery example):
// ============================================================
var data = {email: "email@address.com"}