Skip to content

Instantly share code, notes, and snippets.

View StevenRudenko's full-sized avatar

Steven Rudenko StevenRudenko

View GitHub Profile
@StevenRudenko
StevenRudenko / op-upload
Created March 24, 2023 16:06
1Password upload tool
#!/bin/bash
if ! loc="$(type -p "op")" || [[ -z $loc ]]; then
echo "1Password CLI is not found. Try brew install --cask 1password/tap/1password-cli"
exit 1
fi
if ! loc="$(type -p "jq")" || [[ -z $loc ]]; then
echo "jq is not found. Try brew install jq"
exit 1
@StevenRudenko
StevenRudenko / config.toml
Created October 3, 2022 08:43
Podsync remote configuration sample
[server]
port = 8080
hostname = "https://localhost.com"
[storage]
type = "s3"
[storage.s3]
endpoint_url = "https://nyc3.digitaloceanspaces.com/"
region = "nyc3"
bucket = "bucket-name"
https://github.com/intel-iot-devkit/tinyb
https://mcuoneclipse.com/2016/12/19/tutorial-ble-pairing-the-raspberry-pi-3-model-b-with-hexiwear/
# Update BlueZ
sudo apt-get update
sudo apt-get install git build-essential autoconf cmake libtool libglib2.0 libdbus-1-dev libudev-dev libical-dev libreadline-dev
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.39.tar.xz
tar xvf bluez-5.39.tar.xz
export JAVA_HOME=/opt/java/include
export JAVA_AWT_INCLUDE_PATH=$JAVA_HOME/include
export JAVA_AWT_LIBRARY=$JAVA_HOME/jre/lib/arm/libjawt.so
export JAVA_INCLUDE_PATH=$JAVA_HOME/include
export JAVA_INCLUDE_PATH2=$JAVA_HOME/include/linux
export JAVA_JVM_LIBRARY=$JAVA_HOME/jre/lib/arm/client/libjvm.so
export JAVA_JAR_EXECUTABLE=$JAVA_HOME/bin/jar
export JAVA_JAVAC_EXECUTABLE=$JAVA_HOME/bin/javac
export JAVA_JAVA_EXECUTABLE=$JAVA_HOME/bin/java

Keybase proof

I hereby claim:

  • I am stevenrudenko on github.
  • I am stevenrudenko (https://keybase.io/stevenrudenko) on keybase.
  • I have a public key ASBbhOdzSEyeESFn8Zd-nV8Gle6-VA-4sJ-vRwBgQaBaNAo

To claim this, I am signing this object:

import android.app.Activity;
import android.app.Dialog;
import android.support.v4.app.DialogFragment;
/**
* Base dialog fragment.
* @param <Listener> listener type.
*/
public abstract class BaseDialogFragment<Listener> extends DialogFragment {