Skip to content

Instantly share code, notes, and snippets.

@indranil32
indranil32 / Makefile
Created January 23, 2021 19:31
RIOT-LORAWAN-TTN-TAGOIO-EXAMPLE
# name of your application
APPLICATION = lorawan
# Use the ST B-L072Z-LRWAN1 board by default:
BOARD ?= b-l072z-lrwan1
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
# Default radio driver is Semtech SX1276 (used by the B-L072Z-LRWAN1 board)
apply plugin: 'maven-publish'
..
..
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
..
..
publishing {
repositories {
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@indranil32
indranil32 / emulator-install-using-avdmanager.md
Created February 13, 2020 08:38 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

# ruby is by default installed on IOS
# install bew on hosted mac hardware
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
# install openconnect via brew
brew install openconnect
# Store the VPN_PASSWORD, VPN_USER, VPN_PROTOCOL and VPN_HOST in secrets
# check http://www.infradead.org/openconnect/ for more details
echo $VPN_PASSWORD | sudo openconnect --user=$VPN_USER --protocol=$VPN_PROTOCOL --passwd-on-stdin --background $VPN_HOST
stage('Upload APK to internal Nexus') {
environment {
// the creds your Jenkins use to communicate with your nexus
JENKINS_USER_CREDS = credentials('jenkins-user-password')
ENV_NAME = "${env.BRANCH_NAME}"
}
when {
anyOf {
// choose what kinds of builds you want to arhive in your nexus
branch 'develop';
def versionMajor = 3
def versionMinor = 0
def versionPatch = 0
def versionBuild = 0 // get from Jenkins -PversionBuild=${env.BUILD_NUMBER}
android {
defaultConfig {
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
npm login -registry=http://nexus.you.love/repository/nexus-npm/
npm publish -registry=http://nexus.you.love/repository/nexus-npm/
@indranil32
indranil32 / index.js
Created December 7, 2019 10:51
Node JS + webdriverio + appium + screenshots
const wdio = require("webdriverio");
const assert = require("assert");
const fs = require('fs');
const opts = {
port: 4723,
capabilities: {
platformName: "Android",
platformVersion: "7.1",
deviceName: "Android Emulator",