Skip to content

Instantly share code, notes, and snippets.

View shrinath-shenoy's full-sized avatar

Shrinath Shenoy shrinath-shenoy

  • Cisco
  • Bangalore
View GitHub Profile
@shrinath-shenoy
shrinath-shenoy / pro-coder.zsh-theme.sh
Last active February 27, 2024 06:07
Oh My ZSH theme with virtualenv support
function theme_precmd {
local TERMWIDTH=$(( COLUMNS - ${ZLE_RPROMPT_INDENT:-1} ))
PR_FILLBAR=""
PR_PWDLEN=""
PR_VIRTUALENV=""
local promptsize=${#${(%):-(%n@%m:%l)-()-}}
local rubypromptsize=${#${(%)$(ruby_prompt_info)}}
local timepromtsize=${#${(%):-%D{%H:%M:%S}-()-}}
@shrinath-shenoy
shrinath-shenoy / mac_openssl_include.sh
Created August 24, 2016 07:25 — forked from sunliwen/mac_openssl_include.sh
On Mac - fatal error: 'openssl/aes.h' file not found #include <openssl/aes.h>
# Install pip install cryptography, path issue with openssl/aes.h will occur. The reason is Apple deprecated openssl and the compiler can't find the one installed by homebrew.
# So the following line will help.
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
.staic-bg {
background: url("../images/stats.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}