Skip to content

Instantly share code, notes, and snippets.

View dipendra-sharma's full-sized avatar

Dipendra Sharma dipendra-sharma

View GitHub Profile
@dipendra-sharma
dipendra-sharma / gist:659d102a8de554f3cd328e79bb5a04a9
Created March 18, 2021 13:55 — forked from pwlin/gist:8a0d01e6428b7a96e2eb
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
@dipendra-sharma
dipendra-sharma / .github-workflows-main.yml
Created April 12, 2021 21:05 — forked from edvinasbartkus/.github-workflows-main.yml
Github Action for React Native Detox
name: Detox
on: [push]
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 15
env:
  • Add software leanback feature in AndroidManifest
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
  • Add banner icon xhdpi 320x180 px for banner
@dipendra-sharma
dipendra-sharma / Dockerfile
Created April 25, 2021 08:19 — forked from anoochit/Dockerfile
Dockerfile to build dart container in small image **ONLY** x86_64 arch
FROM google/dart AS dart-runtime
WORKDIR /app
ADD pubspec.* /app/
RUN pub get
ADD bin /app/bin/
RUN pub get --offline
RUN dart2native /app/bin/server.dart -o /app/server
@dipendra-sharma
dipendra-sharma / build-and-release.yml
Created September 9, 2021 13:12 — forked from gauravssnl/build-and-release.yml
GitHub Actions workflow to build Flutter app and create Release, put this file under `.github/workflows` folder.
on:
push:
branches:
- master
name: Build and Release Apps
jobs:
build:
name: Build Apps
runs-on: macos-latest
@dipendra-sharma
dipendra-sharma / Patch dylib to IPA.md
Created December 8, 2021 10:50 — forked from bamtan/Patch dylib to IPA.md
How to combine a dylib and an IPA file so you can use a modified IPA on jailed iOS
@dipendra-sharma
dipendra-sharma / Shell.java
Created January 24, 2022 13:14 — forked from ricardojlrufino/Shell.java
Run shell comands from APP as SUDO (like start ADB)
package br.com.criativasoft.eduaccess.util;
import android.util.Log;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
@dipendra-sharma
dipendra-sharma / gha_workflow_dispatch.js
Created May 9, 2022 11:25 — forked from rehangit/gha_workflow_dispatch.js
Javascript injection for GHA workflow_dispatch
// ==UserScript==
// @name GHA workflow_dispatch
// @namespace https://gist.github.com/rehangit/58409fc3cca4ec7630487ac13a055b27
// @version 0.1.7
// @description Add missing info in workflow_dispatch actions
// @author Rehan Ahmad
// @match https://github.com/*/*/actions
// @match https://github.com/*/*/actions/*
// @grant none
// @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzIwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDdmZmYiPjxjaXJjbGUgY3g9Ijk5LjUiIGN5PSI5OS41IiBzdHJva2Utd2lkdGg9IjE1IiByPSI1MCIvPjxwYXRoIGQ9Ik04NyAxMjJsMzUtMjIuNUw4NyA3N3oiIHN0cm9rZS13aWR0aD0iOCIvPjxwYXRoIGQ9Ik05OS41IDE1MmMwIDIyLjUgMCAyMi41IDk1IDIyLjAxbS05NS0xOS41MWMwIDkyLjcgMCA5Mi43IDY1IDk1IiBzdHJva2Utd2lkdGg9IjE1Ii8+PGNpcmNsZSBjeD0iMjE5LjUiIGN5PSIyNDkuNSIgc3Ryb2tlLXdpZHRoPSIxMCIgcj0iMjUiLz48cGF0aCBkPSJNMjA3IDI0OS41aDdtMTEgMGg3IiBzdHJva2Utd2lkdGg9IjgiIHN0cm9rZS1kYXNoYXJyYXk9IjQwIDQ4Ii8+PGNpcmNsZSBjeD0iMjE5LjUiIGN5PSIxNzQuNSIgc3Ryb2t