This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Header, 0x80/0x800 long? | |
first record starts at 0x800 | |
NOT alligned (some things are 2 byte aligned) | |
From the upgrade guide: | |
0 - no record header | |
10 - variable length record header | |
18 - superfile record header | |
22 - resource record header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
http-accept() { | |
read -r REQ <&3 | |
REQ=`echo "$REQ" | tr '\r\n' ' '` | |
#read -r LINE <&3 | |
#while [ -n "$LINE" ]; do | |
# read -r LINE <&3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set pagination off | |
set logging file gdb.txt | |
set logging on | |
break sendto_realops_snomask | |
commands | |
bt full | |
c | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
TAG_TYPE_NULL = 0x1000 | |
TAG_TYPE_BYTE = 0x2000 | |
TAG_TYPE_WORD = 0x3000 | |
TAG_TYPE_DWORD = 0x4000 | |
TAG_TYPE_QWORD = 0x5000 | |
TAG_TYPE_STRINGREF = 0x6000 | |
TAG_TYPE_LIST = 0x7000 | |
TAG_TYPE_STRING = 0x8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class a { | |
protected $foo = "foo"; | |
function foo() { | |
print($this->foo); | |
} | |
function a() { | |
$this->foo = "bar"; | |
$this->foo(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube download links | |
// @namespace sothiscanbeanythingright | |
// @description Adds a tab for downloading youtube videos | |
// @include http://www.youtube.com/watch* | |
// @include https://www.youtube.com/watch* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE application_settings ( | |
id bigserial NOT NULL, | |
registrationenabled boolean NOT NULL | |
); | |
CREATE TABLE devices ( | |
id bigserial NOT NULL, | |
name character varying(255), | |
uniqueid character varying(255), | |
latestposition_id bigint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[andrew@andrews-laptop tmp]$ cat test.cpp | |
#include <string> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
string *str = new string("test"); | |
} | |
[andrew@andrews-laptop tmp]$ g++ -nostdlib test.cpp | |
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400144 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <sys/wait.h> | |
#include <sys/prctl.h> | |
int main(int argc, char *argv[]) { | |
if(argc < 2) { | |
puts("Insufficent parameters"); |