Skip to content

Instantly share code, notes, and snippets.

configure --disable-all --enable-cli --enable-cgi
C:\install\php-sdk-binary-tools-20110915\php53dev\vc9\x86\php-5.3.6\Release_TS\php5ts.dll
#include <boost/algorithm/string.hpp>
#include <iostream>
using namespace std;
using namespace boost;
int main( int argc , char ** argv )
{
string str1 = "hello black falcon ab-*-AB-*-aB";
hacker@ubuntu:~/cpp$
hacker@ubuntu:~/cpp$
hacker@ubuntu:~/cpp$
hacker@ubuntu:~/cpp$ c++ -I /home/hacker/boost_1_61_0 -o boost_find2 boost_find2.cpp
hacker@ubuntu:~/cpp$
hacker@ubuntu:~/cpp$
hacker@ubuntu:~/cpp$ ./boost_find2
ab
AB
aB
@ox1111
ox1111 / lambda1.cpp
Last active February 27, 2019 02:29
//
// https://wandbox.org/permlink/3bwgkuIXyb83E0rK
//
// $ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.63.0/gcc-7.3.0/include -std=gnu++17
//
#include <iostream>
#include <algorithm>
#include <vector>
//
//
// g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=c++17
//
//
#include <iostream>
#include <algorithm>
#include <vector>
#
# write by SpeeDr00t
#
#
# 실행
#
# chmod 755 acewrapper.sh
# . acewrapper.sh
#
gcc --version
@ox1111
ox1111 / testsv.cpp
Last active February 27, 2019 06:07
#include "ace/Shared_Memory_SV.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_unistd.h"
#include <string>
#include <iostream>
#define SHMSZ 27
#define SHM_KEY (key_t) 5678
@ox1111
ox1111 / result.sh
Last active February 27, 2019 05:59
cd /home/hacker/ACE_wrappers/examples/Shared_Memory
hacker@ubuntu:~/ACE_wrappers/examples/Shared_Memory$make
hacker@ubuntu:~/ACE_wrappers/examples/Shared_Memory$ ./testsv
man
abcdefghijklmnopqrstuvwxyz
//
// third_party_lib.cpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//