Skip to content

Instantly share code, notes, and snippets.

@rigid
rigid / gist:9983670
Created April 4, 2014 21:42
DavDroid Sync log
I/davdroid.ContactsSyncAdapter(10660): httpClient = ch.boye.httpclientandroidlib.impl.client.InternalHttpClient@4185af50
I/davdroid.DavSyncAdapter(10660): Performing sync for authority com.android.contacts
I/davdroid.ContactsSyncAdapter(10660): httpClient 2 = ch.boye.httpclientandroidlib.impl.client.InternalHttpClient@4185af50
D/davdroid.WebDavResource(10660): Using preemptive authentication (not compatible with Digest auth)
I/davdroid.SyncManager(10660): Remotely removing 0 deleted resource(s) (if not changed)
I/davdroid.SyncManager(10660): Uploading 1 new resource(s) (if not existing)
V/davdroid.LocalAddressBook(10660): Couldn't read contact photo
V/davdroid.LocalAddressBook(10660): java.io.FileNotFoundException: No photo file found for ID 0
V/davdroid.LocalAddressBook(10660): at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
V/davdroid.LocalAddressBook(10660): at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:577)
@rigid
rigid / Test.vcf
Created April 4, 2014 21:35
Test VCARD 2.1
BEGIN:VCARD
VERSION:2.1
N:Test;Testo;;;
FN:Testo Test
TEL;CELL:1234
TEL;HOME:4567
EMAIL;WORK:test@test.com
URL:http://www.test.com
PHOTO;JPEG;ENCODING=BASE64:/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwM
EAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/
/********** ACCURATE TIMER for REAL TIME CONTROL ***
This C program illustrates accurate timing on a
Raspberry Pi by sending a 50kHz signal to a GPIO pin
with a jitter of about 0.1 microseconds. It uses the
processor's 1MHz timer and disables interrupts.
It includes GPIO setup and read/write code.
Compiled from console with gcc under the standard
Debian distribution.
Calculating dependencies ... done!
[ebuild N ] dev-python/pillow-2.0.0-r1 USE="jpeg lcms tiff truetype zlib -doc -examples -scanner {-test} -tk -webp" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" 1,376 kB
[ebuild N ] virtual/python-imaging-2 USE="-tk" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" 0 kB
[ebuild N ] dev-python/gconf-python-2.28.1:2 USE="-examples" 550 kB
[ebuild N ] gnome-extra/gnome-screensaver-3.6.1 USE="pam systemd -debug -doc" 556 kB
[ebuild N ] gnome-base/gnome-panel-3.8.0-r1 USE="introspection -eds -networkmanager" 0 kB
[ebuild N ] x11-wm/muffin-1.8.2-r1 USE="introspection xinerama {-test}" 2,623 kB
[ebuild N ] gnome-extra/nemo-1.8.5 USE="exif introspection (-packagekit) {-test} -tracker -xmp" 3,717 kB
[ebuild N ] gnome-extra/cinnamon-1.8.8.1-r1 USE="bluetooth networkmanager" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 4,381 kB
[blocks B ] d
@rigid
rigid / gist:6870621
Created October 7, 2013 16:17
sensors output
sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +29.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +28.0°C (high = +80.0°C, crit = +100.0°C)
@rigid
rigid / gist:6870265
Created October 7, 2013 15:56
sensors-detect
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `jc42':
* Bus `SMBus I801 adapter at 0580'
Busdriver `i2c_i801', I2C address 0x18
Chip `Microchip MCP98243' (confidence: 5)
Driver `to-be-written':
* ISA bus, address 0xca2
apollo
description: System
product: X10SLH-F/X10SLM+-F (To be filled by O.E.M.)
vendor: Supermicro
version: 0123456789
serial: 0123456789
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: boot=normal chassis=server family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=00000000-0000-0000-0000-002590D27590
*-core
@rigid
rigid / gist:5025299
Last active December 14, 2015 03:59
static void RCC_Config(void)
{
/* RCC system reset */
RCC_DeInit();
/* Enable HSE */
RCC_HSEConfig(RCC_HSE_ON);
/* Wait till HSE is ready */
ErrorStatus status;
/** use DWT counter to delay */
void dwt_sleep(u32 time)
{
static volatile u32 *DWT_CYCCNT = (u32 *) 0xE0001004;
static volatile u32 *DWT_CONTROL = (u32 *) 0xE0001000;
static volatile u32 *SCB_DEMCR = (u32 *) 0xE000EDFC;
/* reset the counter */
*DWT_CYCCNT = 0;
/* start DWT counter */
=ERROR REPORT==== 2013-02-07 18:28:50 ===
** State machine <0.630.0> terminating
** Last message in was {ircstring,":niven.freenode.net 433 * danielh :Nickname is already in use."}
** When State == wait_for_registration
** Data == {error,
{xmlelement,"error",
[{"code","409"},{"type","cancel"}],
[{xmlelement,"conflict",
[{"xmlns",
"urn:ietf:params:xml:ns:xmpp-stanzas"}],