Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View quadrixm's full-sized avatar
👋
Hello World!

Mohammad Quadri quadrixm

👋
Hello World!
View GitHub Profile
@quadrixm
quadrixm / fu_docker_cmd.md
Last active February 13, 2019 12:20
Frequently used docker commands

Running linux docker images

docker run -i -t ubuntu:12.04 /bin/bash
@quadrixm
quadrixm / CustomSpringBootRestControllerVelocityTemplate
Created November 28, 2018 07:38
Custom Spring Boot Rest Controller Apache Velocity Template
#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 August 3, 2018 04:33
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
else
echo starting nginx
sudo nginx
fi
@quadrixm
quadrixm / ipfs--help.txt
Created July 12, 2018 06:44
ipfs --help
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 July 12, 2018 05:10
IPFS - Quick Start
# 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