Skip to content

Instantly share code, notes, and snippets.

View Extarys's full-sized avatar

Extarys Extarys

View GitHub Profile
# This compose file is compatible with Compose itself, it might need some
# adjustments to run properly with stack.
version: '3'
services:
synapse:
#build:
# context: ../..
version: '3'
services:
cassandra-1:
hostname: cassandra-1
image: cassandra:latest
restart: always
command: /bin/bash -c "sleep 1 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f"
environment:
- CASSANDRA_BROADCAST_ADDRESS=cassandra-1
- MAX_HEAP_SIZE=4096M
version: '3'
services:
cassandra-1:
hostname: cassandra-1
image: cassandra:latest
command: /bin/bash -c "sleep 1 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f"
environment:
- CASSANDRA_BROADCAST_ADDRESS=cassandra-1
- MAX_HEAP_SIZE=4096M
- HEAP_NEWSIZE=4096M
@Extarys
Extarys / datatable.js
Created February 16, 2018 22:45
DataTable hanging on huge dataset
$("#explore").html('<table class="table no-footer" id="all-tracks"></table>');
allTrackDataTable = $('#all-tracks').DataTable({
columns: [
{ "title": "Title", "data": "title", "width": "250px" },
{ "title": "Album Artist", "data": "albumartist", "width": "250px", "orderData": [1, 3, 2] },
{ "title": "Artist", "data": "artist", "width": "250px", "orderData": [2, 3] },
{ "title": "Album", "data": "album", "width": "250px" },
{ "title": "BPM", "data": "bpm", "type": "num" },
{ "title": "Compilation", "data": "compilation", "visible": false },
@Extarys
Extarys / gist:cba6618f4c76de8733d3ab222de51ec0
Created September 13, 2017 02:08
Bootstrap MDC Icon alignment
<mdc-toolbar
[flexible]="isFlexible"
[fixed]="isFixed"
[waterfall]="isWaterfall"
[fixedLastrow]="isFixedLastRow"
(change)="handleToolbarChange($event);">
<mdc-toolbar-row>
<mdc-toolbar-section [alignStart]="true">
<a href="#" mdc-toolbar-icon-menu material-icon>menu</a>
<mdc-toolbar-title>App Title</mdc-toolbar-title>
@Extarys
Extarys / gist:9fbb6a0f0dbbe4a43861aacb8c523295
Created September 11, 2017 09:09
Copy/paste navbar demo
ERROR
TypeError: _co.handleToolbarChange is not a function
Stack trace:
View_AppComponent_0/<@ng:///AppModule/AppComponent.ngfactory.js:15:23
handleEvent@http://127.0.0.1:4200/vendor.bundle.js:70736:98
callWithDebugContext@http://127.0.0.1:4200/vendor.bundle.js:72197:39
debugHandleEvent@http://127.0.0.1:4200/vendor.bundle.js:71785:12
dispatchEvent@http://127.0.0.1:4200/vendor.bundle.js:67329:12
eventHandlerClosure/<@http://127.0.0.1:4200/vendor.bundle.js:69497:20
../../../core/@angular/core.es5.js/</EventEmitter.prototype.subscribe/schedulerFn<@http://127.0.0.1:4200/vendor.bundle.js:62369:36