Skip to content

Instantly share code, notes, and snippets.

Working from home


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 /
Last active Jul 8, 2019
Install tigervnc on Ubuntu

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 /
Last active Jul 21, 2018 Account Checker API
vincentius15 /
Last active Jun 3, 2018
Chat Protocol
import socket
import select
import sys
from threading import *
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ("localhost", 14000)
vijayantkatyal /
Created May 6, 2017
Live Video Stream to Facebook
# 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://"
# 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://"
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:
And then (also in cmd):
pm disable-user com.bluestacks.s2p
gnilchee /
Last active Dec 2, 2019
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):
nkcmr /
Last active Apr 23, 2017
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
matpalm /
Last active Aug 27, 2019
json formatting of nvidia-settings
#!/usr/bin/env python
# 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
delay = int(sys.argv[1])
delay = 1
1995eaton /
Created Oct 13, 2014
Simple Python Socket Messenger
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.