Skip to content

Instantly share code, notes, and snippets.

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
ADB and Fastboot are arguably two of the most indispensable tools used when working with Android devices. If you really want to modify, debug, and tweak along with their countless uses in rooting, and other procedures ADB and Fastboot are a must for any Android device owner. Typically if you want to install ADB and Fastboot you have to download and setup the Android SDK (If you really want to learn about Android Development I highly recommend downloading and installing the full Android SDK from here), but this can be unnecessary for people who just want to install ADB and Fastboot. To simply the process I created a windows installer that will install the latest version of ADB and Fastboot for you quickly and easily. The total installation of Minimal ADB and Fastboot is around 2 MB in size (Compared to the 90+ MB size of the Android SDK Tools, and 425+ MB size of the complete Android SDK) making it very lightweight.
@pantasio
pantasio / fish_prompt
Last active March 7, 2016 08:33 — forked from artemeff/fish_prompt
My fish prompt
# ~/.config/fish/functions/fish_prompt.fish
# name: Robbyrussell edited
# author: Bruno Ferreira Pinto, edit by Yuri Artemev
function fish_prompt
if not set -q -g __fish_robbyrussell_art_functions_defined
set -g __fish_robbyrussell_art_functions_defined
function _git_branch_name
echo (git rev-parse --abbrev-ref HEAD ^/dev/null)
@pantasio
pantasio / nginx_basics.md
Created March 9, 2016 10:14 — forked from leommoore/nginx_basics.md
Nginx Basics

#Nginx Basics for Ubuntu

Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.

##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:

apt-get update
apt-get install python-software-properties

apt-get upgrade

@pantasio
pantasio / vagrant file example1
Created April 25, 2019 15:49
vagrant file example1
VAGRANTFILE_API_VERSION = "2"
BASE_LOCAL_IP = "192.168.33"
BASE_START_IP = 101
MASTER_NODE_IP = "#{BASE_LOCAL_IP}.101"
$num_slaves = 2
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.name = "docker-example-vm"
vb.memory = "1024"
vb.cpus = 1
end
config.vm.provision "docker" do |d|
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.name = "docker-example-vm"
vb.memory = "1024"
vb.cpus = 1
end
config.vm.provision "docker" do |d|
@pantasio
pantasio / container_ip.bash
Created September 2, 2019 19:14 — forked from zainengineer/container_ip.bash
Get docker container ip
#!/usr/bin/env bash
#inside docker container
HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }')
CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null)
echo "container ip is $CONTAINER_IP"
@pantasio
pantasio / .gitconfig
Created May 16, 2020 22:02 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@pantasio
pantasio / profile.ps1
Created May 16, 2020 22:14 — forked from sixeyed/profile.ps1
PowerShell profile with a Linux-style prompt and aliases for common Docker commands
function Prompt(){
$W = Split-Path -leaf -path (Get-Location)
$prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green
$prompt += Write-Prompt $W -ForegroundColor DarkCyan
$prompt += Write-Prompt '>'
return ' '
}
function Remove-StoppedContainers {
docker container rm $(docker container ls -q)