Skip to content

Instantly share code, notes, and snippets.

dodikk /
Last active October 22, 2017 20:36
Поговорки про swizzling
  • с утра посвизлил - весь день свободен
  • украл, посвиззлил - в тюрьму
  • волков бояться - в лесу не свиззлить
  • не все золото что свиззлит
  • свиззлинг - всему голова
  • и рыбку съесть, и посвиззлить
  • в большой семье свиззлом не щелкают
chris-piekarski / adb_aosp_content
Last active December 27, 2023 19:52
ADB Content Command
adb shell content delete --uri content://settings/settings/pointer_speed
adb shell content query --uri content://settings/settings
adb shell content insert --uri content://settings/secure --bind name:s:my_number --bind value:i:24
See "package;" in /frameworks/base/cmds/content/
Usese "final class ContentProviderProxy implements IContentProvider" in
gabrielemariotti / build.gradle
Last active January 12, 2024 17:41
Use file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
buildTypes {
release {
signingConfig signingConfigs.release
Mariovc /
Last active February 7, 2024 23:33
Utility for picking an image from Gallery/Camera with Android Intents
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
PurpleBooth /
Last active June 10, 2024 06:12
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


myusuf3 /
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule