This file contains hidden or 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
# dvm configuration | |
# ----------------- | |
# | |
# **Note**: All commented out settings are default values | |
# | |
# Docker guest IP address, available on a private network | |
# | |
export DOCKER_IP="10.1.2.3" |
This file contains hidden or 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
diff -Naur newsbeuter-2.8/Makefile newsbeuter-2.8-m/Makefile | |
--- newsbeuter-2.8/Makefile 2014-01-19 07:10:41.000000000 +0800 | |
+++ newsbeuter-2.8-m/Makefile 2014-02-02 12:49:15.000000000 +0800 | |
@@ -11,7 +11,7 @@ | |
# compiler and linker flags | |
DEFINES=-DLOCALEDIR=\"$(localedir)\" | |
WARNFLAGS=-Wall -Wextra | |
-CXXFLAGS+=-ggdb -Iinclude -Istfl -Ifilter -I. -Irss $(WARNFLAGS) $(DEFINES) | |
+CXXFLAGS+=-std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss $(WARNFLAGS) $(DEFINES) | |
LDFLAGS+=-L. |
This file contains hidden or 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
diff -Naur newsbeuter-2.8/Makefile newsbeuter-2.8-m/Makefile | |
--- newsbeuter-2.8/Makefile 2014-01-19 07:10:41.000000000 +0800 | |
+++ newsbeuter-2.8-m/Makefile 2014-02-02 12:43:11.000000000 +0800 | |
@@ -11,7 +11,7 @@ | |
# compiler and linker flags | |
DEFINES=-DLOCALEDIR=\"$(localedir)\" | |
WARNFLAGS=-Wall -Wextra | |
-CXXFLAGS+=-ggdb -Iinclude -Istfl -Ifilter -I. -Irss $(WARNFLAGS) $(DEFINES) | |
+CXXFLAGS+=-std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss $(WARNFLAGS) $(DEFINES) | |
LDFLAGS+=-L. |
This file contains hidden or 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
#!/bin/bash | |
if ! VBoxManage showvminfo $(VBoxManage list vms|grep dvm|awk '{print $1}'|tr -d '"')|grep -q running | |
then | |
VBoxManage startvm $(VBoxManage list vms|grep dvm|awk '{print $1}'|tr -d '"') --type headless | |
ssh docker@localhost -p 2222 -i ~/.vagrant.d/insecure_private_key "sudo ifconfig eth1 10.1.2.3" | |
fi | |
# run VBoxManage modifyvm $(VBoxManage list vms|grep dvm|awk '{print $1}'|tr -d '"') --natpf1 "docker,tcp,127.0.0.1,4243,,4243" once for below | |
export DOCKER_HOST=tcp://127.0.0.1:4243 | |
/usr/local/bin/docker $* |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<script type="text/javascript" src="<%= swfObjectPath_useGoogle == true ? 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js' : swfObjectPath %>"></script> | |
<script type="text/javascript"> | |
swfobject.registerObject("<%= contentID %>", "<%= fpVersionMajor %>.<%= fpVersionMinor %>.<%= fpVersionRelease %>"); | |
</script> | |
</head> |
This file contains hidden or 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
#!/bin/bash | |
BUCKETNAME="your_s3_bucket" | |
LOGDIR="/var/log/nginx" | |
LOGDATE=$(date +"%Y%m%d") | |
HOST=$(wget -q -O- http://169.254.169.254/latest/meta-data/instance-id) | |
LOGFILES=("access") | |
echo "Moving access logs to dated logs.." |
NewerOlder