Skip to content

Instantly share code, notes, and snippets.

View hodgestar's full-sized avatar
🐢

Simon Cross hodgestar

🐢
View GitHub Profile
@hodgestar
hodgestar / gff
Created March 3, 2015 09:49
Git Flow Feature helper script.
#!/bin/bash
CMD="$1"
shift 1
function get_feature () {
FEATURE=`git flow feature | grep '^\* ' | sed 's/^\* //'`
ISSUE=`echo "$FEATURE" | sed -e 's/issue-\([0-9]*\)-.*/\1/'`
echo "Feature: $FEATURE (issue: $ISSUE)"
}
diff --git a/go/apps/dialogue/tests/dummy_polls.js b/go/apps/dialogue/tests/dummy_polls.js
index 3b1d2b4..1ea6a10 100644
--- a/go/apps/dialogue/tests/dummy_polls.js
+++ b/go/apps/dialogue/tests/dummy_polls.js
@@ -75,7 +75,7 @@ var simple_poll = {
url: "www.google.com",
method: "GET"
},
- entry_endpoint: {uuid: "endpoint-11"},
+ entry_endpoint: {uuid: "endpoint-13"},
diff --git a/package.json b/package.json
index f13fe5b..0456b08 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
}
},
"dependencies": {
- "go-jsbox-location": "^0.1.1",
+ "go-jsbox-location": "^0.2.0",
@hodgestar
hodgestar / group_by_msisdn.py
Created December 18, 2014 23:06
Short script for adding contacts for a list of MSISDNs to a given group.
""" Add all contacts given to a group.
E.g. ::
# Cuddlers Magical Moments Competition
python group_by_msisdn people-92-users.csv 1e4b49d3f0b943c9b836c9fffe169063
# Festive Season 2014
python group_by_msisdn people-96-users.csv 054ef8d3187e4d3f9c66e47cc839ac2e
diff --git a/go/billing/tasks.py b/go/billing/tasks.py
index ec2b0e8..dc7ad13 100644
--- a/go/billing/tasks.py
+++ b/go/billing/tasks.py
@@ -271,7 +271,7 @@ def archive_transactions(account_id, from_date, to_date, delete=True):
"to": to_date,
})
- transaction_list = Transaction.objects.filter(
+ transaction_query = Transaction.objects.filter(
#!/bin/bash
CMD="$1"
shift 1
function get_feature () {
FEATURE=`git flow feature | grep '^\* ' | sed 's/^\* //'`
ISSUE=`echo "$FEATURE" | sed -e 's/issue-\([0-9]*\)-.*/\1/'`
echo "Feature: $FEATURE (issue: $ISSUE)"
}
@hodgestar
hodgestar / samurai.md
Created November 28, 2014 15:49
Code like a Samurai

Code like a Samurai

Family, Larger organization.

Training:

  • 100 days of hand
  • 1000 days of spear
  • 10 000 days of sword
@hodgestar
hodgestar / default-metrics.json
Created November 5, 2014 09:51
Default Vumi Go dashboard
[{
'type': 'diamondash.widgets.lvalue.LValueWidget',
'time_range': '1d',
'name': 'Messages Sent (24h)',
'target': {
'metric_type': 'conversation',
'name': 'messages_sent'
}
}, {
'type': 'diamondash.widgets.lvalue.LValueWidget',
diff --git a/imaliyethu/urls.py b/imaliyethu/urls.py
index 3797806..86a6c3f 100644
--- a/imaliyethu/urls.py
+++ b/imaliyethu/urls.py
@@ -11,6 +11,7 @@ urlpatterns = patterns(
url(r'^toilet_codes/', include('imaliyethu.toilet_codes.urls')),
url(r'^api-auth/', include(
'rest_framework.urls', namespace='rest_framework')),
- url(r'^snappy/', include(
- 'snappybouncer.urls', namespace='snappybouncer')),
# mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd -f --run
mdadm: failed to RUN_ARRAY /dev/md0: Input/output error
mdadm: Not enough devices to start the array.
root@wendrush:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdc[2] sdd[4](S) sdb[3]
4883791488 blocks
unused devices: <none>