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
# Usage: rails new myapp -m neo4j.rb -O | |
gem "neo4j", '~> 9.6.1' | |
generator = %q[ | |
config.generators do |g| | |
g.orm :neo4j | |
end |
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
import csv | |
import io | |
import tempfile | |
import zipfile | |
import boto3 | |
import yaml | |
from botocore.exceptions import ClientError | |
BUCKET = COST ALLOCATION REPORT BUCKET |
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
system_profiler SPManagedClientDataType | awk '/com.apple.screensaver:/{p=1} p' |
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
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project neo4j-backup: Compilation failure: Compilation failure: | |
[ERROR] /jenkins/workspace/neo4j-1.9-outreach/enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java:[147,89] getHostString() is not public in java.net.InetSocketAddress; cannot be accessed from outside package | |
[ERROR] /jenkins/workspace/neo4j-1.9-outreach/enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java:[147,164] getHostString() is not public in java.net.InetSocketAddress; cannot be accessed from outside package | |
[ERROR] /jenkins/workspace/neo4j-1.9-outreach/enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java:[169,89] getHostString() is not public in java.net.InetSocketAddress; cannot be accessed from outside package | |
[ERROR] /jenkins/workspace/neo4j-1.9-outreach/enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java:[169,16 |
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
ab -n 1000 -c 10 http://www.build-doctor.com/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking www.build-doctor.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |
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
knox:tmp jsimpson$ ./bad | |
a | |
a | |
a | |
b | |
a | |
b | |
b | |
knox:tmp jsimpson$ ./bad | uniq | |
a |
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
awk '{print $1}' /var/log/apache2/access.log | sort -u | while read host; do | |
host $host; | |
done |
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
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 |
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
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 |
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
<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> |
NewerOlder