Skip to content

Instantly share code, notes, and snippets.

@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)
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.
# udev rule to detect android devices
# These rules refer to http://developer.android.com/tools/device.html
# Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev"
# Archos
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev"
# Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
# Azpen Onda
First install gitbox
Let see how it work!!!!
@pantasio
pantasio / createnew.sublime-snippet
Last active December 3, 2015 05:20
[Snippet] Create new snippet
<!-- ####################################
PLEASE SAVE AS WITH DIFFENT NAME NOW
####################################
NAME ROLE
html-tabTrigger.sublime-snippet
put it right location
THANKS
-->
<snippet>
@pantasio
pantasio / gist:b6b61a2b909d10a02d2e
Last active December 3, 2015 05:07
[Snippet] Create new snippet
We couldn’t find that file to show.
@pantasio
pantasio / newshell.sh
Last active December 8, 2015 07:28
[Shell] Add new shell
#!/bin/sh
##################################################
# Name: $1
# Description: Does a backup of your MySQL Database utilizng LVM Snapshot.
# Script Maintainer: Le Duc Hoang
#
# Last Updated: August 8th 2013
##################################################
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
##################################################
@pantasio
pantasio / sample-README.md
Created November 16, 2015 01:38
Sample README.md cho project moi

Hystrix: Latency and Fault Tolerance for Distributed Systems

[![][pantasio img]][pantasio] [![][travis img]][travis] [![][maven img]][maven] [![][release img]][release] [![][license img]][license] [![][howtobiuldicon img]][how to biuld icon]

Home page.

@pantasio
pantasio / sublimetext3readme.md
Last active November 16, 2015 06:48
Sublime text 3 thuong dung