Skip to content

Instantly share code, notes, and snippets.

View Sar777's full-sized avatar
🎯
Focusing

Arthur Antonevich Sar777

🎯
Focusing
  • Minsk, Republic of Belarus
  • 05:09 (UTC +03:00)
View GitHub Profile
@Sar777
Sar777 / build-boost-libc++
Created September 3, 2016 23:04 — forked from jimporter/build-boost-libc++
Build Boost against libc++
#!/bin/sh
# First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
# and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
# need to explicitly link libsupc++ when you compile your own code!
#
# Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
SRC_DIR=$HOME/src/boost_1_55_0
# Set this to be the install prefix. "/usr" is also a good choice.
class AccountObjectSetCheats
{
bool AutoBattle = false;
AccountobjectSetCheats Type;
int8 SlotLockCheat = 0;
};
class AccountObjectGetProfile
{
std::string Filename;
@Sar777
Sar777 / db-connect-test.php
Created February 2, 2016 21:42 — forked from chales/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
public class AccountObjectSetCheats
{
public bool AutoBattle { get; set; }
public AccountobjectSetCheats Type { get; set; }
public sbyte SlotLockCheat { get; set; }
}
public class AccountObjectGetProfile
{
public string Filename { get; set; }

TaskScheduler guide for TrinityCore Scripting

Basic Usage

The Basis usage is like EventMap

#include "TaskScheduler"

TaskScheduler scheduler;
@Sar777
Sar777 / gist:1513716
Created December 23, 2011 09:31
crash all the time
Program received signal SIGSEGV, Segmentation fault.
[Cambiando a Thread 0x7fffdb379700 (LWP 5269)]
0x00007ffff5af5c2d in free () from /lib/libc.so.6
(gdb) info threads
13 Thread 0x7fffd8b74700 (LWP 5274) 0x00007ffff5b5ef23 in epoll_wait () from /lib/libc.so.6
12 Thread 0x7fffd9375700 (LWP 5273) 0x00007ffff5b5ef23 in epoll_wait () from /lib/libc.so.6
11 Thread 0x7fffd9b76700 (LWP 5272) 0x00007ffff5e0a36d in nanosleep () from /lib/libpthread.so.0
10 Thread 0x7fffda377700 (LWP 5271) 0x00007ffff5b2220d in nanosleep () from /lib/libc.so.6