Skip to content

Instantly share code, notes, and snippets.

View yashdeeph709's full-sized avatar

Yashdeep Hinge yashdeeph709

  • Xoriant Solutions Ltd.
  • india
View GitHub Profile
<div class="container">
<div class="row">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{
"extends": "../.jshintrc-base",
"browser": true,
"globals": {
/* auto/injector.js */
"createInjector": false,
/* angular.js */
"angular": false,
"msie": false,
@yashdeeph709
yashdeeph709 / .vimrc
Last active April 14, 2017 14:34
My Favorite vim hacks and tips
#comment this line is for keyword completion:
set complete=.,w,b,u,t,i
# Remap Ctrl+w 2 to Tab
nnoremap <C-I> <C-W><C-W>
#CTRL+P and CTRL+H
@yashdeeph709
yashdeeph709 / Sign an APK
Created April 22, 2017 16:24
Decompile and Recompile an apk
apktool d Test.apk
edit manifest
apktool b Test.apk
jarsigner -verbose-sigalg SHA1withRSA -digestalg SHA1 -keystore testapp-key.keystore Dokkan.apk testapp-key
Setting up tags is not so difficult, though (as most things in Vim) it's not as automatic compared to IDEs.
First, you need the ctags tool. The most common today is Exuberant Ctags, found at ctags.sourceforge.net.
Next, you need to create a tags database (a file names tags) for all the files in your project(s). This is usually done by running ctags -R . from your project root (also from within Vim via :!ctags ...). Exuberant Ctags support 41 languages, and you can even extend it via regular expressions.
Finally, Vim needs to be configured to pick up the tags database. With :set tags=./tags;, it will search in the file's directory upwards to the root directory. If you have certain global include directories, you can add those.
With that, you can start using Vim's tag functionality like <C-]> and :tag.
You need to periodically update the tags database; there are plugins (like easytags.vim) that can do that automatically for you.
@yashdeeph709
yashdeeph709 / ProfilingOverTunnel
Last active January 18, 2024 01:36
How to connect visual vm java profiler over ssh tunnel through bastion/jump server.
Prerequisite : Public Key Setup is required for using this setup
1. First open ~/.ssh/config file and add these lines filling the appropriate details.
This will setup a netcat tunnel through jump server which will forward all your traffic to mail machine.
```
Host <HOSTNAME>
User <USERNAME>
HostName <HOSTNAME>
ProxyCommand ssh <JUMPSERVER-USER>@<JUMPSERVER-ADDR> nc %h %p 2> /dev/null
```
2. ssh -v -D :port: :username:@:hostname:
@yashdeeph709
yashdeeph709 / CygWin_Important_packages
Last active May 8, 2018 12:55
List of packages for cygwin that I use.
dos2unix
vim
wget
curl
tree
tmux
unzip
@yashdeeph709
yashdeeph709 / gist:0684f766c802b7fc7c91f1370f27ddda
Last active June 14, 2018 11:19
How to install certificates for accessing a ssl secured website through java
keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file <PATH>\certificate.crt
You need to go to $JAVA_HOME/lib/security and run this command to install the certificate.crt file in your CACERTS file.The default password for cacerts store is "changeit". And You have to run it with administrator console.
https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"],
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "m"],
"commands": [
"bookmarks.toggle"