Skip to content

Instantly share code, notes, and snippets.

View manniru's full-sized avatar

MUHAMMAD MANNIR AHMAD manniru

View GitHub Profile
@manniru
manniru / nllb200_translate.py
Created April 27, 2024 16:35 — forked from glowinthedark/nllb200_translate.py
Text translation with facebook/nllb-200-3.3B model
#!/usr/bin/env python3
# Dependencies
# =============================
# pip install nltk transformers
import argparse
import sys
from pathlib import Path
@manniru
manniru / BBC-Radio-HLS.m3u
Created March 13, 2024 00:23 — forked from bpsib/BBC-Radio-HLS.m3u
BBC Radio Streams
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Xtra
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Dance
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Relax
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_relax/bbc_radio_one_relax.isml/bbc_radio_one_relax-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 2
#!/bin/bash
set -e
green="\033[00;32m"
txtrst="\033[00;0m"
# Disable UFW
if [ -x "$(command -v ufw)" ]; then
echo -e "${green}Disabling UFW...${txtrst}"
ufw disable
@manniru
manniru / forexfactory_econcal.py
Created December 27, 2023 07:32 — forked from pohzipohzi/forexfactory_econcal.py
A scraper for forex factory economic calendar data
from bs4 import BeautifulSoup
import requests
import datetime
import logging
import csv
def setLogger():
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
filename='logs_file',
@manniru
manniru / README.md
Created December 2, 2023 18:26 — forked from BillRaymond/README.md
Run AUTOMATIC1111's Stable Diffusion Web UI in Docker and VSC on Mac M-series chips

Run AUTOMATIC1111's Stable Diffusion Web UI on a Mac M1 using Docker and Visual Studio Code

👉 This is for testing purposes. It is using Docker. It will be slow and may crash. I suggest you read the FAQ and Docker Pre-requisites sections before jumping into this.

Stable Diffusion Prompt: A beautifully colored cat sitting in the clouds with a rainbow in the background, in the style of Andy Warhol

Like this?

Contact Me For Install Opigno LMS Linux:
Telegram: https://t.me/LinuxGun
WhatsApp: https://wa.link/o9zcd5
Skype: https://join.skype.com/wjhRb0v3AeoM
SMS: +8801890757616
IMO: +8801890757616
BiP: +8801890757616
Viber: +8801890757616
Signal: +8801890757616
Discord: blockchain#9191
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
# 1. Initialize Firebase Admin SDK
cred = credentials.Certificate('./e-naira-firebase-adminsdk.json')
firebase_admin.initialize_app(cred)
db = firestore.client()
# 2. Read all the documents from the original collection
@manniru
manniru / finetune_llama_v2.py
Created July 28, 2023 12:10 — forked from younesbelkada/finetune_llama_v2.py
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
(venv) # Exit:0 2023-03-12 16:59:27 [r2q2@Reformer#[:~/opt/llama.cpp]
$(: !605 ) ./main -m ./models/65B/ggml-model-q4_0.bin -t 8 -n 128
main: seed = 1678658429
llama_model_load: loading model from './models/65B/ggml-model-q4_0.bin' - please wait ...
llama_model_load: n_vocab = 32000
llama_model_load: n_ctx = 512
llama_model_load: n_embd = 8192
llama_model_load: n_mult = 256
llama_model_load: n_head = 64
llama_model_load: n_layer = 80
import PDFDocument from "pdfkit";
import qr from "qr-image";
import bg from "src/esys/images/bg";
import coa from "src/esys/images/coa";
import sign from "src/esys/images/sign";
const irs = JSON.parse(`{
"name": "GOMBE STATE INTERNAL REVENUE SERVICE - IGR PLATFORM",