Skip to content

Instantly share code, notes, and snippets.

Working from home

Mohammad Quadri quadrixm

Working from home
View GitHub Profile
quadrixm /
Last active Feb 13, 2019
Frequently used docker commands

Running linux docker images

docker run -i -t ubuntu:12.04 /bin/bash
quadrixm / CustomSpringBootRestControllerVelocityTemplate
Created Nov 28, 2018
Custom Spring Boot Rest Controller Apache Velocity Template
View CustomSpringBootRestControllerVelocityTemplate
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "") package ${PACKAGE_NAME};#end
import com.litewit.liv.entities.${ENTITY};
import com.litewit.liv.exceptions.ResourceNotFoundException;
import com.litewit.liv.repositories.${ENTITY_REPO};
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
quadrixm /
Created Aug 3, 2018
Play Debug shel script
#!/usr/bin/env bash
# Checks if nginx is starting if not start it
if pgrep -xq -- "nginx"; then
echo nginx running
echo starting nginx
sudo nginx
View ipfs--help.txt
ipfs - Global p2p merkle-dag filesystem.
ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...
-c, --config string - Path to the configuration file to use.
-D, --debug bool - Operate in debug mode.
quadrixm / IPFS-Quick-Start.txt
Last active Jul 12, 2018
IPFS - Quick Start
View IPFS-Quick-Start.txt
# 0.1 - Quick Start
This is a set of short examples with minimal explanation. It is meant as
a "quick start".
Add a file to ipfs:
echo "hello world" >hello
ipfs add hello
You can’t perform that action at this time.