Instantly share code, notes, and snippets.

View gist:e40e82e9221e6e9ccf54122e179be6f8
03-30 16:17:59.642 I/chatty ( 3730): uid=10041(com.android.systemui) identical 2 lines
03-30 16:17:59.886 V/StatusBar( 3730): setLightsOn(true)
03-30 16:18:00.019 D/AndroidRuntime( 7963): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-30 16:18:00.046 D/audio_hw_primary( 3027): disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback
03-30 16:18:00.060 D/audio_hw_primary( 3027): disable_snd_device: snd_device(95: vi-feedback)
03-30 16:18:00.060 D/audio_hw_primary( 3027): disable_audio_route: usecase(24) reset and update mixer path: spkr-vi-record
03-30 16:18:00.256 I//system/bin/app_process( 7963): The ClassLoaderContext is a special shared library.
03-30 16:18:00.315 D/AndroidRuntime( 7963): Calling main entry com.android.commands.am.Am
03-30 16:18:00.348 D/AndroidRuntime( 7963): Shutting down VM
03-30 16:18:00.364 V/StatusBar( 3730): setLightsOn(true)
View gist:ff4526c644fab24e8c540ad88524c05c
03-30 16:26:54.954 I/chatty ( 3730): uid=10041(com.android.systemui) identical 4 lines
03-30 16:26:54.955 V/StatusBar( 3730): setLightsOn(true)
03-30 16:26:54.958 D/NotificationListener( 5823): in checkForSystemNotification
03-30 16:26:54.958 D/NotificationListener( 5823): in snoozeNotification
03-30 16:26:54.972 V/StatusBar( 3730): setLightsOn(true)
03-30 16:26:55.031 I/chatty ( 3730): uid=10041(com.android.systemui) identical 2 lines
03-30 16:26:55.040 V/StatusBar( 3730): setLightsOn(true)
03-30 16:26:55.085 I/GoogleInputMethod( 492): onStartInput() : Dummy InputConnection bound
03-30 16:26:55.108 E/RecentsTaskLoader( 3730): Unexpected null component name or activity info: ComponentInfo{org.zwanoo.android.speedtest/com.ookla.speedtest.softfacade.MainActivity}, null
03-30 16:26:55.109 I/chatty ( 3730): uid=10041(com.android.systemui) Binder:3730_4 identical 1 line
View gist:09a2e523e22e7aa00d491ab67678dd80

Quick benchmark to test both file and device encryption methods.

CPU

$ cat /proc/cpuinfo 
[...]
model name  : Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz
[...]
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm xsaveopt dtherm ida arat pln pts
View gist:6d65c6d0076cae256f7c
Verifying that +alphazo is my blockchain ID. https://onename.com/alphazo
View natzo.md
View gist:3303282

libnfc supports UUID writable cards and even has some dedicated tools for them.

However it doesn't work with some of the cards found on eBay that are even simpler to use. Sector 0 is unlocked and can be written without any additional commands. libnfc requires a small patch to get it working.

Following has been tested under ArchLinux with modified libnfc 1.5.1, mfoc 0.10.2 and a SCL3711 dongle.

Patch & recompile libnfc

The patch is fairly simple, open libnfc-1.5.1/utils/nfc-mfclassic.c and comment 2 lines (it was lines 384 and 385 for me):

  // Try to write the trailer
View archlinux-install-guide.md

ArchLinux Installation guide

This will use GPT partitions and GRUB2 on a BIOS enabled PC (see Wiki for EFI). The Installation Guide can be found at /root/install.txt.

Prepare USB stick

Get 2012.08.04 image or later from http://www.archlinux.org/download. Following tutorial requires at least 2011.07.15 image.

dd if=/dev/zero of=/dev/sdx  bs=1k count=1