Skip to content

Instantly share code, notes, and snippets.

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

maulvi

🏠
Working from home
View GitHub Profile
@maulvi
maulvi / install.sh
Last active July 30, 2023 01:15 — forked from DavidAce/nvidia-tdp.service
Nvidia power limit at boot
cd /etc/systemd/system && wget https://gist.github.com/maulvi/462db65c55f072aa2ca5e890645bc573/raw/bb4a38fde0f223fcb6b31d8ee81575a2f78033b8/nvidia-tdp.service && wget https://gist.github.com/maulvi/462db65c55f072aa2ca5e890645bc573/raw/e13df4deb6f8e5e9945b079f0d3fd9736fa9055f/nvidia-tdp.timer && sudo systemctl daemon-reload && sudo systemctl enable --now nvidia-tdp.timer && sudo systemctl start nvidia-tdp.timer
@maulvi
maulvi / SimSwap_videos.ipynb
Created July 30, 2023 11:36
SimSwap_videos
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maulvi
maulvi / core.py
Created August 6, 2023 12:50
roop
#!/usr/bin/env python3
import os
import sys
# single thread doubles cuda performance - needs to be set before torch import
if any(arg.startswith('--execution-provider') for arg in sys.argv):
os.environ['OMP_NUM_THREADS'] = '1'
# reduce tensorflow log level
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import warnings
@maulvi
maulvi / demo.py
Created August 7, 2023 14:55
/content/GPEN/demo.py
'''
@paper: GAN Prior Embedded Network for Blind Face Restoration in the Wild (CVPR2021)
@author: yangxy ([email protected])
'''
import os
import cv2
import glob
import time
import math
import argparse
@maulvi
maulvi / Crack Sublime Text Windows and Linux.md
Created September 24, 2023 14:19 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
sudo nano /etc/modprobe.d/nvidia.conf
options nvidia-drm fbdev=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1
sudo update-initramfs -u
@maulvi
maulvi / docker-compose.yaml
Created December 4, 2025 07:31
docker nginx proxy manager + shared php fpm fastcgi
networks:
proxy-network:
external: false
services:
nginx-proxy-manager:
image: jc21/nginx-proxy-manager:latest
ports:
- 80:80
- 443:443
- 100.76.79.94:81:81
@maulvi
maulvi / i.txt
Created December 9, 2025 13:20
install hyprland noctalia
# ===== ESSENTIALS =====
pacman -Syu --noconfirm
pacman -S --noconfirm \
base-devel git curl wget \
vim neovim \
networkmanager \
linux-headers \
unzip zip \
man-db man-pages \
@maulvi
maulvi / openwrt.txt
Created December 21, 2025 06:31
openwrt redirect 53 from lan and block 53 requests
opkg install kmod-tcp-bbr luci-app-mwan3 ca-certificates curl nano stubby
# Tambah redirect rule (klien → port 53 → dipaksa ke dnsmasq port 53)
uci -q delete firewall.dns_redirect
uci set firewall.dns_redirect='redirect'
uci set firewall.dns_redirect.name='Force-DNS-to-Router'
uci set firewall.dns_redirect.src='lan'
uci set firewall.dns_redirect.src_dport='53'
uci set firewall.dns_redirect.proto='tcp udp'