Skip to content

Instantly share code, notes, and snippets.

# 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
@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"

# 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
apply plugin: 'maven-publish'
..
..
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
..
..
publishing {
repositories {
@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)
@indranil32
indranil32 / main.c
Created January 23, 2021 19:36
RIOT-LORAWAN-TTN-TAGOIO-EXAMPLE
#include <string.h>
#include "xtimer.h"
#include "net/loramac.h"
#include "semtech_loramac.h"
#include "hts221.h"
#include "hts221_params.h"
#include "board.h"
/* Declare globally the loramac descriptor */
static semtech_loramac_t loramac;
@indranil32
indranil32 / SimpleDeadLock.groovy
Last active April 1, 2021 08:18
Showcashing Deadlock in Java/Groovy
class RunnableThread implements Runnable {
def obj1Private
def obj2Private
public RunnableThread(paramObj1, paramObj2) {
obj1Private = paramObj1
obj2Private = paramObj2
}
@Override
public void run(){
@indranil32
indranil32 / tensorflowjshandpose-package.json
Created April 7, 2021 17:24
tensorflow js handpose react native package json
{
"name": "tensorflowjshandpose",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
@indranil32
indranil32 / tensorflowjshandpose-app.js
Created April 7, 2021 17:30
tensorflow js handpose app js
import React, { useState, useEffect, useRef } from 'react';
import { Text, View, StyleSheet, Platform, Image, Button } from 'react-native';
import * as Permissions from 'expo-permissions';
import { Camera, Constants } from 'expo-camera';
import * as tf from '@tensorflow/tfjs';
import * as handpose from '@tensorflow-models/handpose';
import * as fp from 'fingerpose';
import { cameraWithTensors } from '@tensorflow/tfjs-react-native';
//import '@tensorflow/tfjs-backend-cpu';
import '@tensorflow/tfjs-react-native';