Skip to content

Instantly share code, notes, and snippets.

No one is ever satisfied!

Syed Sirajul Islam Anik ssi-anik

No one is ever satisfied!
Block or report user

Report or block ssi-anik

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
ssi-anik /
Created Nov 21, 2019
bitnami container permission issues
  • Create the directory first mkdir -p ~/.backup/rabbitmq/lumen6
  • provide permission to that directory sudo chown -R 1001:1001 ~/.backup/rabbitmq/lumen6
  • sudo chown anik:anik ~/.backup/rabbitmq/lumen6
  • Run docker-compose up -d --build
ssi-anik / createMongoDbLikeId.php
Created Nov 1, 2019 — forked from h4cc/createMongoDbLikeId.php
A PHP function to generate IDs like MongoDB uses with its ObjectIDs
View createMongoDbLikeId.php
* Creating MongoDB like ObjectIDs.
* Using current timestamp, hostname, processId and a incremting id.
* @author Julius Beckmann
function createMongoDbLikeId($timestamp, $hostname, $processId, $id)
View ConsumerCommand.php
declare(strict_types = 1);
namespace App\Kafka;
use RdKafka;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
ssi-anik /
Last active Sep 11, 2019
[solved][ubunut] Docker API connection refused - docker daemon

Original solution here

  • Create a file on /etc/systemd/system/docker.service.d/startup_options.conf
# /etc/systemd/system/docker.service.d/override.conf
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://
ssi-anik /
Created Jul 24, 2019 — forked from subfuzion/
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View syslog-ng.conf
# ===============================================================================================
# Configuration file for syslog-ng, customized for remote logging
# ===============================================================================================
# Options
# Note about $HOST / HOST
# Description: The name of the source host where the message originates from.
# If the message traverses several hosts and the chain_hostnames() option is on, the first host in the chain is used.
# If the keep_hostname() option is disabled (keep_hostname(no)), the value of the $HOST macro will be the DNS hostname of the host that sent the message to syslog-ng OSE (that is, the DNS hostname of the last hop). In this case the $HOST and $HOST_FROM macros will have the same value.
View git-pull-all.bash
function git-pull-all() {
START=$(git symbolic-ref --short -q HEAD);
for branch in $(git branch | sed 's/^.//'); do
git checkout $branch;
git pull ${1:-origin} $branch || break;
git checkout $START;
ssi-anik / reverse-proxy.go
Created Nov 6, 2018
ilanyu/reverse-proxy golang server
View reverse-proxy.go
package main
import (
ssi-anik / Dockerfile
Created Oct 10, 2018 — forked from andrewmackrodt/Dockerfile
php:7.2-rc-zts-alpine +pthreads +xdebug
View Dockerfile
FROM php:7.2-rc-zts-alpine
RUN apk update && apk add --no-cache \
sudo bash \
g++ make autoconf \
libxml2-dev icu-dev curl-dev pcre-dev
RUN adduser -D -s /bin/bash $APP_USER_USERNAME \
View 1.

MongoDB Practice

MongoDB Exercise in mongo shell

Connect to a running mongo instance, use a database named mongo_practice.

Document all your queries in a javascript file to use as a reference.

Insert Documents

You can’t perform that action at this time.