This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// recover from audacity crash | |
// usage: | |
// node audacity_rescue.js [sourcedir] [result_file.wav] [mono|stereo] | |
// the mono or stereo option is optional, the default is mono. | |
// | |
// Description: | |
// This script will sort all files on modification date. | |
// If you create a backup, make sure you use `cp -a` to preserve the modification date | |
// or create a zip. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maurits@maurits-iMac:~/Development/gnucash/bindings/nodejs$ ldd build/Release/gnucash.node | |
linux-vdso.so.1 (0x00007ffe4777c000) | |
libgncmod-engine.so => /home/maurits/Development/gnucash/bindings/nodejs/build/Release/libgncmod-engine.so (0x00007ff84316f000) | |
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff842de6000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8429f5000) | |
libgnc-core-utils.so => /home/maurits/Development/gnucash/.build/lib/libgnc-core-utils.so (0x00007ff8427ad000) | |
libboost_date_time.so.1.65.1 => /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.65.1 (0x00007ff84259c000) | |
libboost_regex.so.1.65.1 => /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.65.1 (0x00007ff842294000) | |
libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007ff841df3000) | |
libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007ff841a3c000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GncInvoiceType | |
gnc_invoice_get_type(InvoiceWindow *iw) | |
{ | |
/* uses the same approach as gnc_invoice_get_title */ | |
switch (gncOwnerGetType(&iw->owner)) | |
{ | |
case GNC_OWNER_CUSTOMER: | |
return iw->is_credit_note ? GNC_INVOICE_CUST_CREDIT_NOTE | |
: GNC_INVOICE_CUST_INVOICE; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is the SocketCluster master controller file. | |
It is responsible for bootstrapping the SocketCluster master process. | |
Be careful when modifying the options object below. | |
If you plan to run SCC on Kubernetes or another orchestrator at some point | |
in the future, avoid changing the environment variable names below as | |
each one has a specific meaning within the SC ecosystem. | |
*/ | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var proxyToelating = function (origReq, origResp, next) { | |
var url = origReq.url; | |
var path = require('url').parse(url).pathname; | |
var proxyReq; | |
console.log("Trying to proxying " + url); | |
var me = this; | |
if (origReq.headers.host) origReq.headers.host = ""; | |
origReq.headers['Authorization'] = "Basic myauth="; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use('/webdav', proxy('https://my.domain.ext', { | |
limit: '1gb', | |
reqBodyEncoding: null, | |
parseReqBody: false, | |
proxyReqOptDecorator: function (proxyReqOpts, srcReq) { | |
proxyReqOpts.headers['Authorization'] = "Basic myencrypedpasswd"; | |
return proxyReqOpts; | |
}, | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(case "|." ;(assoc-ref evt 'whichBar) | |
( ("|") (assoc-ref brailleMusicSymbols 'normal-bar-line)) | |
( ("|.") (assoc-ref brailleMusicSymbols 'double-bar-end)) | |
( ("||") (assoc-ref brailleMusicSymbols 'double-bar)) | |
( ("!") (assoc-ref brailleMusicSymbols 'dotted-bar-line)) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// One change: expose SCWorker by adding the following line as last line | |
module.exports.SCWorker = require('./lib/scworker'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoreMeetme.DataSource = SC.DataSource.extend({ | |
// we assume there is a connection already before we are asked to retrieve anything | |
fetch: function (store, query) { | |
// queries are either allDocs calls or views | |
// queries carry the database name on which they should be executed | |
var db = query.get('database'); | |
if (!db && query.get('isRemote')) throw new Error("CoreMeetme: no database on query???"); | |
if (!db && query.get('isLocal')) return true; //don't handle local queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp.overviewController = SC.ArrayController.create(SC.TableDelegate, { | |
}); |
NewerOlder