Skip to content

Instantly share code, notes, and snippets.

View nischithbm's full-sized avatar

Nischith B.M. nischithbm

View GitHub Profile
Shortcut (Mac) Shortcut (Windows) Description Additional Notes
Cmd + F Ctrl + F Find and replace text or code snippets quickly and easily
@nischithbm
nischithbm / gist:c7045bc05c97a5dc764625fcf6d946f9
Last active June 11, 2018 10:47
Convert PEM file to .key and .crt
openssl pkcs12 -in localhost.p12 -out server.pem -nodes
openssl rsa -in server.pem -out server.key
openssl x509 -in server.pem -out server.crt
----
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout server.key -out server.crt -subj "/C=US/CN=localhost" -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf \
@nischithbm
nischithbm / .gitconfig
Created February 6, 2016 04:17 — forked from samsalisbury/.gitconfig
Git diff and merge with p4merge (OSX)
[merge]
keepBackup = false
tool = p4merge
[mergetool "p4merge"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\""
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
tool = p4merge
@nischithbm
nischithbm / gist:d3f9cf7503c6a49c3899
Created January 11, 2016 09:02
Generate keystore for SSL
keytool -genkey -alias localhost.com -keyalg RSA -keystore localhost.com.jks -storepass changeit
defaults write com.apple.screencapture location ~/Desktop/Screenshots/; killall SystemUIServer
@nischithbm
nischithbm / gist:782304ceed66192d328e
Created December 15, 2015 14:14
Grunt Cheat Sheet
Grunt:
Is a "task-based command line build tool for JavaScript
projects which makes perfomring repetitive, but necessary,
task trivial"
# Error
##################################################################################################
bower dcl#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/uhop/dcl.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: errno=Connection refused
Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection refused
##################################################################################################
# git config --global url."https://".insteadOf git://