Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
"""Wrapper tool for writing aws credentials into profiles."""
import argparse
import configparser
import platform
import subprocess
from os import path
from shutil import which
parser = argparse.ArgumentParser(description='Wrapper script for aws-okta tool.')
@bazimov
bazimov / keybase.md
Created May 10, 2018 02:55
Verification

Keybase proof

I hereby claim:

  • I am bazimov on github.
  • I am bazimov (https://keybase.io/bazimov) on keybase.
  • I have a public key ASB18bJ1gDsaFqRlWAFxbbkP-kzjJzXtq8hSgEFt8APR4wo

To claim this, I am signing this object:

05-21 11:31:25.254 29786-29786/com.ilmnuri.com D/AndroidRuntime: Shutting down VM
05-21 11:31:25.255 29786-29786/com.ilmnuri.com E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ilmnuri.com, PID: 29786
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.ilmnuri.com.AlbumActivity$2.onDownloadListener(AlbumActivity.java:99)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo$ViewHolder.options(AlbumAdpaterDemo.java:186)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo$ViewHolder$$ViewBinder$3.doClick(AlbumAdpaterDemo$ViewHolder$$ViewBinder.java:40)
05-21 10:44:52.683 2793-6702/com.ilmnuri.com E/Event: Could not dispatch event: class com.ilmnuri.com.event.AudioEvent to subscribing class class com.ilmnuri.com.AlbumActivity
java.lang.ArrayIndexOutOfBoundsException: length=18; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo.onEvent(AlbumAdpaterDemo.java:121)
at com.ilmnuri.com.AlbumActivity.onEvent(AlbumActivity.java:167)
at java.lang.reflect.Method.invoke(Native Method)
at de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:498)
at de.greenrobot.event.EventBus.postToSubscription(EventBus.java:429)
--------- beginning of crash
05-21 10:45:17.431 2793-2793/com.ilmnuri.com E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ilmnuri.com, PID: 2793
java.lang.ArrayIndexOutOfBoundsException: length=18; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.ilmnuri.com.AlbumActivity$2.onDownloadListener(AlbumActivity.java:95)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo$ViewHolder.options(AlbumAdpaterDemo.java:186)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo$ViewHolder$$ViewBinder$3.doClick(A
05-21 01:49:10.431 32345-32402/com.ilmnuri.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fe56b1f1c30
05-21 01:49:10.758 32345-32402/com.ilmnuri.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fe56b1f29c0
05-21 01:49:10.807 32345-32345/com.ilmnuri.com E/Event: Could not dispatch event: class com.ilmnuri.com.event.AudioEvent to subscribing class class com.ilmnuri.com.AlbumActivity
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo.onEvent(AlbumAdpaterDemo.java:125)
at com.ilmnuri.com.AlbumActivity.onEvent(AlbumActivity.java:166)
at java.lang.reflect.Method.invoke(Native Method)
05-21 00:01:15.782 3150-3363/com.ilmnuri.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7fe560d398c0
05-21 00:01:15.821 3150-3150/com.ilmnuri.com E/Event: Could not dispatch event: class com.ilmnuri.com.event.AudioEvent to subscribing class class com.ilmnuri.com.AlbumActivity
java.lang.ArrayIndexOutOfBoundsException: length=18; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.ilmnuri.com.adapter.AlbumAdpaterDemo.onEvent(AlbumAdpaterDemo.java:107)
at com.ilmnuri.com.AlbumActivity.onEvent(AlbumActivity.java:166)
at java.lang.reflect.Method.invoke(Native Method)
at de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:498)
private void sendRegistrationToServer(String[] token) {
// Add custom implementation, as needed.
try {
// Prepare JSON containing the GCM message content. What to send and where to send.
JSONObject jGcmData = new JSONObject();
JSONObject jData = new JSONObject();
jData.put("message", token);
// What to send in GCM message.
jGcmData.put("data", jData);
../gradlew run -Pmsg="<message>"
:compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Cannot resolve external dependency org.apache.commons:commons-io:1.3.2 because no repositories are defined.
Required by:
:gcmsender:unspecified