Skip to content

Instantly share code, notes, and snippets.

View suryaavala's full-sized avatar
🚀
To infinity and beyond!

Surya Avala suryaavala

🚀
To infinity and beyond!
View GitHub Profile
@suryaavala
suryaavala / gist:78604b248796826fd27d9e677d3e926d
Created May 24, 2021 06:45 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://server.com/my-repo1.git
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command
git filter-branch --subdirectory-filter your_dir -- -- all
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command.
@suryaavala
suryaavala / get_car_2.0.json
Created December 11, 2019 03:25
Swagger Api 2.0 - Get Car
{
"swagger": "2.0",
"info": {
"description": "API to return Car Image",
"version": "1.0.0",
"title": "Get_Car API"
},
"schemes": [
"https"
],
@suryaavala
suryaavala / remove-all-from-docker.sh
Created August 23, 2019 13:58 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@suryaavala
suryaavala / README-Template.md
Last active March 6, 2020 08:37 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites