Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mohammad Quadri quadrixm

🏠
Working from home
View GitHub Profile
@quadrixm
quadrixm / fu_docker_cmd.md
Last active Feb 13, 2019
Frequently used docker commands
View fu_docker_cmd.md

Running linux docker images

docker run -i -t ubuntu:12.04 /bin/bash
@quadrixm
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
#parse("File Header.java")
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
quadrixm / debug.sh
Created Aug 3, 2018
Play Debug shel script
View debug.sh
#!/usr/bin/env bash
# Checks if nginx is starting if not start it
if pgrep -xq -- "nginx"; then
echo nginx running
else
echo starting nginx
sudo nginx
fi
View ipfs--help.txt
USAGE
ipfs - Global p2p merkle-dag filesystem.
SYNOPSIS
ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...
OPTIONS
-c, --config string - Path to the configuration file to use.
-D, --debug bool - Operate in debug mode.
@quadrixm
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.