Stop tracking and ignore changes to a file in Git


Ignoring versioned files

Some files in a repository change often but are rarely committed. Usually, these are various local configuration files that are edited, but should never be committed upstream. Git lets you ignore those files by assuming they are unchanged.

  1. In Terminal, navigate to the location of your Git repository.
  2. Run the following command in your terminal:

git update-index --assume-unchanged path/to/file.txt

Once you mark a file like this, Git completely ignores any changes on it. It will never show up when running git status or git diff, nor will it ever be committed.

To make Git track the file again, simply run:

git update-index --no-assume-unchanged path/to/file.txt.

Gradle android task


————————————————————

All tasks runnable from root project

————————————————————

Android tasks

————-

androidDependencies – Displays the Android dependencies of the project

signingReport – Displays the signing info for each variant

Build tasks

———–

assemble – Assembles all variants of all applications and secondary packages.

assembleDebug – Assembles all Debug builds

assembleDebugTest – Assembles the Test build for the Debug build

assembleRelease – Assembles all Release builds

build – Assembles and tests this project.

buildDependents – Assembles and tests this project and all projects that depend on it.

buildNeeded – Assembles and tests this project and all projects it depends on.

clean – Deletes the build directory.

extractDebugAnnotations – Extracts Android annotations for the debug variant into the archive file

extractReleaseAnnotations – Extracts Android annotations for the release variant into the archive file

Build Setup tasks

—————–

init – Initializes a new Gradle build. [incubating]

wrapper – Generates Gradle wrapper files. [incubating]

Help tasks

———-

components – Displays the components produced by root project ‘follow-me-android’. [incubating]

dependencies – Displays all dependencies declared in root project ‘follow-me-android’.

dependencyInsight – Displays the insight into a specific dependency in root project ‘follow-me-android’.

help – Displays a help message.

projects – Displays the sub-projects of root project ‘follow-me-android’.

properties – Displays the properties of root project ‘follow-me-android’.

tasks – Displays the tasks runnable from root project ‘follow-me-android’ (some of the displayed tasks may belong to subprojects).

Install tasks

————-

installDebug – Installs the Debug build

installDebugTest – Installs the Test build for the Debug build

uninstallAll – Uninstall all applications.

uninstallDebug – Uninstalls the Debug build

uninstallDebugTest – Uninstalls the Test build for the Debug build

uninstallRelease – Uninstalls the Release build

Verification tasks

——————

check – Runs all checks.

connectedAndroidTest – Installs and runs the tests for Build ‘debug’ on connected devices.

connectedCheck – Runs all device checks on currently connected devices.

deviceCheck – Runs all device checks using Device Providers and Test Servers.

lint – Runs lint on all variants.

lintDebug – Runs lint on the Debug build

lintRelease – Runs lint on the Release build

Other tasks

———–

assembleDefault

compileDebugSources

compileDebugTestSources

compileReleaseSources

crashlyticsUploadDistributionDebug – Uploads an APK to Crashlytics for distribution.

crashlyticsUploadDistributionRelease – Uploads an APK to Crashlytics for distribution.

Android task manager show black screen


public class FlagSecureTestActivity extends Activity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    getWindow().setFlags(LayoutParams.FLAG_SECURE,
                         LayoutParams.FLAG_SECURE);

    setContentView(R.layout.main);
  }
}

Restarting the Management agents on an ESXi or ESX host (1003490)


From the Local Console or SSH:

  1. Log in to SSH or Local console as root.
  2. Run these commands:

    /etc/init.d/hostd restart
    /etc/init.d/vpxa restart

    Note: In ESXi 4.x, run this command to restart the vpxa agent:

    service vmware-vpxa restart

    Alternatively:

  • To reset the management network on a specific VMkernel interface, by default vmk0, run the command:

    esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0

    Note: Using a semicolon (;) between the two commands ensures the VMkernel interface is disabled and then re-enabled in succession. If the management interface is not running on vmk0, change the above command according to the VMkernel interface used.

  • To restart all management agents on the host, run the command:

    services.sh restart

Restarting the Management agents on ESX

To restart the management agents on an ESX host:

  1. Log in to your ESX host as root from either an SSH session or directly from the console.
  2. Run this command:

    service mgmt-vmware restart

    Caution: Ensure Automatic Startup/Shutdown of virtual machines is disabled before running this command or you risk rebooting the virtual machines. For more information, see Restarting hostd (mgmt-vmware) on ESX hosts restarts hosted virtual machines where virtual machine Startup/Shutdown is enabled (1003312) and Determining whether virtual machines are configured to autostart (1000163).

  3. Press Enter.
  4. Run this command:

    service vmware-vpxa restart

  5. Press Enter.
  6. Type logout and press Enter to disconnect from the ESX host.

gradle.properties


org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.configureondemand=true

org.gradle.daemon=trueorg.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8org.gradle.parallel=trueorg.gradle.configureondemand=true