Skip to content

Instantly share code, notes, and snippets.

View NeilHanlon's full-sized avatar

Neil Hanlon NeilHanlon

View GitHub Profile
/root/tmp/pear/PDO/pdo_dbh.c:1126: warning: assignment discards qualifiers from pointer target type
/root/tmp/pear/PDO/pdo_dbh.c:1128: error: ‘const struct _zend_arg_info’ has no member named ‘required_num_args’
/root/tmp/pear/PDO/pdo_dbh.c:1131: error: ‘const struct _zend_arg_info’ has no member named ‘required_num_args’
/root/tmp/pear/PDO/pdo_dbh.c:1133: error: ‘zend_internal_function’ has no member named ‘pass_rest_by_reference’
/root/tmp/pear/PDO/pdo_dbh.c:1134: error: ‘zend_internal_function’ has no member named ‘return_reference’
/root/tmp/pear/PDO/pdo_dbh.c:1134: error: ‘const struct _zend_arg_info’ has no member named ‘return_reference’
/root/tmp/pear/PDO/pdo_dbh.c:1139: error: ‘zend_internal_function’ has no member named ‘pass_rest_by_reference’
/root/tmp/pear/PDO/pdo_dbh.c:1140: error: ‘zend_internal_function’ has no member named ‘return_reference’
/root/tmp/pear/PDO/pdo_dbh.c: In function ‘pdo_dbh_init’:
/root/tmp/pear/PDO/pdo_dbh.c:1242: warning: assignment from incompatible pointer type
#include <iostream>
#include <vector>
using namespace std;
double getSum(vector<int> list);
int main()
{
int count = 0, input;
"message" => "92.99.109.6 - - welc0me.x10.mx [31/Oct/2014:02:51:43 -0400] \"GET /explorer.exe HTTP/1.1\" 404 1571 \"-\" \"Mozilla/4.0 (compatible; MSIE 7.0; Windows
rident/4.0; GTB7.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)\" \"-\"",
"@version" => "1",
"@timestamp" => "2014-10-31T14:25:48.007Z",
"type" => "ca-nginx",
"file" => "/var/log/nginx/access.log",
"host" => "ca.x10systems.com",
"offset" => "199905"
#! /bin/sh
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
if [type] == "some_logtype"
{
grok{}
date{}
}
if [type] == "someother_type
{
grok{}
dateP{
}
int main()
{
int x = 4, i = 0, j = 0;
for(i=0;i<x;++i)
{
for(j=0;j<x;++j)
{
if(i == 0 || i == x-1)
{
printf("@");
echo "Inode usage for: $(pwd)"; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"
log4j:WARN No appenders could be found for logger (common).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
This file has been truncated, but you can view the full file.
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (29872) at Mon Nov 24 22:42:59 2014
[20141124.224259] Detected cron=0 (manual flag passed on command line)
[20141124.224259] Running Standardized hooks
[20141124.224259] mtime on upcp is 1416883656 (Mon Nov 24 21:47:36 2014)
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (29874) at Mon Nov 24 22:42:59 2014
[20141124.224259] Detected version '11.40.1.22' from version file.
[20141124.224259] Using mirror '216.246.55.158' for host 'httpupdate.cpanel.net'.
[20141124.224259] Target version set to '11.46.0.17'
package com.neilhanlon.GradeKeeper;
import java.security.InvalidParameterException;
import java.util.*;
/**
* Created by hanlonn on 12/4/2014.
*/
public class Grader {
private enum Command {