Skip to content

Instantly share code, notes, and snippets.

Adrien Maret Aschen

Block or report user

Report or block Aschen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View publish.js
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' });
Aschen / publish.js
Last active May 10, 2019
Pub/Sub article
View publish.js
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' });
Aschen / dump-kuzzle-index.js
Created Feb 18, 2019
Export and import data from a Kuzzle index
View dump-kuzzle-index.js
fs = require('fs'),
mkdirp = require('mkdirp'),
} = require('kuzzle-sdk');
const kuzzle = new Kuzzle(
new WebSocket('localhost', {
View component.vue
<button @click="testMe()">Click Me</button>
import kuzzle from '@/kuzzle'
export default {
name: 'Test',
View gist:4cce4f27d034ee882440ae5d0346c59a
mkdir -p /home/aschen/go/src/
cd ../../ && go get ./... ; cd -
/usr/local/go/bin/go build -o /home/aschen/go/src/ -buildmode=c-archive ./cgo/kuzzle/
/usr/local/go/bin/go build -o /home/aschen/go/src/ -buildmode=c-archive ./cgo/kuzzle/
mv -f /home/aschen/go/src/ /home/aschen/go/src/
mkdir -p /home/aschen/go/src/
swig -Wall -c++ -python -py3 -outdir /home/aschen/go/src/ -o kcore_wrap.cxx -I/home/aschen/go/src/ -I/home/aschen/go/src/ -
Aschen / bash
Created Apr 3, 2018
Can't run standalone script : TypeError: fn is not a function
View bash
aschen@gman mns/Metacoin » truffle exec test.js
Using network 'development'.
TypeError: fn is not a function
at /home/aschen/.nvm/versions/node/v9.8.0/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:128:1
at /home/aschen/.nvm/versions/node/v9.8.0/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:101:1
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:532:3)

Keybase proof

I hereby claim:

  • I am aschen on github.
  • I am aschen93 ( on keybase.
  • I have a public key whose fingerprint is BAC9 39AC 6D76 00E9 5B79 FFF6 3FBD 61DB B3CC 7634

To claim this, I am signing this object:

Aschen / docker-compose.yml
Created Mar 22, 2018
Nunux Reader Authentication with Nginx
View docker-compose.yml
build: .
- "56432:3000"
- redis
- NODE_ENV=production
- APP_REDIS_URI=redis://redis:6379/5
Aschen / application.js
Last active Feb 14, 2019
Import javascript class in the standard asset pipeline
View application.js
// app/javascript/packs/application.js
import Foobar from '../foobar/foobar'
window.Foobar = Foobar
View EpsiFileCompressor.cpp
void EpsiFileCompressor::compress(const QString &folder, const QString &ecfFilename)
QWaitCondition waitCondition;
FilePool filepool(folder);
ZippedBufferPool zippedBufferPool(&waitCondition);
Zipper zipper1(&filepool, &zippedBufferPool);
Zipper zipper2(&filepool, &zippedBufferPool);
Writter writter(ecfFilename, &zippedBufferPool, &waitCondition);
You can’t perform that action at this time.