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 / 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/
@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 (yangtao9009@gmail.com)
'''
import os
import cv2
import glob
import time
import math
import argparse
@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 / SimSwap_videos.ipynb
Created July 30, 2023 11:36
SimSwap_videos
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / model_zoo.py
Last active July 18, 2023 11:50
wget -q https://gist.github.com/maulvi/e8e845d87a0a88abe89a3bc465c56e33/raw/5342a5650e6450882b7e28158802bce4018d38ae/model_zoo.py -O /usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py
# -*- coding: utf-8 -*-
# @Organization : insightface.ai
# @Author : Jia Guo
# @Time : 2021-05-04
# @Function :
#wget /usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py
import os
import os.path as osp
import glob
import onnxruntime
@maulvi
maulvi / install.txt
Last active June 30, 2023 14:57
one liner ffmpeg static install
apt-get install xz-utils && wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && mkdir -p ffmpeg-static && tar xvf ffmpeg-release-amd64-static.tar.xz -C ffmpeg-static --strip-components 1 && sudo mv ffmpeg-static/ff* /usr/bin/
@maulvi
maulvi / w.m3u8
Created November 23, 2022 15:09
m3u8
#EXTINF:0 tvg-country="UN" tvg-logo="" group-title="Sport",NBC Sports Washington
https://tv4.live/api/stream/robert.goldsby50@gmail.com/629662/livetv.epg/nbc.sports.washington.us.m3u8
#EXTINF:0 tvg-country="UN" tvg-logo="https://i.imgur.com/7NeBmWX.jpg" group-title="Sport",Red Bull TV
https://rbmn-live.akamaized.net/hls/live/590964/BoRB-AT/master.m3u8
#EXTINF:0 tvg-country="" tvg-logo="" group-title="Sport",Arena Sport 9 HR
https://tv4.live/api/stream/robert.goldsby50@gmail.com/629662/livetv.epg/arena.sport.9.hr.m3u8
#EXTINF:0 tvg-country="UN" tvg-logo="https://i.imgur.com/8ZFQ93Z.png" group-title="Sport",SPORT : ATG TV,SPORT | ATG TV
https://httpcache0-00688-cacheliveedge0.dna.qbrick.com/00688-cacheliveedge0/out/u/atg_sdi_1_free.m3u8
#EXTINF:0 tvg-country="ES" tvg-logo="" group-title="Sport",M. DEPORTES 8
http://listplay4k.live:8080/play/sEqGlXBK924GUbV9yuY_SA_Ye6MOfNX5qA4RME0A1dU/ts
@maulvi
maulvi / install-pulseaudio-module-xrdp.sh
Last active November 11, 2022 12:00 — forked from QuiltMeow/install-pulseaudio-module-xrdp.sh
Pulse Audio Module XRDP tested on debian 11
#!/bin/bash
apt-get update
apt-get dist-upgrade -y
apt-get install xrdp build-essential git autoconf libtool pkg-config libpulse-dev -y
adduser xrdp ssl-cert
systemctl restart xrdp
cd /root
git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
@maulvi
maulvi / turbovnc-service@1.service
Last active October 27, 2022 15:54 — forked from jiahut/turbovnc-service@1.service
turbovnc systemd service
[Unit]
Description=TurboVNC vncserver
After=network.target syslog.target
[Service]
User=labrax
Type=forking
ExecStartPre=/bin/sh -c '/opt/TurboVNC/bin/vncserver -kill :1 &>/dev/null || :'
ExecStart=/opt/TurboVNC/bin/vncserver -nthreads 2 -disconnect -idletimeout 0 -interframe -depth 24 -name bal :1
ExecStop=/bin/sh -c '/opt/TurboVNC/bin/vncserver -kill :1 &>/dev/null || :'