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
query RootQueryType { | |
recentConversations { | |
id | |
...F2 | |
} | |
} | |
fragment F0 on Conversation { | |
id | |
unreadCount |
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
{ | |
profile { | |
id | |
name | |
} | |
lines { | |
id | |
number |
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
#!/usr/bin/env node | |
var fs = require("fs"); | |
function fixFile(filename, lineNumbers) { | |
fs.readFile(filename, { encoding: "utf-8", flag: "r" }, function (err, buffer) { | |
if (err) { | |
console.error("Could not read", filename, err); | |
return; | |
} |
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
The author disclaims copyright to this source code. In place of a legal | |
notice, here is a blessing: | |
May you do good and not evil. | |
May you find forgiveness for yourself and forgive others. | |
May you share freely, never taking more than you give. | |
It is based on a snipped found in this project: | |
https://github.com/martinblech/mimerender |
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
#!/bin/sh | |
# as @nobody | |
find . -not \( -path */archive -prune \) -name *-Linux-*.tar.gz |
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
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |
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
1. change `/etc/init/sfsvscan.conf` and add `limit nofile 32000 32000` | |
2. change `/etc/security/limits.conf` and add | |
`* hard nofile 40960` | |
`* soft nofile 40960` | |
3. confirm by adding `-Des.max-open-files=true` to run file of elasticsearch |
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
start = | |
compoundExp | |
/ exp | |
op = | |
equals | |
/ logicalOp | |
/ stringOp |