Skip to content

Instantly share code, notes, and snippets.

Avatar

Anoop M D anoopmd

View GitHub Profile
@anoopmd
anoopmd / git-plumbing.md
Last active Oct 25, 2020
Git Plumbing Commands
View git-plumbing.md

Git plumbing Commands

Check Object Type

git cat-file -t 47ef

Pretty Print Object Content

git cat-file -p 47ef
@anoopmd
anoopmd / Slush & Poppies ST Theme
Created Dec 17, 2019
Slush & Poppies ST Theme
View Slush & Poppies ST Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>William D. Neumann</string>
<key>name</key>
<string>Slush &amp; Poppies</string>
<key>settings</key>
<array>
@anoopmd
anoopmd / database.php
Last active Jan 1, 2019
InMemoryDB php class psuedo code
View database.php
<?php
class Database
{
/**
* Storage
* @var array
*/
protected $database = array();
@anoopmd
anoopmd / .sublime-keymap
Last active Sep 19, 2018
ST3 Key Bindings
View .sublime-keymap
[
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }
]
@anoopmd
anoopmd / Preferences.sublime-settings
Last active Dec 10, 2019
Subime Settings as on 5 Sep 2018
View Preferences.sublime-settings
{
"color_scheme": "Packages/Babel/Next.tmTheme",
"draw_indent_guides": false,
"folder_exclude_patterns":
[
"**/node_modules",
"**/bower_components",
"**/.git",
".sass-cache",
"public"
@anoopmd
anoopmd / .bashrc
Created Sep 5, 2018
Better Command Line Prompt
View .bashrc
# https://coderwall.com/p/pn8f0g/show-your-git-status-and-branch-in-color-at-the-command-prompt
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
COLOR_GREEN="\033[0;32m"
COLOR_OCHRE="\033[38;5;95m"
COLOR_BLUE="\033[0;34m"
COLOR_WHITE="\033[0;37m"
COLOR_RESET="\033[0m"
@anoopmd
anoopmd / .npmrc
Created Jul 24, 2018
NPM Proxy Settings for Oracle
View .npmrc
http_proxy=http://www-proxy.us.oracle.com:80
https_proxy=https://www-proxy.us.oracle.com:443
proxy=http://www-proxy.us.oracle.com:80
strict-ssl=false
registry=http://registry.npmjs.org
View .keybindings.json
[
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}
]
@anoopmd
anoopmd / .bashrc
Created Jun 5, 2018
Bashrc Aliases
View .bashrc
alias gs='git status';
alias gd='git diff';
alias gpm='git push origin master';
alias b='npm run build';
alias t='npm test';
alias sd='npm run start.dev';
alias vscode='/home/anoop/.local/share/umake/ide/visual-studio-code/bin/code';
View gist:8fe7398501afc35326bb552c39180b60
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"workbench.colorCustomizations": {
"[Slush & Poppies+]": {
"editor.foreground": "#101010",
"editor.background": "#f1f1f1",
"sideBar.background": "#f1f1f1"
}
},