Skip to content

Instantly share code, notes, and snippets.

Julian Simpson simpsonjulian

Block or report user

Report or block simpsonjulian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@simpsonjulian
simpsonjulian / tagger.py
Created Jun 11, 2018
Ersatz Cost Allocation Tags
View tagger.py
import csv
import io
import tempfile
import zipfile
import boto3
import yaml
from botocore.exceptions import ClientError
BUCKET = COST ALLOCATION REPORT BUCKET
View foo.sh
system_profiler SPManagedClientDataType | awk '/com.apple.screensaver:/{p=1} p'
View fragment.html
<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>
View gist:0b37ce929359262995ea
-----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
View gist:ee088ebaa8be7287c63f
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]
View Dockerfile
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
View gist:8e960d4923b4f5f7cedc
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
View article
= 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
View gist:7256038
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
View gist:3492301
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
You can’t perform that action at this time.