Skip to content

Instantly share code, notes, and snippets.

View akshygupt's full-sized avatar

Akshay Gupta akshygupt

View GitHub Profile
@akshygupt
akshygupt / .bash_profile
Created January 11, 2019 12:17
mac bash profile
alias gp#!/usr/bin/env bash
#Functions for the alias
subl(){
if [ $# -eq 0 ]; then
open -a 'Sublime Text'
else
str="$*"
open -a 'Sublime Text' "$str"
fi
}
<IfModule mod_rewrite.c>
RewriteEngine On
# If its not HTTPS
RewriteCond %{HTTPS} off
# Redirect to the same URL with https://, ignoring all further rules if this $
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
alias gp#!/usr/bin/env bash
#Functions for the alias
subl(){
if [ $# -eq 0 ]; then
open -a 'Sublime Text'
else
str="$*"
open -a 'Sublime Text' "$str"
fi
}
0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\dd\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'cordova',
1 verbose cli '-g' ]
2 info using npm@4.5.0
3 info using node@v6.9.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
<rule name="san aspx">
<!--Removes the .aspx extension for all pages.-->
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.aspx" />
</rule>