Skip to content

Instantly share code, notes, and snippets.

@nagakputtagunta
nagakputtagunta / nk65-rfp_layer0.jpg
Last active June 6, 2022 13:01
NK65 RFP Edition - Layout
nk65-rfp_layer0.jpg
@nagakputtagunta
nagakputtagunta / odt-config-office-proplus2019.xml
Last active November 15, 2020 11:12
Microsoft ODT configuration to only install the office apps I need.
<!-- Office 2019 enterprise client configuration file sample. To be used for Office 2019
enterprise volume licensed products only, including Office 2019 Professional Plus,
Visio 2019, and Project 2019.
Do not use this sample to install Office 365 products.
For detailed information regarding configuration options visit: http://aka.ms/ODT.
To use the configuration file be sure to remove the comments
The following sample allows you to download and install Office 2019 Professional Plus,

Keybase proof

I hereby claim:

  • I am nagakputtagunta on github.
  • I am nagakputtagunta (https://keybase.io/nagakputtagunta) on keybase.
  • I have a public key ASDu56SosgLRBbVJR0tDUsAodo7RTW4bEq_PVBfizsbTPAo

To claim this, I am signing this object:

@nagakputtagunta
nagakputtagunta / git_branch_in_prompt.sh
Last active August 28, 2015 13:02
Display the current git branch in the terminal prompt
# Git branch in prompt.
# source: http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/
# Add this to .bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
@nagakputtagunta
nagakputtagunta / redmine3.user.js
Created May 21, 2015 21:52
Userscript to restyle the Redmine 3.x default theme
// ==UserScript==
// @name Redmine 3.x Styler
// @namespace created by Naga Puttagunta
// @description Redmine 3.x Style Overrides
// @match https://*/redmine/*
// @match http://*/redmine/*
// @version 1.0
// ==/UserScript==
function addGlobalStyle(css) {
@nagakputtagunta
nagakputtagunta / setup_mac.sh
Last active November 19, 2018 05:30
A set of Homebrew and Cask commands to install my core set of applications on a clean install of OS X
#!/bin/sh
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# verify homebrew installation
# TODO handle output to figure out whether to processed further
brew doctor
# caskroom
@nagakputtagunta
nagakputtagunta / gist:4017530
Created November 5, 2012 14:46
An Applescript to Open Profiles in iTerm 2
on alfred_script(q)
set profileToOpen to item 1 of q
tell application "iTerm"
activate
tell the first terminal
launch session profileToOpen
end tell
@nagakputtagunta
nagakputtagunta / gist:3041340
Created July 3, 2012 17:49
A Shell script to convert Unix Time to Human Readable Format and Vice Versa
if echo {query} | grep -Gq '^[0-9]\{1,\}$'
then
# Epoch to Human Readable Time Conversion
date -r {query} -u "+%Y-%m-%d %H:%M:%S %Z"
elif echo {query} | grep -Gq '^[0-9]\{4\}-[0-9]\{1,2\}-[0-9]\{1,2\} [0-9]\{1,2\}:[0-9]\{1,2\}:[0-9]\{1,2\}$'
then
# Human Readable to Epoch Time Conversion
date -j -u -f "%Y-%m-%d %H:%M:%S" "{query}" "+%s"
else
# Invalid Input
@nagakputtagunta
nagakputtagunta / gist:2847971
Created June 1, 2012 01:42
Alfred HEX to ASCII Extension
echo "{query}" | xxd -r -p