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 / 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 / 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 || :'
@maulvi
maulvi / redocker.sh
Created November 25, 2020 13:54 — forked from codeck/redocker.sh
redsocks for docker container
cat <<EOF
TYPE The following commands:
sysctl -w net.ipv4.conf.docker0.route_localnet=1
iptables -t nat -N REDSOCKS
iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
@maulvi
maulvi / via-ssh.sh
Last active November 25, 2020 13:50 — forked from vitex/via-ssh.sh
A script that uses redsocks to build a system-wide OpenSSH SOCKS proxy.
#!/bin/sh
########################################################################
#
# Usage: via-ssh.sh [-v] [-d] [USER@]SERVER[:PORT]
#
# -v Provide verbose output.
# -d Send all UDP on the DNS port 53 to 127.0.0.1.
# USER User name to use for SSH; default is current user.
# SERVER Server to use for SSH.
@maulvi
maulvi / SetupSSHForwardingOnQNAP.md
Created November 5, 2019 07:11 — forked from smuda/SetupSSHForwardingOnQNAP.md
Setup SSH forwarding on QNAP NAS

On receiving NAS:

setcfg LOGIN "SSH AllowTcpForwarding" TRUE
reboot

On client to forward local port 8443 to the QNAP admin interface:

ssh user@host -L 8443:localhost:443
@maulvi
maulvi / http_multithreaded.py
Created April 24, 2017 03:26 — forked from gnilchee/http_multithreaded.py
Multi-threaded Python3 HTTP Server
#!/usr/bin/env python3
import sys, os, socket
from socketserver import ThreadingMixIn
from http.server import SimpleHTTPRequestHandler, HTTPServer
HOST = socket.gethostname()
class ThreadingSimpleServer(ThreadingMixIn, HTTPServer):
pass
@maulvi
maulvi / README.md
Last active April 23, 2017 11:48 — forked from nkcmr/README.md
simple deluge complete scope that uploads stuff to google drive

deluge to google drive uploader

simple uploader script for deluge, assign this script to be called on torrent complete and it will walk a directory and upload it to your google drive

install dependencies:

npm install googleapis async winston lodash mime twilio
@maulvi
maulvi / owncloud9_deb8_instal.sh
Created January 28, 2017 17:59 — forked from gnanet/owncloud9_deb8_instal.sh
ownCloud 9 on Debian 8
# https://download.owncloud.org/download/repositories/stable/owncloud/
wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O - | apt-key add -
echo "deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /" >> /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud