Skip to content

Instantly share code, notes, and snippets.

Websocket debugging

Sharat MR cosmosgenius

Websocket debugging
View GitHub Profile
cosmosgenius /
Created Jul 23, 2021
Detect if the app is flutter or not
import argparse
import os.path
from zipfile import ZipFile
parser = argparse.ArgumentParser()
parser.add_argument("app", help="Path to IPA file")
args = parser.parse_args()
ipalocation =
if not os.path.isfile(ipalocation):
raise Exception("file missing")
cosmosgenius /
Created Sep 20, 2020
Python3 request dump http.server
#!/usr/bin/env python3
import os
import contextlib
import sys
import socket
from functools import partial
import logging
from http.server import (
View Learning CV in 20 steps
1) Read an image from file
2) Display an image that you read from file
3) Capture Video using your webcam and display the feed
4) Display back and white live stream from your webcam.
5) Have a slider to change brightness of the webcam live stream. Display.
6) Have a slider to change contrast of the webcam live stream. Display.
7) Capture a snapshot from your webcam. Then display difference between live video stream and this snapshot. (Background subtraction)
8) Display Canny edge image from your live webcam stream
9) Have a slider to change smoothness / sharpness of image from live webcam stream.
10) Display histogram of colors (RGB) from your live webcam stream
View post-receive
git --work-tree=/home/ubuntu/settings.git --git-dir=/home/ubuntu/settings.git/.git pull -p
View confd.service
ExecStart=/usr/bin/confd -backend etcd -node --watch
cosmosgenius / etcd.xml
Created Mar 31, 2017
etcd firewalld service
View etcd.xml
<?xml version="1.0" encoding="utf-8"?>
<short>etcd is a distributed, consistent key-value store for shared configuration and service discovery</short>
<description>etcd is a distributed, consistent key-value store for shared configuration and service discovery</description>
<port protocol="tcp" port="2379"/>
<port protocol="tcp" port="2380"/>

Keybase proof

I hereby claim:

  • I am cosmosgenius on github.
  • I am sharat ( on keybase.
  • I have a public key ASBDRPP_r-Bj96F6J8KK9yiTGlDo4xaT4Wq3pYOsloHY3Ao

To claim this, I am signing this object:

port 6379
timeout 0
tcp-keepalive 0
loglevel notice
logfile stdout
databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
cosmosgenius / nginx-compile-configure
Created Oct 19, 2013
nginx compilation configurations
View nginx-compile-configure
./configure --prefix=$HOME \
--sbin-path=$HOME/sbin/nginx \
--conf-path=$HOME/etc/nginx/nginx.conf \
--error-log-path=$HOME/var/logs/nginx/error.log \
--http-log-path=$HOME/var/logs/nginx/access.log \
--pid-path=$HOME/var/logs/nginx/ \
--lock-path=$HOME/var/logs/nginx/nginx.lock \
--http-proxy-temp-path=$HOME/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=$HOME/tmp/nginx/fastcgi/ \
--http-uwsgi-temp-path=$HOME/tmp/nginx/uwsgi/ \
View nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/;
events {
worker_connections 4096;