How to collect all Android device ids in bash script

Hello everyone!

Today I'm going on to share bash script with you, which will help you to collect all android devices id.

for line in `adb devices | grep -v "List" | awk '{print $1}'`
  device=`echo $line | awk '{print $1}'`
  echo "$device"
  if [ $deviceList != "" ]; then
echo $deviceList

This approach you can use to capture any data from any output.

Have a good day!



How to enable Screen Sharing on Macs via Terminal

Follow these steps to enable Screen Sharing via Terminal.

1. Navigate to Applications | Utilities and launch Terminal. If you're working from a keyboard only, press Command+Space Bar to launch Spotlight, and then enter Terminal in the search box to launch the app.

Emergency mode Ubuntu 16.10

I have the Ubuntu 16.04 that was updated to 16.10.

And one day I faced with the following situation on the preload ubuntu screen

/dev/sda6: recovering journal
/dev/sda6: clean, 193225/9527296 files, 1610280/38077184 blocks
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue):

How to keep processes running after ending ssh session?

Hi everyone!

Sometimes due some reasons we need to launch any process via ssh and keep it running after ending the ssh session.

The following instruction helps you to save your time.

Connect to certain machine via ssh

ssh username@ip_address

If you use ubuntu then make sure screen is already installed on the machine you need keep any process running after endind ssh session.

screen -v

How to instal Homebrew (brew) on Mac OS X

Homebrew. Homebrew is a package manager for the Mac — it makes installing most open source sofware (like Node) as simple as writing brew install node. You can learn more about Homebrew at the Homebrew website. To install Homebrew just open Terminal and type ruby -e "$(curl -fsSL" You’ll see messages in the Terminal explaining what you need to do to complete the installation process.

How to get package name via aapt

Hi everyone!

This article will be helpfull for everyone who need to get apk info without instalation.

To get total information run the following command

aapt dump badging <path_to_apk>

Use filters to get package and launchable activity

GIT Troubleshooting

> git clone doesn't work after enable 2FA (two factor authentification)

How does it work for command-line Git?

If you are using SSH for Git authentication, rest easy: you don't need to do anything. If you are using HTTPS Git, instead of entering your password, enter a personal access token. These can be created by going to your personal access tokens page.

In case if you want to switch from HTTPS to SSH you just need