Skip to content

Instantly share code, notes, and snippets.

cmake_minimum_required(VERSION 3.10)
project(hackdel)
set(CMAKE_CXX_STANDARD 14)
#
#find_package(Boost 1.66.0 COMPONENTS filesystem REQUIRED)
#if(Boost_FOUND)
# include_directories(${Boost_INCLUDE_DIRS})
# add_executable(10_file_io ${SOURCE_FILES})
# target_link_libraries(your_project_name ${Boost_LIBRARIES})
#!/bin/bash
agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
cmd="curl -A"
echo "Fetching images for $1"
id=`echo $1 | cut -d '-' -f 5 | cut -d '.' -f 1`
#include <tins/tins.h>
#include <iostream>
using namespace Tins;
using namespace std;
void dump_tcp_stream(const Tins::TCPStream & stream)
{
cout << "data_stream_callback" << endl;
#define BOOST_LOG_DYN_LINK 0
#include <boost/program_options.hpp>
#include <boost/log/trivial.hpp>
#include <boost/container/flat_map.hpp>
#include <ctime>
extern "C" {
#include <hdr/hdr_histogram.h>
#include <hdr/hdr_histogram_log.h>
import pprint
import cmd
import subprocess as sp
PSCMD=" ps -eLo \"pid,tid,class,psr,pcpu,stat,wchan:17,comm\""
PSCMDLEN = 8
PSC_PID = 0
PSC_TID = 1
PSC_PSR = 3
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
unsigned char *buf = malloc(16);
memcpy(buf, "\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF", 16);
@easytiger
easytiger / README.md
Last active August 29, 2015 14:04 — forked from mbostock/.block

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.

#include <assert.h>
#include <stdio.h>
#include <nanomsg/nn.h>
#include <nanomsg/pubsub.h>
#include <iostream>
#include <sstream>
#include <assert.h>
#include <stdint.h>
#include <zmq.h>
#include <assert.h>
#include <stdio.h>
#include <nanomsg/nn.h>
#include <nanomsg/pubsub.h>
#include <iostream>
#include <sstream>
#include <assert.h>
#include <stdint.h>
#include <time.h>
#include <iostream>
#include <assert.h>
#include <stdint.h>
#include <zmq.h>
using namespace std;
int main(int argc, char** argv)
{
void *context = zmq_ctx_new ();