Skip to content

Instantly share code, notes, and snippets.

View ken0x0a's full-sized avatar
💣

Ken ken0x0a

💣
View GitHub Profile
@ken0x0a
ken0x0a / Dockerfile
Created December 8, 2019 21:00 — forked from deepakshrma/Dockerfile
Dockerfile
FROM gradle:latest
# FROM openjdk:8-jre-alpine
USER root
# RUN apk --no-cache add curl
ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" \
ANDROID_HOME="/usr/local/android-sdk" \
ANDROID_VERSION=28 \
ANDROID_BUILD_TOOLS_VERSION=29.0.2
# Download Android SDK
RUN mkdir "$ANDROID_HOME" .android \
@ken0x0a
ken0x0a / adbwificonnect.sh
Created December 8, 2019 09:11 — forked from amanshuraikwar/adbwificonnect.sh
Shell script to connect a USB connected device via adb over WiFi
# Purpose: Shell script to connect a USB connected device via adb over WiFi
#
# Author: Amanshu Raikwar
#
# Assumptions:
# 1. USB debugging is enabled in the Android device
# 2. The Android device is connected to the computer via USB
# 3. The Android device is connected to the same wifi as the computer
# 4. The Android device is accessible through port 5555 over the wifi network
#
@ken0x0a
ken0x0a / hasura-update-schema.sh
Created August 22, 2019 05:35
An useful script with HASURA, I was using almost 1 year ago...
#! /bin/bash
#
# 1. Update schema @ HASURA
#
curl -d \
'{
"type": "reload_metadata",
"args": {}
}' \
@ken0x0a
ken0x0a / envoy-schema.json
Created February 26, 2019 07:56 — forked from linux-china/envoy-schema.json
Envoy configuration json schema for Json and Yaml
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Envoy Proxy config schema",
"description": "JSON Schema for Envoy Proxy config",
"type": "object",
"properties": {
"admin": {
"type": "object",
"description": "Configuration for the local administration HTTP server",
"properties": {
@ken0x0a
ken0x0a / import_dotenv.sh
Created January 6, 2019 01:52
import .env to bash. works on mac Mojave
#! /bin/bash
# This import .env propery
eval "$(grep -v '^#' .env | sed -E 's|^(.+)=(.*)$|\1='\''\2'\''|g')"
# works on mac