Skip to content

Instantly share code, notes, and snippets.

Working from home

Masum Chowdhury saydulk

Working from home
Block or report user

Report or block saydulk

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
saydulk /
Created Aug 18, 2019
Seting up nginx+RTMP module on ubuntu 18.04 ▶️ to push the stream to multiple platforms
sudo apt-get install wget unzip software-properties-common dpkg-dev git make gcc automake build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgd-dev libgeoip-dev libgoogle-perftools-dev libperl-dev pkg-config autotools-dev gpac ffmpeg mediainfo mencoder lame libvorbisenc2 libvorbisfile3 libx264-dev libvo-aacenc-dev libmp3lame-dev libopus-dev unzip
sudo add-apt-repository ppa:nginx/stable
apt update
saydulk /
Created Jul 16, 2019
Remote Desktop
# Ubuntu (GNOME) 18.04 Enable VNC with no encryption
sudo apt install gconf2 -y
sudo ufw allow from any to any port 5900 proto tcp
gconftool-2 --set --type=bool /desktop/gnome/remote_access/enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
echo $'\n'$"*** Encryption Disabled ***"
echo $'\n'$"*** Launching Settings ***"
saydulk /
Created Jul 2, 2019
Peatio Microkube Install Linux
COMPOSE_URL="$COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)"
# Microkube bootstrap script
install_core() {
sudo bash <<EOS
apt-get update
apt-get upgrade -y -q
saydulk / contract.sol
Last active Jun 19, 2019
smart contract
View contract.sol
# pragma solidity ^0.4.9;
pragma solidity >=0.4.21 <0.6.0;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
saydulk /
Last active May 25, 2019
Yarn Install Ubuntu 18.04 LTS
# Install
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo npm install -g yarn
yarn --version
# Uninstall
saydulk /
Last active May 25, 2019
Linuxbrew (un) install Linux
# Linuxbrew (un)installer
# Install Linuxbrew
sh -c "$(curl -fsSL"
sudo apt-get install build-essential
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
brew install gcc
saydulk /
Last active May 3, 2019
RabbitMQ Ubuntu
For install RabbitMQ Ubuntu 18.04 LTS
sudo apt-key adv --keyserver "" --recv-keys "0x6B73A36E6026DFCA"
wget -O - "" | sudo apt-key add -
sudo apt-get install apt-transport-https
sudo apt-get update -y
sudo apt -y install rabbitmq-server
sudo systemctl status rabbitmq-server.service
/* ====================================================================
* The Kannel Software License, Version 1.0
* Copyright (c) 2001-2010 Kannel Group
* Copyright (c) 1998-2001 WapIT Ltd.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
saydulk /
Last active Apr 28, 2019
Kannel 1.4.5 with OpenSMPP and SQLBox Installation Script for Ubuntu 18.04
apt-get update
apt-get install mysql-server
wget --no-check-certificate
tar -xvf bison-1.28.tar.gz
rm bison-1.28.tar.gz
cd bison-1.28
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
saydulk /
Created Apr 23, 2019
osquery for autn
Using python and osquery write two scripts (server_script and client_script).
1. Server_script Acts as TLS server that Listens to connections from client script.
2. Once a connection is established, the server needs to authenticate the client (ensure it's allowed to connect to the server) using osquery.
3. The server script prompts user for an osquery to execute on client.
4. Server script passes the command to the client script.
5. Client_script authorizes the request (ensure it's coming from an authorized server) using osquery (osquery is the one that does the actual authorization).
6. Client_script executes the query and returns the result to the server.
7. Server prints the result on the screen or - in case of error - reports the error.
You can’t perform that action at this time.