Weinan Li liweinan

View mod_snmp.spec
1 2 3 4 5 6 7 8 9
%define _jarsign_opts --nocopy
%if "%{?rhel}" == "6"
%bcond_without zip
%else
%bcond_with zip
%endif
 
%define reltag GA
%define namedversion %{name}-%{version}.%{reltag}
View httpd22.service
1 2 3 4 5 6 7 8 9 10
[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
View httpd22.sh
1 2 3 4 5 6 7 8 9 10
#!/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
View gist:8123931
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
 
 
// Allocates RWX memory of given size and returns a pointer to it. On failure,
// prints out the error and returns NULL.
void* alloc_executable_memory(size_t size) {
void* ptr = mmap(0, size,
View gist:8007366
1 2 3 4 5 6 7 8 9 10
$ git diff
diff --git a/resteasy.spec b/resteasy.spec
index 3d9d630..3c3ed98 100644
--- a/resteasy.spec
+++ b/resteasy.spec
@@ -4,19 +4,20 @@
 
%bcond_with mead
 
-%define section .Final
View httpd.spec
1 2 3 4 5 6 7 8 9 10
%define contentdir /var/www/httpd22
%define suexec_caller apache
%define mmn 20051115
%define vstring Red Hat
%define distro Red Hat Enterprise Web Server
# Minimum version of OpenSSL having support for the secure TLS reneg API
%define opensslver 0.9.8e-12.el5_4.4
 
%define _with_zips 1
%define _with_src_zips 1
View gist:7878013
1 2 3 4 5 6 7 8 9 10
%define contentdir /var/www/httpd22
%define suexec_caller apache
%define mmn 20051115
%define vstring Red Hat
%define distro Red Hat Enterprise Web Server
# Minimum version of OpenSSL having support for the secure TLS reneg API
%define opensslver 0.9.8e-12.el5_4.4
 
%define _with_zips 1
%define _with_src_zips 1
View gist:7366059
1 2 3 4 5 6 7 8 9 10
import org.apache.commons.codec.binary.Base64;
 
import java.util.UUID;
 
public class UuidUtils {
 
public static String uuid() {
UUID uuid = UUID.randomUUID();
return uuid.toString();
}
View gist:6113809
1 2 3 4 5 6 7 8
if @output == true
expire_all_fragments
format.html { redirect_to(:controller => :packages, :action => :show, :id => escape_url(@package.name), :task_id => escape_url(@package.task.name), :user => params[:user]) }
format.js
else
format.html { render :action => :edit }
format.js
end
View 1.rb
1 2 3 4 5 6 7 8
class SomeController < ApplicationController
def update
respond_to do |format|
format.html { render :action => :show }
format.js
end
end
end
Something went wrong with that request. Please try again.