Show/hide hidden files on mac
$ defaults write com.apple.finder AppleShowAllFiles YES
or
$ defaults write com.apple.finder AppleShowAllFiles YES
or
server {
listen 80;
server_name <public_IP>;
location / {
proxy_pass http://localhost:18083;
proxy_http_version 1.1;
import moment from 'moment' | |
import es from 'elasticsearch' | |
import uuid from 'node-uuid' | |
import _ from 'lodash' | |
import config from '/config' | |
const client = new es.Client({ | |
host: config.host | |
}) |
migrate () { | |
this.notify.info('success') | |
axios.get(`http://127.0.0.1:1337/servers?limit=1000`) | |
.then(res => { | |
const servers = res.data | |
this.notify.info('Success', `Found ${servers.length} servers.`) | |
_.forEach(servers, server => { | |
this.apiServers.add(server) | |
.then(res => console.log(res)) | |
.catch(err => console.error(err)) |
const fs = require('fs') | |
var walk = function (dir, done) { | |
fs.readdir(dir, (error, list) => { | |
if (error) { | |
return done(error) | |
} | |
let i = 0; |
getAPIKeys () { | |
const esClient = new ElasticSearch.Client({ host: 'http://nightly.apinf.io:14002' }); | |
const params = { | |
size: 10, | |
body: { | |
sort: [ | |
{ | |
request_at: { | |
order: 'desc', | |
}, |
curl -H "Content-Type: application/json" -X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
curl -XGET 'http://127.0.0.1:8000/api/some' -H 'Authorization: JWT <some_token>'
const _ = require('lodash') | |
const components = { | |
blaster: { | |
tasks: [ | |
{ name: 'ystanovka_lazera_blastera_v_korpus', worker: 'shturmoviki' }, | |
{ name: 'polirovka_rukoyati_blastera', worker: 'sborshiki' }, | |
{ name: 'zaryad_batarey_blastera', worker: 'akkumulyatori' }, | |
{ name: 'pristrelka', worker: 'shturmoviki' } | |
], |
Hello World from GitHub