type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
Timber.tag(TAG).i("Copying new binary..."); | |
AssetManager assets = getContext().getAssets(); | |
InputStream in = assets.open(assetName); | |
FileOutputStream f; | |
f = getContext().openFileOutput(mBinaryConfig.getBaseBinaryName(), Context.MODE_PRIVATE); | |
byte[] buffer = new byte[1024]; | |
int len1; | |
while ((len1 = in.read(buffer)) > 0) { | |
f.write(buffer, 0, len1); |
buildvm@buildvm-VirtualBox:~/toybox_darken$ source build_for_sdm_musl.sh | |
####### Building toybox for x86... ####### | |
rm -f kconfig/conf kconfig/mconf | |
rm -f getenforce getprop load_policy log restorecon runcon sendevent setenforce setprop start stop hello skeleton skeleton_alias test_human_readable test_many_options test_scankey dmesg hostname killall md5sum sha1sum sha224sum sha256sum sha384sum sha512sum mknod mktemp mount nfsmount passwd pidof seq su sync umount ifconfig nc netcat netstat rfkill tunctl acpi base64 blkid fstype blockdev bzcat bunzip2 chcon chroot chvt clear count dos2unix unix2dos eject factor fallocate flock free freeramdisk fsfreeze fsync hexedit hostid hwclock inotifyd insmod ionice iorenice login losetup lsattr chattr lsmod lspci lsusb makedevs mix mkpasswd mkswap modinfo mountpoint nbd-client nsenter unshare oneit partprobe pivot_root pmap printenv pwdx readahead readlink realpath reboot halt poweroff reset rev rmmod setfattr setsid shred stat swapoff swapon switch_root sysctl tac task |
sailfish:/data/data/com.android.documentsui/shared_prefs # cat com.android.documentsui_preferences.xml | |
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> | |
<map> | |
<int name="0|com.commonsware.android.documenttree||Documents" value="-1" /> | |
</map> |
/** | |
* Apache 2.0 | |
* | |
* @see <a href="https://github.com/stablekernel/EspressoLib/blob/master/src/main/java/com/stablekernel/espressolib/DrawableMatcher.java">Source1</a> | |
* @see <a href="http://stackoverflow.com/questions/33696488/getting-bitmap-from-vector-drawable">Source2</a> | |
*/ | |
@SuppressWarnings("SimplifiableIfStatement") | |
public class DrawableMatcher extends TypeSafeMatcher<View> { | |
private final int expectedResourceId; |
@AppComponent.Scope | |
public class AppRepo { | |
private final Object appMapLock = new Object(); | |
private Map<String, PackageInfo> appMap; | |
private final IPCFunnel ipcFunnel; | |
@Inject | |
public AppRepo(IPCFunnel ipcFunnel) {this.ipcFunnel = ipcFunnel;} | |
public Map<String, PackageInfo> getAppMap(boolean refresh) { |
A collection of guides/sites/posts that you may want to look through when setting up a mail server. | |
### General | |
* https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin | |
### Postfix (SMTP) | |
* https://seasonofcode.com/posts/custom-domain-e-mails-with-postfix-and-gmail-the-missing-tutorial.html | |
* https://seasonofcode.com/posts/setting-up-dkim-and-srs-in-postfix.html |
package stack.saas.backend.webserver.graphql | |
import com.expedia.graphql.schema.generator.WiringContext | |
import com.expedia.graphql.schema.hooks.SchemaGeneratorHooks | |
import graphql.schema.GraphQLType | |
import org.bson.types.ObjectId | |
import stack.saas.backend.common.graphql.coercing.InstantCoercing | |
import stack.saas.backend.common.graphql.coercing.ObjectIdCoercing | |
import stack.saas.backend.common.graphql.coercing.UUIDCoercing | |
import stack.saas.backend.webserver.graphql.components.auth.permission.Permission |
java.lang.RuntimeException: | |
at android.graphics.BaseCanvas.throwIfCannotDraw (BaseCanvas.java:55) | |
at android.view.DisplayListCanvas.throwIfCannotDraw (DisplayListCanvas.java:226) | |
at android.view.RecordingCanvas.drawBitmap (RecordingCanvas.java:97) | |
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:529) | |
at android.widget.ImageView.onDraw (ImageView.java:1349) | |
at android.view.View.draw (View.java:20357) | |
at android.view.View.updateDisplayListIfDirty (View.java:19302) | |
at android.view.View.draw (View.java:20080) | |
at android.view.ViewGroup.drawChild (ViewGroup.java:4421) |
fun claresSimpleQuestion(input: String) : Boolean { | |
val pattern = Pattern.compile("^[A-Z].*?$") | |
return pattern.matcher(input).matches() | |
} | |
@Test | |
fun testClaresSimpleQuestion() { | |
assertThat(claresSimpleQuestion(""),`is`(false)) | |
assertThat(claresSimpleQuestion("a"),`is`(false)) | |
assertThat(claresSimpleQuestion("A"),`is`(true)) |