This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host github.com | |
HostName github.com | |
Port 22 | |
ProxyCommand corkscrew $PROXY_DOMAIN $PROXY_PORT %h %p | |
User git | |
IdentityFile ~/.ssh/id_rsa | |
IdentitiesOnly yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ############################################################################ | |
" # neobundle.vim.local | |
" ############################################################################ | |
" | |
" for proxy | |
let g:neobundle#types#git#default_protocol='https' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
INSTALL="yum install -y" | |
GROUP_INSTALL="yum groupinstall -y" | |
ENABLE_REPO="--enablerepo=epel,remi,rpmforge,nginx" | |
EPEL="http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm" | |
REMI="http://rpms.famillecollet.com/enterprise/remi-release-6.rpm" | |
RPMFORGE="http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm" | |
NGINX="http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RULE x-forwarded-for | |
INTERFACE javax.servlet.http.HttpServletRequest | |
METHOD getRemoteAddr | |
AT EXIT | |
IF $0.getHeader("x-forwarded-for") != null | |
DO | |
RETURN $0.getHeader("x-forwarded-for") | |
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## usage | |
# add this script path in VagrantFile | |
# --- | |
# Vagrant.configure("2") do |config| | |
# config.vm.box = "box-name" | |
# config.vm.provision :shell, :path => "bootstrap_centos64_64.sh" | |
# ... | |
# --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAG_PREFIX="" | |
LOGS=$(cat <<"EOF" | |
wildfly.access $JBOSS_HOME/standalone/log/default-host/access.log.<date> | |
EOF | |
) | |
PRIMARY_SERVER="localhost:24224" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type forward | |
</source> | |
<match wildfly.access> | |
type copy | |
<store> | |
type file_alternative | |
path /var/log/td-agent/wildfly-access.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RULE WILDFLY_STARTED | |
CLASS org.jboss.as.server.BootstrapListener | |
METHOD done | |
AT EXIT | |
IF TRUE | |
DO traceln("WildFly started with Byteman!") | |
ENDRULE | |
RULE WILDFLY_STOPPED | |
CLASS org.jboss.as.server.ApplicationServerService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(prefix=access) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hello; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.ConfigurableApplicationContext; | |
import org.springframework.util.FileSystemUtils; | |
import java.io.File; | |
public class Receiver { |
OlderNewer