Skip to content

Instantly share code, notes, and snippets.

View mbohun's full-sized avatar
🙃
How do you do?

Martin Bohun Hormann mbohun

🙃
How do you do?
  • Canberra, ACT, Australia
View GitHub Profile
@mbohun
mbohun / test_R_out_in_csv_style.md
Last active August 27, 2015 02:46
test R output in CSV format in github md
no, latitude, longitude, temperatureWarmestMonthMin, distanceToPermanentWaterWeighted
1,  -12.50860,  145.7189,                         NA,                               NA
2,  -21.41939,  133.5143,                      23.62,                       0.39824614
3,  -22.28138,  120.4245,                      23.87,                       0.41593270
4  -26.60327  137.9844                      23.03                       0.62936470
5  -30.88682  131.9950                      16.23                       1.51092680
@mbohun
mbohun / ubuntu32-vagrant-ansible-mods-for-4gbRAM.diff
Created June 4, 2014 04:33
vagrant and ansible adjustments i had to make in order to run it on a box with only 4gb of RAM
diff --git a/ansible/roles/biocache-db/tasks/main.yml b/ansible/roles/biocache-db/tasks/main.yml
index 93314e1..d8d2cb2 100644
--- a/ansible/roles/biocache-db/tasks/main.yml
+++ b/ansible/roles/biocache-db/tasks/main.yml
@@ -4,9 +4,6 @@
# - include: ../../common/tasks/cassandra.yml
# - include: ../../common/tasks/nameindex.yml
-- name: disable swap
- shell: "sudo swapoff --all"
@mbohun
mbohun / gist:8289b4a5ae73b5b1b155
Created June 13, 2014 07:02
ansible meets brew :-)
bash-3.2$ uname -a
Darwin twain-be-2.local 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
bash-3.2$ ansible all -m ping -i inventories/vagrant -u vagrant --ask-pass -vvvv
SSH password:
<10.1.1.2> ESTABLISH CONNECTION FOR USER: vagrant
<10.1.1.2> REMOTE_MODULE ping
10.1.1.2 | FAILED => to use the 'ssh' connection type with passwords, you must install the sshpass program
bash-3.2$
bash-3.2$ sudo brew install sshpass
Error: No available formula for sshpass
From c4a2d5ac5c75eda619c5df52879a251787a90f66 Mon Sep 17 00:00:00 2001
From: mbohun <martin.bohun@gmail.com>
Date: Fri, 20 Jun 2014 16:30:08 +1000
Subject: [PATCH] initial version of ansible support for dashboard
---
.gitignore | 1 +
ansible/dashboard-standalone.yml | 7 +++++++
ansible/roles/dashboard/tasks/main.yml | 17 +++++++++++++++++
.../dashboard/templates/dashboard-config.properties | 12 ++++++++++++
@mbohun
mbohun / Fix_for_4326_in_WMS-Scatterplot_service-revisions-diff.patch
Last active August 29, 2015 14:03
Fix for 4326 in WMS, Scatterplot service, Fix for fqs in qids in WMS
Index: src/main/java/au/org/ala/biocache/web/ScatterplotController.java
===================================================================
--- src/main/java/au/org/ala/biocache/web/ScatterplotController.java (revision 0)
+++ src/main/java/au/org/ala/biocache/web/ScatterplotController.java (revision 4552)
@@ -0,0 +1,230 @@
+package au.org.ala.biocache.web;
+
+import au.org.ala.biocache.dao.SearchDAO;
+import au.org.ala.biocache.dto.IndexFieldDTO;
+import au.org.ala.biocache.dto.SearchResultDTO;
@mbohun
mbohun / gist:44475e0a238271c72651
Created July 10, 2014 03:09
some err i just got, if i did not gist it no one would believe me :-)
bash-3.2$ cd src
bash-3.2$ git svn clone http://bhl-au-ftindex.googlecode.com/svn --tags=tags --authors-file=./authors-file.out --trunk=trunk/solr-plugin -s bhl-solr-plugin.git
WARNING: --prefix is not given, defaulting to empty prefix.
This is probably not what you want! In order to stay compatible
with regular remote-tracking refs, provide a prefix like
--prefix=origin/ (remember the trailing slash), which will cause
the SVN-tracking refs to be placed at refs/remotes/origin/*.
NOTE: In Git v2.0, the default prefix will change from empty to 'origin/'.
Initialized empty Git repository in /Users/hor22n/src/bhl-solr-plugin.git/.git/
RA layer request failed: Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/bln/84' at /Applications/Xcode.app/Contents/Developer/usr/share/git-core/perl/Git/SVN.pm line 150.
@mbohun
mbohun / all_issues.json
Last active August 29, 2015 14:03
code.google.com issues 2 github issues migration
[
{
"AllLabels": "FieldCapture, Priority-Critical, Type-Enhancement",
"ID": "434",
"Modified": "Jul 10, 2014 00:30:24",
"ModifiedTimestamp": "1404952224",
"Owner": "chris.godwin.ala",
"Priority": "Critical",
"Status": "New",
"Summary": "Export project dashboard and all-project data as CSV download",
@mbohun
mbohun / test_jsonpipe.sh
Last active August 29, 2015 14:04
playing with jsonpipe
mbohun@firewolf:~/src/ala-misc.git/code.google-issues-2-github-issues/data> jsonpipe < ala-issues-all-2014-07-17.csv.json | grep /[0-9]*/Owner |sed -e "s/^.*Owner//"| sort|uniq
""
"adam.collins832"
"chris.flemming.ala"
"chris.godwin.ala"
"CoolDad67"
"david.baird.ala"
"drdavematthews"
"john.tann@austmus.gov.au"
"Kristen.williams@csiro.au"
@mbohun
mbohun / gist:0d281b76311f663a1982
Last active August 29, 2015 14:04
code.google.com issue tracker notes
# our code.google.com issue pages
# 1st page
https://code.google.com/p/ala/issues/list
# 1st page, link to Next
https://code.google.com/p/ala/issues/list?num=100&start=100
# 2nd page, link to Next
https://code.google.com/p/ala/issues/list?num=100&start=200
@mbohun
mbohun / new.json
Last active August 29, 2015 14:05
simplified updates
{
"updates": {
"Status": "Started",
"Cc": "nickdos"
}
}