Skip to content

Instantly share code, notes, and snippets.

@mafalt
mafalt / app.module.ts
Created July 9, 2022 18:42
NestJS + TypeORM configuration
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { getTypeOrmModuleOptions } from './config/orm.config';
import { CoreModule } from './core/core.module';
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
@mafalt
mafalt / android-connect-sqlite-db.md
Created April 22, 2020 08:50
How to connect to SQLite database on Android using adb

How to connect to SQLite database on Android using ADB shell

  1. Locate the adb tool (search for Android SDK platform-tools folder)
  2. Get list of your devices using adb devices command
  3. Connect to shell using adb -s <device-name> shell
  4. Execute run-as <package_name>
  5. Locate to /data/data/<package_name>/databases
  6. Execute sqlite3 <database_name>