Skip to content

Instantly share code, notes, and snippets.

View ss23's full-sized avatar

☃ Stephen Shkardoon ☃ ss23

View GitHub Profile
/*******************
* multiplicity.js *
*******************
*
* Out of one cell and into another. They're not giving you
* very much to work with here, either. Ah, well.
*
* Level filenames can be hints, by the way. Have I
* mentioned that before?
*
ss23@crisp ~/xbmc-fuse/test $ ls -lah
total 4.0K
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 .
drwxr-xr-x 3 ss23 ss23 4.0K May 18 23:58 ..
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Black Rock Shooter
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Digimon Adventure 02: Diablomon no Gyakushuu
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Digital Monster X-evolution
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Evangelion Shin Gekijouban: Ha
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Evangelion Shin Gekijouban: Jo
drwxr-xr-x 21 root root 4.0K Jan 3 06:45 Koukaku Kidoutai Arise
<!doctype html>
<html>
<head>
<title>Test case</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" >
<link rel="stylesheet" type="text/css" media="screen" href="layout.css">
</head>
<body>
<div class="header">
<div class="stickyboxright">
ss23@crisp /mnt/media/firmware-fun $ binwalk v130_v375_release_STD.rst
DECIMAL HEXADECIMAL DESCRIPTION
------------------------------------------------------------------------------------------------------------------------------------------------------
2023732 0x1EE134 HTML document header
2339271 0x23B1C7 HTML document header
3628181 0x375C95 PFS filesystem, version "1.0", 13105 files
3966270 0x3C853E HTML document header
4106958 0x3EAACE HTML document header
4182997 0x3FD3D5 HTML document header
ss23@crisp /mnt/media/firmware-fun/draytek-firmware $ binwalk */*.rst
Scan Time: 2014-05-29 23:30:53
Target File: Vigor120 v3.2.4.2 annexA_STD/v120_a_3244.rst
MD5 Checksum: a632545f2ef25d5095172af2c11f2c52
Signatures: 289
DECIMAL HEXADECIMAL DESCRIPTION
------------------------------------------------------------------------------------------------------------------------------------------------------
1025670 0xFA686 HTML document header
# DrayTek firmware -- https://github.com/ammonium/draytools/
8 quad 0
>16 quad 0
>>24 quad 0
>>>32 quad 0
>>>>40 quad 0
>>>>>48 quad 0
>>>>>>56 quad 0
>>>>>>>64 quad 0
>>>>>>>>72 quad 0
<?php
function test() {
$page1 = new SiteTree();
$page1->ID = mt_rand();
$page1->ParentID = 0;
$page1->write();
$page1->publish("Stage", "Live");
$page2 = new SiteTree();
Building "titledk/cloudy"
ERROR [User Error]: Uncaught InvalidArgumentException: ManyManyList::add() expecting a Image object, or ID value
IN GET /dev/tasks/BuildAddonsTask
Line 92 in /sites/addons/releases/20140716084200/framework/model/ManyManyList.php
Source
======
83: /**
84: * Add an item to this many_many relationship
85: * Does so by adding an entry to the joinTable.
[22064335.852514] EXT4-fs (sdd1): mounting ext2 file system using the ext4 subsystem
[22064335.854697] EXT4-fs (sdd1): mounted filesystem without journal. Opts: (null)
[22064340.838614] EXT4-fs (sdd1): mounting ext2 file system using the ext4 subsystem
[22064340.840984] EXT4-fs (sdd1): mounted filesystem without journal. Opts: (null)
@ss23
ss23 / SnapshotsCleanupTask.php
Created October 7, 2014 23:33
A task you can run to clean up your snapshots folder if it's got lots of failed transfers in it
<?php
class SnapshotsCleanup extends BuildTask {
protected $title = 'Snapshot Cleanup';
protected $description = 'Attempt to aggressivly remove all broken or half completed snapshots';
public function run($request) {
echo PHP_EOL . PHP_EOL;