Skip to content

Instantly share code, notes, and snippets.

View nasterfy's full-sized avatar

nasterfy nasterfy

View GitHub Profile
@aljbri
aljbri / idm_reset_trial.md
Last active April 18, 2025 09:53
Internet Download Manager reset trial

IDM reset trial

Internet Download Manager (IDM) has two registry keys that are used to save the installation timestamp that considers the starting of the trial time. For resetting the timer both keys have to be deleted, besides other configurations that have to be reset to the default configuration.


To reset the time you can do it either by using the original setting that was used while installing the application for the first time. ConfigTime and MData have to be deleted, and the Thread value has to be set to 1 while the Model value will be set to 0x68. in addtion, you have to delete the IDM setting folder in this path %appdata%\IDM

  • copy the folowing code and save it in reg file
@pythoninthegrass
pythoninthegrass / starship.toml
Last active April 23, 2025 04:01
Starship prompt setup
# SOURCES
# https://starship.rs/config
# https://starship.rs/presets/nerd-font.html#configuration
# DEBUG via:
# starship explain
# STARSHIP_LOG=trace
"$schema" = 'https://starship.rs/config-schema.json'
@Quasimondo
Quasimondo / gist:71d9eb865210cd7e66e4690c28c5e72c
Created July 26, 2021 19:00
Install Cuda 11-1 on Ubuntu 20.94
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt upgrade
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda-repo-ubuntu2004-11-1-local_11.1.0-455.23.05-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-1-local_11.1.0-455.23.05-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu2004-11-1-local/7fa2af80.pub
sudo apt-get update
@stefansundin
stefansundin / requests_api.py
Last active January 22, 2025 11:47
Reusable class for Python requests library.
# http://docs.python-requests.org/en/master/api/
import requests
class RequestsApi:
def __init__(self, base_url, **kwargs):
self.base_url = base_url
self.session = requests.Session()
for arg in kwargs:
if isinstance(kwargs[arg], dict):
kwargs[arg] = self.__deep_merge(getattr(self.session, arg), kwargs[arg])