Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
| name: build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| gradle: | |
| runs-on: ubuntu-latest | 
| FROM nginx:alpine AS builder | |
| # nginx:alpine contains NGINX_VERSION environment variable, like so: | |
| # ENV NGINX_VERSION 1.15.0 | |
| # Our NCHAN version | |
| ENV NCHAN_VERSION 1.1.15 | |
| # Download sources | |
| RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ | 
| # To get file | |
| adb pull <PATH/TO/FILE/ON/DEVICE> | |
| # To push file | |
| adb push <PATH/TO/FILE> <PATH/TO/DESTINATION> | |
| # To get wifi MAC address | |
| adb shell cat /sys/class/net/wlan0/address | |
| # To get IP Address | 
| package com.example.properties; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.beans.factory.config.ConfigurableBeanFactory; | |
| import org.springframework.boot.ApplicationArguments; | |
| import org.springframework.boot.ApplicationRunner; | |
| import org.springframework.boot.SpringApplication; | 
This is an example of a document that a VoltDB customer or partner might write to document specific processes and commands for common operations with VoltDB.
For our VoltDB cluster, use servers with the following specs:
(Note: this is only an example, but you should document the exact hardware used for the installation, and use identical hardware if nodes to the cluster).
Amazon EC2 Example:
In production, we use c3.2xlarge nodes with 8 hyperthreads, 15GB of RAM
| import com.sun.tools.attach.VirtualMachine; | |
| import com.sun.tools.attach.VirtualMachineDescriptor; | |
| public class AgentRunner { | |
| /* | |
| * This class shows how to attach hotswap-agent.jar to a running JVM process and overload classes using "extraClasspath=" property via Hotswapper plugin. | |
| * | |
| * Lets assume that: | |
| * args[0] contains pid of running JVM process or a runner class name we want to attach agent to | 
This gist shows and example or an asynchronous multiprocess task broker which can take job requests and report on running jobs via a minimal REST API.
Adapted from https://gist.github.com/nitaku/10d0662536f37a087e1b
All of the caveats from the original author still apply.
| package su.whs.notifications; | |
| import android.accessibilityservice.AccessibilityService; | |
| import android.accessibilityservice.AccessibilityServiceInfo; | |
| import android.app.Notification; | |
| import android.view.accessibility.AccessibilityEvent; | |
| public class NotificationService extends AccessibilityService { | |
| @Override | |
| public void onAccessibilityEvent(AccessibilityEvent event) { |