(by @_ashish_tiwari)
It performs ps -ef | grep service_name | wc -l
command and gives response in 1 or 0.
- Install prometheus client by
pip install prometheus_client
.
#!/bin/bash | |
set -e | |
CH=latest | |
echo Installing Server 1 | |
k3sup install --user pi --ip 192.168.2.147 \ | |
--k3s-channel $CH \ | |
--cluster \ |
(by @_ashish_tiwari)
It performs ps -ef | grep service_name | wc -l
command and gives response in 1 or 0.
pip install prometheus_client
.private-key.pem
file to arm device.package com.enlighthq.mobile.http; | |
import android.os.Build; | |
import java.io.IOException; | |
import java.util.Locale; | |
import okhttp3.Interceptor; | |
import okhttp3.Request; | |
import okhttp3.Response; |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
from flask import Flask, request, jsonify, json, abort | |
from flask_cors import CORS, cross_origin | |
import pandas as pd | |
app = Flask(__name__) | |
cors = CORS(app) | |
app.config['CORS_HEADERS'] = 'Content-Type' |
FROM ruby:2.3-onbuild | |
VOLUME /opt/postal/config | |
ENV LOG_TO_STDOUT 1 | |
ENV AM_CONFIG_ROOT /opt/postal/config | |
RUN gem install procodile | |
RUN apt-get update -qq && apt-get install -yqq nodejs |
'use strict'; | |
const authentication = require('feathers-authentication'); | |
const jwt = require('feathers-authentication-jwt'); | |
const local = require('feathers-authentication-local'); | |
const oauth2 = require('feathers-authentication-oauth2'); | |
const GithubStrategy = require('passport-github'); | |
// Bring in the oauth-handler | |
const makeHandler = require('./oauth-handler'); |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { | |
"Service": "ec2.amazonaws.com" | |
}, | |
"Effect": "Allow", | |
"Sid": "" |