Skip to content

Instantly share code, notes, and snippets.

View liweinan's full-sized avatar
🐢

阿男 liweinan

🐢
View GitHub Profile
#!/bin/bash
#
# httpd Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: httpd
# config: /etc/httpd22/conf/httpd.conf
# config: /etc/sysconfig/httpd22
[Unit]
Description=The EWS Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
EnvironmentFile=/etc/sysconfig/httpd22
ExecStart=/usr/sbin/httpd22 $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd22 $OPTIONS -k graceful
ExecStop=/usr/sbin/httpd22 $OPTIONS -k stop
PrivateTmp=true
%define _jarsign_opts --nocopy
%if "%{?rhel}" == "6"
%bcond_without zip
%else
%bcond_with zip
%endif
%define reltag GA
%define namedversion %{name}-%{version}.%{reltag}
class DirectedGraph
attr_accessor :adjacents, :vertexes, :edges
class Vertex
attr_accessor :out_degree, :in_degree
attr_accessor :key
def initialize(key)
@key = key
@out_degree = 0
0 5
4 3
0 1
9 12
6 4
5 4
0 2
11 12
9 10
0 6
[Date Prev][Date Next] [Thread Prev][Thread Next] [Thread Index] [Date Index] [Author Index]
Cron <gbarreir tomentum> /home/Jboss/Scripts/runconsist-ews2-new.sh ; /home/Jboss/Scripts/upload-ews2.sh
From: root tomentum usersys redhat com (Cron Daemon)
To: jbossas-prod-cron redhat com, gbarreir redhat com, dcheung redhat com, mtjandra redhat com
Subject: Cron <gbarreir tomentum> /home/Jboss/Scripts/runconsist-ews2-new.sh ; /home/Jboss/Scripts/upload-ews2.sh
Date: Mon, 12 May 2014 04:00:05 -0400
Running on /tmp/runconsist.HOGSH15246
Mon May 12 04:00:05 EDT 2014
@liweinan
liweinan / ObjectFactory.java
Created June 22, 2014 15:53
ObjectFactory Demo
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
@liweinan
liweinan / gist:3f8e6e253d5f1ca43429
Last active August 29, 2015 14:03
analysis.txt
Last login: Sat Jun 28 15:23:01 on ttys005
master:~ weinanli$ ssh fedora20
weli@fedora20's password:
Last login: Sat Jun 28 15:23:08 2014 from 10.211.55.2
[weli@localhost ~]$ cd projs/
[weli@localhost projs]$ ls
64 asm constructor ctest dl_iterate_phdr gprof lib pic relocation
[weli@localhost projs]$ cd gprof/
[weli@localhost gprof]$ ls
analysis.txt a.out gmon.out gprof gprof.c
@liweinan
liweinan / SecurityTestConstants.java
Created July 19, 2014 08:17
SecurityTestConstants.java
SecurityTestConstants.java
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
@liweinan
liweinan / gist:711f02b8174e615e8fa9
Last active August 29, 2015 14:04
Proxy.newProxyInstance
/**
* Returns an instance of a proxy class for the specified interfaces
* that dispatches method invocations to the specified invocation
* handler. This method is equivalent to:
* <pre>
* Proxy.getProxyClass(loader, interfaces).
* getConstructor(new Class[] { InvocationHandler.class }).
* newInstance(new Object[] { handler });
* </pre>
*