Skip to content

Instantly share code, notes, and snippets.

View sibinx7's full-sized avatar
🏠
Working from home

Sibin Xavier sibinx7

🏠
Working from home
View GitHub Profile
@sibinx7
sibinx7 / angular-2.md
Last active April 7, 2020 08:29
Angular 2+ learning

Angular Form

Angular form array -> group -> control

  • Watch value change in a form group array
availablePackages.forEach((item, index) => { // availablePackages is an array
      /* Watch value change package[index], specific group only */
      this.budgetForm.get('package').get(`${index}`).valueChanges.subscribe((value) => {
 console.log(value);
@sibinx7
sibinx7 / linux-shell-script.md
Last active March 1, 2020 09:15
Linux shell scripts
  • lsof -i:<PORT NAME>
  • kill $(lsof -t -i:<PORT NAME>)

Add Git branch name on Termianl

# Add Git branch and color scheme
function parse_git_branch () {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
@sibinx7
sibinx7 / Cyber-security-testing.md
Created February 3, 2020 16:16
Software testing, cyber security softwares

Free tools

  • OWASP ZAP
  • Burp Suite
@sibinx7
sibinx7 / vmware-settings.md
Created October 9, 2019 02:06
VMware player, workstation, workstation pro and Virtual box settings
@sibinx7
sibinx7 / javascript-script.md
Last active September 30, 2019 04:36
Javascript snippets

Call and Apply (Apply -> array, Call arguments)

tempArray.push.apply(tempArray, questions)