Skip to content

Instantly share code, notes, and snippets.

View prabhakar711's full-sized avatar
☯️
Searching for peace.

Prabhakaran prabhakar711

☯️
Searching for peace.
View GitHub Profile
@prabhakar711
prabhakar711 / .zshrc
Created January 7, 2022 04:16 — forked from zanshin/.zshrc
My .zshrc file
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"
@prabhakar711
prabhakar711 / CHANGELOG.md
Created October 15, 2020 05:26 — forked from juampynr/CHANGELOG.md
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@prabhakar711
prabhakar711 / helm-cheatsheet.md
Created May 25, 2020 09:11 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!
@prabhakar711
prabhakar711 / mapOrder.js
Created March 18, 2020 14:32 — forked from ecarter/mapOrder.js
Order an array of objects based on another array order
/**
* Sort array of objects based on another array
*/
function mapOrder (array, order, key) {
array.sort( function (a, b) {
var A = a[key], B = b[key];

Reset mysql root password in Mac OS:

First Stop MySQL:

  1. Go to: 'System Preferences' >> 'MySQL' and stop MySQL

OR,

  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
@prabhakar711
prabhakar711 / highlight.pipe.ts
Created July 22, 2019 05:18 — forked from adamrecsko/highlight.pipe.ts
Angular2 text highlight pipe
import {PipeTransform, Pipe} from 'angular2/core';
@Pipe({ name: 'highlight' })
export class HighLightPipe implements PipeTransform {
transform(text: string, [search]): string {
return search ? text.replace(new RegExp(search, 'i'), `<span class="highlight">${search}</span>`) : text;
}
}
/** Usage:
@prabhakar711
prabhakar711 / ubuntu_agnoster_install.md
Created September 1, 2017 05:23 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH