Skip to content

Instantly share code, notes, and snippets.

View DharanBro's full-sized avatar
:octocat:
Working remotely

Giridharan Rengarajan DharanBro

:octocat:
Working remotely
View GitHub Profile
@DharanBro
DharanBro / delete_git_submodule.md
Created February 16, 2019 07:39 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@DharanBro
DharanBro / readme.md
Created November 17, 2017 11:45 — forked from jobsamuel/readme.md
Run NodeJS as a Service on Ubuntu 14.04 LTS

Run NodeJS as a Service on Ubuntu 14.04 LTS

With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?

  • Go to /etc/init/
  • $ sudo vim yourapp.conf
  • Paste script.conf
  • $ sudo start yourapp
  • And when you wanna kill the process $ sudo stop yourapp
@DharanBro
DharanBro / index.html
Created May 16, 2017 12:38 — forked from jieter/index.html
Leaflet.Markercluster + leaflet-image
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet-src.js"></script>
@DharanBro
DharanBro / index.html
Last active May 16, 2017 12:39 — forked from jieter/index.html
Leaflet.Markercluster + leaflet-image
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet-src.js"></script>