Skip to content

Instantly share code, notes, and snippets.

View rehannali's full-sized avatar
🏠
Working from home

Rehan Ali rehannali

🏠
Working from home
View GitHub Profile
@rehannali
rehannali / extract_categories.py
Created December 21, 2019 18:38
Get categories from Jackett index
from bs4 import BeautifulSoup
with open("/Users/rehan/Documents/iOS Projects/Developers Clan/abc.html", "r") as file:
html_doc = file.read()
categories_arr = []
html_parser = BeautifulSoup(html_doc, "lxml")
all_td_tags = html_parser.find_all("td")
@rehannali
rehannali / trial-reset.py
Last active November 3, 2023 08:43
Trial Reseter for MAC
import os
from pathlib import Path
from sys import argv
class ResetTrial:
path = str(Path().home()) + "/Library/"
file_array = []
dir_array = []
@rehannali
rehannali / proxifier_3_28_trial_reset.bat
Created November 19, 2019 13:35
Proxifier 3.28 trial reset
REM Initex Software Proxifier 3.28 trial reset
REM Close Proxifier if it is running
taskkill /f /im Proxifier.exe
REM If you're using portable edition - delete "DefaultWANProfile" line in "Settings.ini" file in Proxifier PE folder too
reg delete "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v DefaultWANProfile /f
reg delete "HKCU\Software\Initex\Proxifier\Settings" /v DefaultWANProfile /f
@rehannali
rehannali / meld-config-sourcetree.txt
Last active August 23, 2019 10:36
Meld configuration with SourceTree
Install Meld > Add it to SystemPath where Meld.exe is located.
SourceTree > Tools > Options > Diff > Diff(Custom > Meld.exe) & Merge(Custom > Meld.exe)
Arguements:
Diff: $LOCAL $REMOTE
Merge: $LOCAL $BASE $REMOTE --auto-merge --output=$MERGED
If you got DLL Issue :
Copy "C:\Program Files (x86)\Meld\lib\libgirepository-1.0-1.dll" to "C:\Program Files (x86)\Meld\libgirepository-1.0-1.dll".
@rehannali
rehannali / IntelIJTrialReset.bat
Last active April 8, 2021 10:46
How to Reset InteIIiJ IDEA Evaluation Key in Windows
@echo off
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%APPDATA%\JetBrains\%%I*") do (
rd /s /q "%%a/eval"
del /q "%%a\options\other.xml"
)
)
reg delete "HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains\phpstorm\edca4a4e" /f