Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

maulvi

🏠
Working from home
Block or report user

Report or block maulvi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@plembo
plembo / tigervnconubuntu.md
Last active Jul 8, 2019
Install tigervnc on Ubuntu
View tigervnconubuntu.md

Installing TigerVNC on Ubuntu

This is for Ubuntu 18.04 LTS. TigerVNC is a remote desktop server and viewer solution sponsored by Red Hat that is still in active development. There are packages for it in the repositories of the major distributions, but the latest versions for Ubuntu are broken. My workaround is to use the latest stable version from the TigerVNC project Github release page, where generic binaries for 32 and 64-bit Linux are distributed as tarballs (dmg and exe installers for Mac and Windows are also available).

  1. Remove any pre-existing vnc software, like RealVNC 4:
$ sudo apt remove --purge vnc4server xvnc4viewer
$ sudo aptautoremove
@dwisiswant0
dwisiswant0 / wifi.id_Account_Checker.md
Last active Jul 21, 2018
@wifi.id Account Checker API
View wifi.id_Account_Checker.md
@vincentius15
vincentius15 / Client.py
Last active Jun 3, 2018
Chat Protocol
View Client.py
import socket
import select
import sys
from threading import *
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ("localhost", 14000)
client.connect(server_address)
@vijayantkatyal
vijayantkatyal / live.sh
Created May 6, 2017
Live Video Stream to Facebook
View live.sh
# stream video
ffmpeg -re -i live.mp4 -c:v libx264 -preset veryfast -maxrate 3000k \
-bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \
-ar 44100 -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/"
# stream desktop
ffmpeg -video_size 1366x768 -framerate 25 -f x11grab -i :0.0 -ar 44100 -f alsa -ac 2 -i hw:0 -preset ultrafast output.mp4 -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/"
View Remove BlueStacks Ads
1. Open Windows command prompt (cmd.exe)
2. Run command
"c:\Program Files (x86)\BlueStacks\HD-Adb.exe" shell
Execute within BlueStacks via cmd:
/system/xbin/bstk/su
And then (also in cmd):
pm disable-user com.bluestacks.s2p
@gnilchee
gnilchee / http_multithreaded.py
Last active Dec 2, 2019
Multi-threaded Python3 HTTP Server
View http_multithreaded.py
#!/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
@nkcmr
nkcmr / README.md
Last active Apr 23, 2017
simple deluge complete scope that uploads stuff to google drive
View README.md

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
@matpalm
matpalm / gpu_stat.py
Last active Aug 27, 2019
json formatting of nvidia-settings
View gpu_stat.py
#!/usr/bin/env python
# gpu_stat.py [DELAY [COUNT]]
# dump some gpu stats as a line of json
# {"util":{"PCIe":"0", "memory":"11", "video":"0", "graphics":"13"}, "used_mem":"161"}
import json, socket, subprocess, sys, time
try:
delay = int(sys.argv[1])
except:
delay = 1
@1995eaton
1995eaton / client.py
Created Oct 13, 2014
Simple Python Socket Messenger
View client.py
#!/usr/bin/python2
from threading import Thread
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('localhost', 9999,))
class ReplyHandler(Thread):
You can’t perform that action at this time.