This file contains hidden or 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
{ | |
"extends": [ | |
"eslint:recommended", | |
"airbnb-base" | |
], | |
"parser": "babel-eslint", | |
"env": { | |
"es6": true, | |
"node": true | |
}, |
This file contains hidden or 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
Show hidden characters
{ | |
"user": { | |
"debug": true, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"eslint": { |
This file contains hidden or 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' | |
const cluster = require('cluster') | |
const assert = require('assert') | |
const util = require('util') | |
const os = require('os') | |
const PrettyError = require('pretty-error') | |
process.env.NODE_ENV = process.env.NODE_ENV || 'development' | |
process.env.NODE_CLUSTER = process.env.NODE_CLUSTER || process.env.WEB_CONCURRENCY // heroku | |
process.env.DEBUG = process.env.DEBUG || 'app*' |
This file contains hidden or 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
/*eslint-env es6:false*/ | |
/* | |
* Copyright (c) 2010 Arc90 Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains hidden or 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 sh | |
# Install Luvit | |
cd / | |
curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh | |
/lit make lit://luvit/luvit | |
| |
# Get example script | |
curl -O https://gist.githubusercontent.com/grimen/8163a5177e9e8603b1b6/raw/5cade52f6703eb99f7afff41035f5d99f5f7c9bf/luvit.lua | |
|
This file contains hidden or 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
local http = require('http') | |
http.createServer(function (req, res) | |
local body = "Hello world\n" | |
res:setHeader("Content-Type", "text/plain") | |
res:setHeader("Content-Length", #body) | |
res:finish(body) | |
end):listen(1337, '127.0.0.1') | |
print('Server running at http://127.0.0.1:1337/') |
This file contains hidden or 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
location /validate { | |
# IF: | |
# /validate?param1=value | |
# /validate?param0=x¶m1=value | |
rewrite ^/validate?.*param1\=(.+).*$ /success/$1 last; | |
# ELSE: | |
# /validate?param0=x | |
# /validate?param0=x¶m1 | |
# /validate?param0=x¶m1= |
This file contains hidden or 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
port = 8085 |
This file contains hidden or 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
Verifying I am +grimen on my passcard. https://onename.com/grimen |
This file contains hidden or 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
Verifying I am +grimen on my passcard. https://onename.com/grimen |