Skip to content

Instantly share code, notes, and snippets.

View simpsonjulian's full-sized avatar

Julian Simpson simpsonjulian

View GitHub Profile
= This is an Asciidoc Article
Srsly.
https://twitter.com/nawroth[Anders] knows Asciidoc.
== Another Title
This document is written in Asciidoc. It's published to WordPress using 'blogpost.py'.
== Another Pointless Title
jsimpson$ while true; do curl -sv http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/11/maven-parent-11.pom 2>&1 | grep X-Served-By; sleep 1; done
< X-Served-By: cache-iad2126-IAD, cache-sjc3129-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3127-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3129-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3135-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3134-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3128-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3133-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3130-SJC
< X-Served-By: cache-iad2126-IAD, cache-sjc3127-SJC
FROM centos:centos6
# Would prefer headless, but not available in CentOS6
RUN yum -y install wget java-1.7.0-openjdk scl-utils redhat-lsb-core
RUN wget -qO- http://dev.centos.org/centos/6/SCL/scl.repo >> /etc/yum.repos.d/centos.scl.repo
RUN yum -y install python27-python python27-python-setuptools
### Neo4j RPM
RUN wget http://debian.neo4j.org/neotechnology.gpg.key -O /tmp/neo4j.key && rpm --import /tmp/neo4j.key && rm -f /tmp/neo4j.key
RUN echo '[neo4j]' > /etc/yum.repos.d/neo4j.repo && echo 'name=Neo4j Yum Repo' >> /etc/yum.repos.d/neo4j.repo && echo 'baseurl=http://yum.neo4j.org' >> /etc/yum.repos.d/neo4j.repo && echo 'enabled=1' >> /etc/yum.repos.d/neo4j.repo && echo 'gpgcheck=1' >> /etc/yum.repos.d/neo4j.repo && yum -y install neo4j
root@vagrant-ubuntu-trusty-64:/var/log/neo4j# cat console.log
2014-09-01 05:35:03.956+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2014-09-01 05:35:06.053+0000 INFO [API] Successfully started database
2014-09-01 05:35:06.207+0000 INFO [API] Starting HTTP on port :7474 with 10 threads available
2014-09-01 05:35:06.477+0000 INFO [API] Enabling HTTPS on port :7473
2014-09-01 05:35:06.477+0000 INFO [API] No SSL certificate found, generating a self-signed certificate..
2014-09-01 05:35:07.248+0000 INFO [API] Mounted discovery module at [/]
2014-09-01 05:35:07.256+0000 INFO [API] Mounted REST API at [/db/data/]
2014-09-01 05:35:07.260+0000 INFO [API] Mounted management API at [/db/manage/]
2014-09-01 05:35:07.261+0000 INFO [API] Mounted webadmin at [/webadmin]
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQENBFCL9LABCACkBWFOHoSZ+xaIjh8FprxFhHW+StN++1mySKLGd4GoQqZLZsfB
h4MyoZDx/BUY4T+uO2w+YBfSS+CijLjXnaaPN4D1C0+YDEIWhn0Nq7CV42NcXg6m
oUYz+qe+0tTYuuCxIMnb9qdGsK7/WySgUBPgcTo40QrRzj1WYAL8xznjyF6IVJot
pH7tk9hqKTM6bDYxd969wpE7NvPUWOsl4a+JMEY+ErM19y9j7W+bwf36mtcs5cyO
DyIFw/4WVdBZouYBYe2OEO8Ak4SY4XCb/cFWquy3wLM8BfZB9Uj1BHjMacVkmCNx
Dadc+jraQZItRenQzyk0zauA79BAJ24onYjvABEBAAG0ME5lbyBUZWNobm9sb2d5
IEFkbWlucyA8YWRtaW5zQG5lb3RlY2hub2xvZ3kuY29tPokBPgQTAQIAKAUCUIv0
julian-simpsons-macbook:oneclick jsimpson$ cap staging deploy
* executing `staging'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
triggering before callbacks for `deploy'
* executing `deploy:notify:start'
* executing "curl -X POST -d \"application=oneclick\" http://weather.engineyard.com/`hostname`/deploy_start -fs"
servers: ["74.201.254.36"]
[74.201.254.36:8209] executing command
<h1>Hello, I am an H1 element</h1>
<h2>And I am an H2 element</h2>
<img src="http://i.giphy.com/nVjF7nuiFnyN2.gif" alt="Look! An image!" />
<p>This should really have more text on it - Lorem something something</p>
@simpsonjulian
simpsonjulian / crapcheck.rake
Created April 1, 2011 15:38
Zero tolerance
desc "Check for tabs and trailing spaces"
task :crapcheck do
Dir["public/**/*.js"].each do |f|
next if f.match(/^lib|resources/)
text = File.read(f)
raise "Tabs found in #{f}" if text.match(/\t/)
raise "Trailing spaces found in #{f}" if text.match(/ $| $/)
end
end
mkdir -p "/var/lib/jenkins/jobs/manual/workspace/target/manpages"
# shell
"/var/lib/jenkins/jobs/manual/workspace/src/bin/asciidoc/a2x.py" -k -f manpage -d manpage -D "/var/lib/jenkins/jobs/manual/workspace/target/manpages" "/var/lib/jenkins/jobs/manual/workspace/target/docs/neo4j-shell-docs-jar/man/neo4j-shell.1.txt"
a2x: ERROR: xmllint --nonet --noout --valid /var/lib/jenkins/jobs/manual/workspace/target/manpages/neo4j-shell.1.xml returned non-zero exit status 127
make: *** [manpages] Error 1
awk '{print $1}' /var/log/apache2/access.log | sort -u | while read host; do
host $host;
done