Skip to content

Instantly share code, notes, and snippets.

View reflexdemon's full-sized avatar

Venkateswara Venkatraman Prasanna reflexdemon

View GitHub Profile
@reflexdemon
reflexdemon / useful-bash.md
Last active April 20, 2019 13:27
Useful Bash command

Useful goodies for bash

##Bash first line (shebang)

#!/bin/bash

Profile

@reflexdemon
reflexdemon / tomcat-domain.md
Last active September 27, 2016 21:20
Handling Tomcat domains

Running Tomcat on separate domain folders

tomcat_common.sh

#!/bin/bash

#Tomcat's catalina.sh require this line
export JAVA_OPTS=$JAVA_OPTIONS
@reflexdemon
reflexdemon / angularjs-providers-explained.md
Last active January 19, 2017 12:52 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@reflexdemon
reflexdemon / typescript-basic.md
Last active May 12, 2020 09:54
Type Scripts and Java - Basic types Comparision

Typescripts for Java Developer

Here are some notes on understanding the typescripts and java programming language.

Boolean

Java

Boolan b = Boolean.TRUE;
@reflexdemon
reflexdemon / GIT-Goodies.md
Last active March 25, 2016 21:54
Git Goodies

#Useful goodies for GIT Command-line

Dangerous commands (e.g. you can lose your work) are labelled ⚠.

##Making local copy of a repo

$ git clone git@github.com:reflexdemon/demo.git

##Checkout to a Specific Branch/Tag/commit

@reflexdemon
reflexdemon / Vagrantfile
Created July 15, 2017 16:44
Java 8 Mongo Node JS
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@reflexdemon
reflexdemon / Vagrantfile
Created July 16, 2017 02:59
Java 9 Mongo Node JS
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@reflexdemon
reflexdemon / launch.json
Last active March 17, 2018 03:15
VS Code Angular 4 Debug:Angular CLI
{
"noteComment": "I copied this from https://stackoverflow.com/questions/42495655/how-to-debug-angular-with-vscode",
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4200",
"webRoot": "${workspaceRoot}",
@reflexdemon
reflexdemon / update-remote.md
Created January 22, 2018 03:13
Heroku Update GIT Remote

Step 1: Remove the remote

git remote rm heroku                                    

Step 2: Set the remote to the Project's GIT

@reflexdemon
reflexdemon / ClearLine.java
Last active April 6, 2018 00:23
Test program to clear line
public class ClearLine {
public static void main(String[] argv) throws Exception {
//https://stackoverflow.com/questions/7522022/how-to-delete-stuff-printed-to-console-by-system-out-println?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
// int count = 1;
// System.out.print(String.format("\033[%dA",count)); // Move up
// System.out.print("\033[2K"); // Erase line content
System.out.print("hello");