semantics as spears whilst logic a red herring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| pkgs=( | |
| "huggingface_hub" | |
| "python-dotenv" "openai" | |
| "torch torchvision torchaudio" | |
| "bitsandbytes" | |
| "accelerate>=0.20.3" | |
| "git+https://github.com/huggingface/transformers" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| pkgs=("huggingface_hub" "python-dotenv" "openai") | |
| for pkg in "${pkgs[@]}"; do | |
| echo -e '\n INSTALLING: ' + $pkg | |
| pip install $pkg | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # p - power draw | NVIDIA-SMI | |
| # t - temp threshold | NVIDIA-SMI | |
| # f - fan speed | NVIDIA-SETTINGS | |
| # m - memory transfer rate offset | NVIDIA-SETTINGS | |
| # g - graphics clock offset | NVIDIA-SETTINGS | |
| # NEEDS TO BE REFACTORED AS THIS IS SLOPPY CODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # f - is fan speed by provding a gpu-index-# | |
| # l - list amount of GPUs | |
| # m - memory clock | |
| # g - graphics clock | |
| # p - power draw | |
| # @TODO - NEED A SCRIPT TO PULL TEMP LIMIT | |
| # CODE NEEDS TO BE REFACTORED THIS IS SLOPPY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addr1q8aez3jp4m2zzangdhvux0952hhnsp6w3mep7xzsru7mmxneddtv450pl94c7n6xtlnp9dgwksv5z4aczj575jjgk9esn9x8ur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import pytube | |
| from multiprocessing import Process | |
| playlist_url = input("Enter the playlist url: ") | |
| folder_name = input("Enter the folder name where the videos will be downloaded: ") | |
| procs_running = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A sloppy python permutative-based "precision" wallet brute forcer (have to run local-node and cardano wallet) | |
| # if you recover too many at once syncs can take a crazy amount of time, which you need a certain % synced to check balance even if keys worked and a wallet was found, so this might be a bad way to approach this | |
| # on big scrapes you will recover many empties with successful keys | |
| import itertools | |
| import requests | |
| import json | |
| from twilio.rest import Client |
-- ADA HANDLES FROM STAKE-KEY
SELECT convert_from(multi_asset.name, 'UTF8') FROM utxo_view JOIN stake_address ON stake_address.id = utxo_view.stake_address_id RIGHT JOIN tx_metadata ON utxo_view.tx_id = tx_metadata.tx_id RIGHT JOIN ma_tx_mint ON ma_tx_mint.tx_id = tx_metadata.tx_id LEFT JOIN multi_asset ON ma_tx_mint.ident = multi_asset.id WHERE view = ? AND multi_asset.policy='\xf0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a';
(test skey on preview: 'stake_test1urc63cmezfacz9vrqu867axmqrvgp4zsyllxzud3k6danjsn0dn70')
-- w/ naming shortened --
SELECT convert_from(ma.name, 'UTF8') FROM utxo_view uv JOIN stake_address sa ON sa.id = uv.stake_address_id RIGHT JOIN tx_metadata txm ON uv.tx_id = txm.tx_id RIGHT JOIN ma_tx_mint ON ma_tx_mint.tx_id = txm.tx_id LEFT JOIN multi_asset ma ON ma_tx_mint.ident = ma.id WHERE view = ? AND ma.policy='\xf0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a';
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import openai | |
| openai.api_key = "<YOUR-API-KEY-HERE>" | |
| def makeGPT(prompt_using): | |
| completion = openai.Completion.create( | |
| engine="text-davinci-003", | |
| prompt=prompt_using, | |
| max_tokens=1024, | |
| n=1, |