Skip to content

Instantly share code, notes, and snippets.

View manniru's full-sized avatar

MUHAMMAD MANNIR AHMAD manniru

View GitHub Profile
@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",
import React, { useEffect, useState, SetStateAction } from 'react'
import { collection, query, where, onSnapshot } from 'firebase/firestore'
import { firestore } from 'src/firebase/clientApp'
import { DataGrid, GridColDef } from '@mui/x-data-grid'
import { Card, CardHeader } from '@mui/material'
const columns: GridColDef[] = [
{
import { z } from "zod";
import { zodToTs, printNode } from "zod-to-ts";
// Replace with your `openai` thing
import { openai } from "../openai.server";
import endent from "endent";
function createJSONCompletion<T extends z.ZodType>({
prompt,
schema_name,
#!/bin/sh
#
# Script for automatic setup of an IPsec VPN server on Ubuntu, Debian, CentOS/RHEL,
# Rocky Linux, AlmaLinux, Oracle Linux, Amazon Linux 2 and Alpine Linux
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC!
#
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#