Skip to content

Instantly share code, notes, and snippets.

@ken2190
ken2190 / spleeter.md
Created May 15, 2023 16:21 — forked from dungsaga/spleeter.md
Voice removal AKA karaoke creator
@ken2190
ken2190 / download_tiktok_videos.user.js
Created May 6, 2023 14:31 — forked from evstraw/download_tiktok_videos.user.js
Userscript to download tiktok videos shown in the browser, for ultimate memeing purposes. :)
// ==UserScript==
// @name Download Tiktok Videos
// @namespace https://tiktok.com/
// @version 0.1
// @description Adds download links for videos, even on private accounts.
// @author Evan Straw
// @include http://*.tiktok.com/*
// @include https://*.tiktok.com/*
// @grant none
// ==/UserScript==
Video tutorial of this gist file : https://www.youtube.com/watch?v=kmT-z2lqEPQ
Used web UI commit hash id: a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
Used ControlNet commit hash id : 241c05f8c9d3c5abe637187e3c4bb46f17447029
git checkout a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
git checkout master
@X-TRON404
X-TRON404 / cuda_11.7_installation_on_Ubuntu_22.04
Last active April 14, 2025 16:57 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@angeligareta
angeligareta / dhash_z_transformed.py
Last active December 31, 2023 17:06
DHash Image Hashing algorithm with z-transformation
# Inspired from https://github.com/JohannesBuchner/imagehash repository
import imagehash
from PIL import Image
def alpharemover(image):
if image.mode != 'RGBA':
return image
canvas = Image.new('RGBA', image.size, (255,255,255,255))
canvas.paste(image, mask=image)
return canvas.convert('RGB')
@adk7712
adk7712 / coinmarketcap-api.md
Last active April 20, 2025 17:23
Using the CoinMarketCap API: A Beginner's Guide

Using the CoinMarketCap API: A Beginner's Guide

CoinMarketCap is the world's most-referenced price-tracking website for crypto assets in the rapidly growing cryptocurrency space. Its mission is to make crypto discoverable and efficient globally by empowering retail users with unbiased, high quality and accurate information

In this guide, we will break down the process of leveraging the CoinMarketCap API to seamlessly integrate real-time crptocurrency data in your applications or projects.

While the examples in this blog primarily utilize Python code, it's important to note that the API can be utilized with various programming languages. To explore further, click here.


@bzed
bzed / BinanceMarketCapPairList.py
Created May 27, 2021 21:51
MarketCap pairlist filter for freqtrade
"""
Binance Marketcap PairList provider
Provides dynamic pair list based on market cap
"""
import logging
import requests
from typing import Any, Dict, List
from cachetools.ttl import TTLCache
@Cybergrany
Cybergrany / WeightedMultiParameterHyperOptLoss.py
Last active April 9, 2022 22:45
WeightedMultiparameterHyperOptLoss.py V 0.3
"""
WeightedMultiparameterHyperOptLoss.py V 0.3
-by Cybergrany
A loss function for Freqtrade's hyperopt feature, which allowes the user
to choose weights, which influence how much each parameter affects the objective.
For example, if I want quick trades and don't care too much about risk, I would
give more weight to trades and less to the sortino.
Most of the code here is based on existing freqtrade code, namely the sortino
function and max drawdown calculations. I've just added a way to incorporate
@tonyspan
tonyspan / README.md
Created March 3, 2021 13:36
Install gRPC C++

Install gRPC C++

A simple bash script to build and locally install gRPC C++. The instructions either on gRPC's website or other places weren't clear enough (at least for me) on how to install it. I spent about a week to finally install it and use it on my project.

Create a .sh file (e.g Install-gRPC.sh) containing the following code.

#!/bin/bash

DISTRO=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active April 15, 2025 09:32
Building a react native app in WSL2