alias osx-change-dns='sudo networksetup -setdnsservers Wi-Fi $DNS && sudo networksetup -setairportpower en0 off && sudo networksetup -setairportpower en0 on'
DNS=empty && deputy-change-dns
{ | |
"previous": [ | |
{ | |
"version": "2.2.5", | |
"source": "https://github.com/DeputyApp/cafe/releases/tag/V2.2.5", | |
"notes": "multiple DNS selection \n custom DNS list \n clear DNS button \n ability to change card DNS \n check if Pritunl is open", | |
"dist": { | |
"darwin": { | |
"url": "https://drive.google.com/u/1/uc?id=1iAtp8LbIOE3fsJep4hxsujRgdaRsdWOT&export=download" | |
} |
<template> | |
<div class="AppAutocomplete"> | |
<input v-model="theValue" @input="change" :placeholder="placeholder" @focus="focus" @blur="focus('blur')" ref="input" autocomplete="nope" /> | |
<div class="clear" @click="clearAll" v-if="focused"> | |
<img src="/static/img/clear.png" /> | |
</div> | |
<AppLoaderBar v-if="loading"/> | |
<div class="suggestions"> | |
<ul> | |
<li v-for="(item, index) in theList" :key="index" @click="selected(item)"> |
const express = require('express'); | |
const egraphql = require('express-graphql'); | |
const {buildSchema} = require('graphql'); | |
const schema = buildSchema(` | |
type Query { | |
message: String | |
} | |
`); |
npm i --save babel-plugin-transform-async-to-generator babel-plugin-transform-runtime | |
.babelrc | |
{ | |
"presets": [["env", { | |
"targets": { | |
"node": "8" | |
} | |
}]], | |
"plugins": ["transform-async-to-generator", "transform-runtime"] |
npm install --save-dev eslint eslint-config-google | |
.eslintrc | |
{ | |
"extends": ["google"], | |
"rules": { | |
"max-len": 0, | |
"require-jsdoc": 0 | |
}, | |
"parserOptions": { |
const asyncProcess = async (promise) => { | |
try { | |
return [null, await promise]; | |
} catch (err){ | |
return [err]; | |
} | |
}; | |
const [err,result] = await asyncProcess(__MyPromise__); |
/** | |
* Created by www.Alga.me on 12/7/17. | |
* | |
* # npm install aerospike | |
*/ | |
import aerospike from 'aerospike' | |
export default class Aerospike { | |
constructor(props = {}) { |