Skip to content

Instantly share code, notes, and snippets.

View bantu's full-sized avatar

Andreas Fischer bantu

View GitHub Profile
1 => 3 # This row is read into a buffer on $db->query()
2 => 6 # Expected 4 instead of 6. This row is only fetched after the second UPDATE finished.
# https://www.sqlite.org/pragma.html says "The default isolation level for SQLite is SERIALIZABLE."
# which should prevent this from happening?
# Is this a PDO bug?
# Is this a known Sqlite issue that should be documented on
# http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/known-vendor-issues.html ?
@bantu
bantu / auth.php
Created November 28, 2013 13:59 — forked from pellaeon/auth.php
namespace OC\Core\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Auth extends Command {
protected function configure() {
@bantu
bantu / 00-status.md
Last active February 16, 2024 12:16
Seagate BlackArmor 4XX (e.g. 400, 420, 440) NAS

Device Status

  • A serial cable was soldered onto the board's CN4 connector which can be used for debugging.
  • A USB drive is attached containing a debootstrapped Debian Jessie armel on an ext4 filesystem.
  • The original flash was completely erased.
  • A new version of u-boot provided by Evgeni was installed onto the flash.
  • The new u-boot version is capable of loading files from ext4 filesystems, the old one was not.
  • u-boot loads three files: /boot/uInitrd, /boot/uDtb, /boot/uImage
  • The kernel is provided by the linux-image-kirkwood debian package.