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 / 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 / svn2github_migration_with_taking_dump.sh
Last active November 22, 2020 06:39
svn to git/github migration with svdump/svnrdump and svndumpfilter
# PROBLEM:
#
# bash-3.2$ git remote add origin [email protected]:AtlasOfLivingAustralia/ecodata.git
# bash-3.2$ git push origin --all
# Counting objects: 6216, done.
# Delta compression using up to 4 threads.
# Compressing objects: 100% (3094/3094), done.
# Writing objects: 100% (6216/6216), 5.01 MiB | 1.24 MiB/s, done.
# Total 6216 (delta 3011), reused 2195 (delta 907)
# remote: error: GH001: Large files detected.
@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"
"[email protected]"
"[email protected]"
@mbohun
mbohun / github_api_examples.sh
Last active August 7, 2020 07:58
github API examples/collection
# WRONG: list all repos for an organisation (for example for atlasoflivingaustralia):
bash-3.2$ curl -s -i https://api.github.com/orgs/atlasoflivingaustralia/repos | grep '"name":' | sed -e 's/^.*name"://g'
"ala-install",
"collectory",
"amrin-hub",
"appd-hub",
"asbp-hub",
"avh-hub",
"biocache-hubs",
"generic-hub",
@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"
}
}
@mbohun
mbohun / new.json
Last active August 29, 2015 14:05
simplified comments
{
"hc0": {
"author": "[email protected]",
"date": "Thu Feb 13 16:54:53 2014",
"comment": [
{
"text": "\nDoE "
},
{
"a": {
@mbohun
mbohun / wrap_hash_numbers.py
Created August 16, 2014 13:25
wrap_hash_numbers.py
>>> re.sub(r'#(\d+)', r'`#\1`', 'blah #6')
'blah `#6`'