Skip to content

Instantly share code, notes, and snippets.

View impl's full-sized avatar

Noah Fontes impl

  • Perforce
  • Portland, OR
  • 16:12 (UTC -07:00)
View GitHub Profile
@impl
impl / gist:4747298
Created February 9, 2013 21:59
Yaffs configuration for RB333/RB600
CONFIG_YAFFS_FS=y
CONFIG_YAFFS_YAFFS1=y
CONFIG_YAFFS_9BYTE_TAGS=y
CONFIG_YAFFS_YAFFS2=y
CONFIG_YAFFS_AUTO_YAFFS2=y
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y
@impl
impl / Introspections.java
Created January 26, 2013 09:07
Utility class for analyzing type information in Java
/* This file incorporates portions of JBoss Weld, the JSR-299 reference
* implementation.
*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
SELECT
l1.type,
s1.sid blocker_sid, s1.machine blocker_machine, s1.sql_id blocker_sql_id,
s2.sid blocked_sid, s2.machine blocked_machine, s2.sql_id blocked_sql_id,
obj.object_type, obj.object_name
FROM v$lock l1 JOIN v$lock l2 ON (l1.id1 = l2.id1 AND l1.id2 = l2.id2)
JOIN v$session s1 ON (s1.sid = l1.sid) JOIN v$session s2 on (s2.sid = l2.sid)
LEFT JOIN dba_objects obj ON (obj.object_id = l1.id1)
WHERE l1.lmode > 1 AND l2.request > 1;