Skip to content

Instantly share code, notes, and snippets.

View silentsudo's full-sized avatar

Ashish Agre silentsudo

  • Bangalore
View GitHub Profile
@silentsudo
silentsudo / ElasticSearch.postman_collection
Created January 11, 2017 18:24
Elastic search postman collection
{
"id": "0c45385d-7359-15da-b7c3-1b605de97d51",
"name": "ElasticSearch",
"description": "Elastic Search indexing searching and more...",
"order": [
"d87d6360-248b-7cbb-df59-a5c90f8f6e50",
"4f44462b-7d52-44c3-baad-1ca171aab0c0",
"e9efbbd2-7dad-3e42-9c34-e557090e774a",
"5c47039e-b910-4e5f-4e34-e11866efff89",
"91d64fe8-acc6-b245-30fd-0149c157b285",
@silentsudo
silentsudo / library.jdl
Created January 17, 2017 10:13
Library jHipster JDL description
entity Author {
name String
details String
}
entity Book {
title String
description String
publication String
}
List<InstalledPackageInfo> installedPackageInfos = new ArrayList<>();
for (ApplicationInfo applicationInfo : packages) {
InstalledPackageInfo packageItem = new InstalledPackageInfo();
List<AppPermissionInfo> permissionsInfoList = new ArrayList<>();
String pkg = applicationInfo.packageName;
packageItem.setPackageName(pkg);
@silentsudo
silentsudo / stripe_tags.sh
Created May 15, 2017 12:27
Remove xml html tags from Android string file
#!/usr/bin/env bash
for file in app/src/main/res/values/*; do
echo "$file"
filename="${file##*/}"
formatContent="`sed -e 's/<[^>]*>//g' ${file}`"
echo "$formatContent" > ~/Documents/path/to/folder/$filename
done
@silentsudo
silentsudo / csgo.md
Created June 25, 2017 05:45
CSGO Commands

====================================== INTRODUCTION

Playing against bots (computer controlled enemies) can be good for practicing tactics and great fun for co-op style gameplay (friends vs bots). Unfortunately, Valve have not included any options screens to modify bot settings, leaving you with just the basic '5 on 5' gameplay. So, here are some of the console commands you can use to change the settings to suit your needs.

====================================== TURNING ON THE DEVELOPER CONSOLE

/* Copyright 2013 Google Inc.
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */
package com.example.latlnginterpolation;
import android.animation.ObjectAnimator;
import android.animation.TypeEvaluator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.os.Build;
@silentsudo
silentsudo / multiple_ssh_setting.md
Created October 16, 2017 10:02 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@silentsudo
silentsudo / practise.cfg
Created November 22, 2017 06:14
CSGO Practise
echo "Loading config"
sv_cheats 1
//Enables “cheats”.
god
mp_limitteams 0
//No team limit (e.g. you can have 10 people/bots on CT and 1 guy on T).
mp_autoteambalance 0
//Turns auto team balance off.
mp_roundtime 60
//Maximum roundtime set to 60 minutes.
@silentsudo
silentsudo / gitconfig
Created February 18, 2018 18:37 — forked from lkopocinski/gitconfig
Git branches aliases
[alias]
po = !git remote prune origin
dm = !git branch --merged | grep -E -v \"master|develop\" | xargs git branch -d
@silentsudo
silentsudo / deleteMerged.sh
Created February 18, 2018 18:37 — forked from lkopocinski/deleteMerged.sh
Git command for deleting merged branches
git branch --merged | grep -E -v "master|develop" | xargs git branch -d