Skip to content

Instantly share code, notes, and snippets.

View kechankrisna's full-sized avatar
🏠
Working from home

ke chankrisna kechankrisna

🏠
Working from home
View GitHub Profile
@kechankrisna
kechankrisna / conventional-commits.md
Created December 12, 2023 06:35 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@kechankrisna
kechankrisna / readme.txt
Created October 30, 2023 15:35 — forked from vielhuber/readme.txt
MySQL: Import/export backup/restore dump mysqldump on command line #sql
// export
mysqldump -h localhost --port 3306 -u username -p"password" database > dump.sql
// import
mysql -h localhost --port 3306 -u username -p"XXX" --default-character-set=utf8 database < dump.sql
// import with progress
pv dump.sql | mysql -h localhost --port 3306 -u username -p"XXX" --default-character-set=utf8 database
// note when using passwords with "$": escape passwords needed
@kechankrisna
kechankrisna / AdbCommands
Created October 16, 2023 10:46 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@kechankrisna
kechankrisna / gist:a30fbdbebb501829373105b3ea235674
Created September 3, 2023 12:55 — forked from tsohr/gist:5711945
Android activity manager "am" command help
adb shell am
usage: am [subcommand] [options]
usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--R COUNT] [-S] [--opengl-trace] <INTENT>
am startservice <INTENT>
am force-stop <PACKAGE>
am kill <PACKAGE>
am kill-all
am broadcast <INTENT>
am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]
@kechankrisna
kechankrisna / app-build.gradle.kts
Created November 15, 2022 05:20 — forked from DRSchlaubi/app-build.gradle.kts
Flutter Kotlin Gradle DSL
import java.util.Properties
import java.nio.file.Files
val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties").toPath()
if (Files.exists(localPropertiesFile)) {
Files.newBufferedReader(localPropertiesFile).use { reader ->
localProperties.load(reader)
}
}