Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Twister microblogging
[Service]
ExecStart=/usr/local/bin/twisterd
[Install]
WantedBy=default.target
@mrvdb
mrvdb / apione.diff
Created March 27, 2015 10:59
Allow to get one entry
diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py
index 2334106..987261e 100644
--- a/mediagoblin/plugins/api/views.py
+++ b/mediagoblin/plugins/api/views.py
@@ -104,6 +104,11 @@ def get_entries(request):
# TODO: Make it possible to fetch unprocessed media, or media in-processing
entries = entries.filter_by(state=u'processed')
+ # allow getting one entry
+ m_id = int(request.GET.get('id') or 0)
### Keybase proof
I hereby claim:
* I am mrvdb on github.
* I am mvanderboom (https://keybase.io/mvanderboom) on keybase.
* I have a public key whose fingerprint is 77DD A1B6 8D04 792A 8F85 D855 235E 5C8C F5E8 DFFB
To claim this, I am signing this object:
@mrvdb
mrvdb / *vc-diff*.diff
Created February 7, 2015 11:13
Patch for GNU-social T79
diff --git a/actions/editpeopletag.php b/actions/editpeopletag.php
index c812255..069b2aa 100644
--- a/actions/editpeopletag.php
+++ b/actions/editpeopletag.php
@@ -277,6 +277,13 @@ class EditpeopletagAction extends Action
return;
}
+ if ($delete) {
+ // This might take quite a bit of time.
@mrvdb
mrvdb / *vc-diff*.diff
Created February 5, 2015 09:44
Don use a firefox only construct for default parameter value
diff --git a/js/util.js b/js/util.js
index d7b1033..20911d8 100644
--- a/js/util.js
+++ b/js/util.js
@@ -1384,7 +1384,8 @@ var SN = { // StatusNet
*
* @param {String} tag
*/
- switchInputFormTab: function (tag, setFocus=true) {
+ switchInputFormTab: function (tag, setFocus) {
Reading symbols from ./biboumi...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/mrb/src/prosody/biboumi/biboumi
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
^C
Program received signal SIGINT, Interrupt.
0xb7fde424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fde424 in __kernel_vsyscall ()
Modified classes/Memcached_DataObject.php
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index 2bd9581..62b3809 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -784,9 +784,9 @@ class Memcached_DataObject extends Safe_DataObject
$conn = $DB->connection;
if (!empty($conn)) {
if ($DB instanceof DB_mysqli || $DB instanceof MDB2_Driver_mysqli) {
- mysqli_set_charset($conn, 'utf8');
@mrvdb
mrvdb / gist:cf2937c786c7dee35141
Created December 9, 2014 09:00
Pumpa msgs on startup
[mrb@mrb] pumpa git:(master) ➜ ./pumpa
Using locale "en_US"
Successfully loaded translation
"sni-qt/18543" WARN 09:59:24.285 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
[ERROR]: "Network or authorisation error [1/257] https://media.mrblog.nl/api/user/mrb/inbox/direct/minor."
[ERROR]: "Network or authorisation error [1/257] https://media.mrblog.nl/api/user/mrb/inbox/direct/major."
[ERROR]: "Network or authorisation error [1/10] https://media.mrblog.nl/api/user/mrb/lists/person."
[ERROR]: "Network or authorisation error [1/7] https://media.mrblog.nl/api/user/mrb/."
[ERROR]: "Network or authorisation error [1/4353] https://media.mrblog.nl/api/user/mrb/inbox/major."
[ERROR]: "Network or authorisation error [1/257] https://media.mrblog.nl/api/user/mrb/inbox/minor."
diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py
index 1e4bc7a..e478106 100644
--- a/addons/account/account_invoice.py
+++ b/addons/account/account_invoice.py
@@ -94,46 +94,43 @@ class account_invoice(osv.osv):
def _get_reference_type(self, cr, uid, context=None):
return [('none', _('Free Reference'))]
+ # An invoice's residual amount is the sum of its unreconciled move lines and,
+ # for partially reconciled move lines, their residual amount divided by the
@mrvdb
mrvdb / gist:562dc8be9cb34a2d53f2
Created August 24, 2014 09:15
c:geo compile error
Note: Finish processing
Note: Start processing for 0 annotations on 0 elements
Note: Time measurements: [Whole Processing = 1 ms],
Note: Finish processing
warning: Unclosed files for the types '[dummy1408871684932]'; these types will not undergo annotation processing
/media/data/src/geocaching/cgeo/main/src/cgeo/geocaching/connector/ConnectorFactory.java:48: error: cannot find symbol
R.string.oc_uk_okapi_consumer_key, R.string.oc_uk_okapi_consumer_secret,
^
symbol: variable oc_uk_okapi_consumer_key
location: class string