NameVirtualHost *
DocumentRoot /web/example.com/www
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title>Regex Cheat Sheet</title> | |
<style type="text/css"> | |
body { font-family: verdana; font-size: smaller; } | |
h2 { margin-bottom: 3px; font-size: small; } | |
th { background-color:#f6f6f6; } | |
td.sc { text-align:center; font-weight:bold; font-size:xx-large; font-family:"courier new", courier; } |
NameVirtualHost *
DocumentRoot /web/example.com/www
#include <iostream> | |
#include <cstdint> | |
using namespace std; | |
#include <boost/multiprecision/cpp_int.hpp> | |
using namespace boost::multiprecision; | |
#if 0 |
/* ghosttest.c: GHOST vulnerability tester */ | |
/* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */ | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
for(long long i=1000000000; i <= 9999999999; i++) | |
{ | |
long long a = i; | |
int x[10] = {}; |
#!/bin/bash | |
for i in *.h # or whatever other pattern... | |
do | |
if ! grep -q Copyright $i | |
then | |
cat copyright.txt $i >$i.new && mv $i.new $i | |
fi | |
done |
class C | |
{ | |
public: | |
void *hello(void) | |
{ | |
std::cout << "Hello, world!" << std::endl; | |
return 0; | |
} | |
static void *hello_helper(void *context) |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netinet/tcp.h> | |
int enableKeepAlive = 1; | |
int fd = tcpSocket->socketDescriptor(); | |
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &enableKeepAlive, sizeof(enableKeepAlive)); | |
int maxIdle = 300; | |
setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &maxIdle, sizeof(maxIdle)); |
- | e | p | |
---|---|---|---|
l | execl | execle | execlp |
v | execv | execve | execvp |
#ifndef MATH_UNSIGNED_H | |
#define MATH_UNSIGNED_H | |
#include <cstdint> | |
#include <vector> | |
#include <iostream> | |
#include <stdexcept> | |
#include <algorithm> | |
#include <sstream> | |
#include <cctype> |