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
deploy@li96-191:~$ sudo grep -i "killed" /var/log/* | |
/var/log/auth.log:Feb 5 23:33:16 li96-191 sudo: deploy : TTY=pts/2 ; PWD=/home/deploy ; USER=root ; COMMAND=/bin/grep -i killed /var/log/apt /var/log/aptitude /var/log/auth.log /var/log/boot /var/log/bootstrap.log /var/log/btmp /var/log/daemon.log /var/log/debug /var/log/dmesg /var/log/dmesg.0 /var/log/dpkg.log /var/log/faillog /var/log/fsck /var/log/kern.log /var/log/lastlog /var/log/lpr.log /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn /var/log/messages /var/log/mysql /var/log/mysql.err /var/log/mysql.log /var/log/mysql.log.1.gz /var/log/mysql.log.2.gz /var/log/mysql.log.3.gz /var/log/news /var/log/ntpstats /var/log/passenger-analytics /var/log/pycentral.log /var/log/syslog /var/log/syslog.1 /var/log/syslog.2.gz /var/log/syslog.3.gz /var/log/udev /var/log/user.log /var/log/wtmp |
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 Header < BinData::Record | |
endian :big | |
string :magic, :read_length => 1 | |
int32 :type | |
int32 :sender_id | |
int32 :payload_length | |
end | |
class PlayServerConnect < BinData::Record | |
endian :big |
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
def post_init | |
packet = PlayServerConnect.new() | |
packet.id = "100002351842512" | |
packet.zhash = "228ae84f6d2cba7900ed11858e97c2cc" | |
sendMessage(MESSAGE_PLAYSERVERCONNECT, packet) | |
end | |
def sendMessage(type, data) | |
header = Header.new() | |
header.magic = MAGIC |
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
unsigned long HashString(const char *pName) | |
{ | |
const char* pStr = 0; | |
unsigned long hash = 0; | |
unsigned long temp = 0; | |
for(pStr = pName; *pStr; ++pStr) | |
{ | |
hash = (hash << 4) + tolower(*pStr); | |
if (0 != (temp = hash & 0xf0000000)) |
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
def calcHash(file) | |
hash = 0 | |
file.downcase.each_byte do |char| | |
hash = (hash << 4) + char; | |
if 0 != ((tmp = hash) & 0xf0000000) | |
hash = hash ^ (tmp >> 24); | |
hash = hash ^ tmp; | |
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
require 'sinatra' | |
require 'crack' | |
require 'mechanize' | |
require 'memcached' | |
$cache = Memcached.new("localhost:11211") | |
def transmogs | |
{ | |
:druid => { | |
:race_gender => "trollmale", |
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
5d 123 | |
-5d 123 | |
5o 123 | |
+5x 123 | |
05X 123 | |
8.3f 12.3 | |
12.3e 12.3 | |
012.3E 12.3 | |
08.3f 12.3 | |
-8.3f 12.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
Flat Send Table DT_WORLD | |
31 .m_flSimulationTime 1000000000000000001 | |
32 .m_cellbits 1 | |
32 .m_cellX 1 | |
32 .m_cellY 1 | |
32 .m_cellZ 1 | |
128 .m_flAnimTime 1000000000000000001 | |
128 .m_vecOrigin 1001000000000000000 | |
128 .m_angRotation 1000000000000001000 | |
128 .m_vecSpecifiedSurroundingMaxs 100 |
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
Updating DT_WORLD of class CWorld. 54 fields | |
Updating Prop DT_BaseEntity.m_flSimulationTime of type SP_Int to value 0. Bits left 1273 | |
Updating Prop DT_BaseEntity.m_cellbits of type SP_Int to value 7. Bits left 1268 | |
Updating Prop DT_BaseEntity.m_cellX of type SP_Int to value 128. Bits left 1260 | |
Updating Prop DT_BaseEntity.m_cellY of type SP_Int to value 128. Bits left 1252 | |
Updating Prop DT_BaseEntity.m_cellZ of type SP_Int to value 128. Bits left 1244 | |
Updating Prop DT_BaseEntity.m_vecOrigin of type SP_Vector to value 0 0 0. Bits left 1208 | |
Updating Prop DT_BaseEntity.m_angRotation of type SP_Vector to value 0 0 0. Bits left 1169 | |
Updating Prop DT_CollisionProperty.m_vecSpecifiedSurroundingMaxs of type SP_Vector to value 0 0 0. Bits left 1073 | |
Updating Prop DT_CollisionProperty.m_nSurroundType of type SP_Int to value 0. Bits left 1070 |
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 String table: downloadables 15 1 | |
Create String table: modelprecache 325 1 | |
Create String table: genericprecache 1 1 | |
Create String table: soundprecache 4599 1 | |
Create String table: decalprecache 0 1 | |
Create String table: instancebaseline 96 0 | |
Create String table: lightstyles 64 0 | |
Create String table: userinfo 64 0 | |
Create String table: dynamicmodel 0 0 | |
Create String table: server_query_info 1 0 |
OlderNewer