Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Masum Chowdhury saydulk

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
saydulk / RabbitMQ.sh
Last active May 3, 2019
RabbitMQ Ubuntu
View RabbitMQ.sh
#!/bin/sh
For install RabbitMQ Ubuntu 18.04 LTS
sudo apt-key adv --keyserver "hkps.pool.sks-keyservers.net" --recv-keys "0x6B73A36E6026DFCA"
wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | 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
View sc.sh
/* ====================================================================
* 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
saydulk / update.sh
Last active Apr 28, 2019
Kannel 1.4.5 with OpenSMPP and SQLBox Installation Script for Ubuntu 18.04
View update.sh
#!/bin/sh
apt-get update
apt-get install mysql-server
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz
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/
make
@saydulk
saydulk / os.sh
Created Apr 23, 2019
osquery for autn
View os.sh
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.
@saydulk
saydulk / edx.sh
Created Apr 8, 2019
open edx install
View edx.sh
#!/bin/sh
sudo apt update && sudo apt-get upgrade --fix-missing
sudo apt install build-essential checkinstall
sudo apt install ubuntu-restricted-extras
sudo apt list --upgradable
sudo apt upgrade
sudo apt update
sudo apt-get -s autoremove
sudo echo "Cleaning Up" &&
@saydulk
saydulk / chrome.sh
Created Apr 1, 2019
Update Google Chrome in Ubuntu
View chrome.sh
#!/bin/sh
# Update Google Chrome in Ubuntu
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install libnss3-1d
sudo apt-get --only-upgrade install google-chrome-stable
sudo apt-get upgrade
View firefly iii install on 18.04.md

Firefly III install on Ubuntu 18.04

These instructions will install Firefly III on Ubuntu 18.04. It includes setup for:

  • PHP 7.2
  • Nginx
  • MariaDB
  • Securing an Ubuntu server
  • Securing Maria DB
  • Let's Encrypt
@saydulk
saydulk / GitLab.sh
Last active Mar 12, 2019
GitLab Update To Latest
View GitLab.sh
#!/bin/sh
sudo wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo chmod 777 gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo touch /etc/gitlab/skip-auto-migrations
sudo dpkg -i gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_8.2.0-ce.0_amd64.deb/download.deb
sudo chmod 777 gitlab-ce_8.2.0-ce.0_amd64.deb
@saydulk
saydulk / rc.local.sh
Created Feb 28, 2019
rails app running after linux reboot
View rc.local.sh
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@saydulk
saydulk / RabbitMQ.sh
Created Jan 28, 2019
Install RabbitMQ on Ubuntu 16.04
View RabbitMQ.sh
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
cd ~
wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
sudo dpkg -i esl-erlang_20.1-1\~ubuntu\~xenial_amd64.deb
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get update
You can’t perform that action at this time.