Skip to content

Instantly share code, notes, and snippets.

View webdock.yaml
openapi: 3.0.0
info:
title: 'Webdock API'
description: 'Webdock awesome API!'
version: 1.0.0
servers:
-
url: 'https://api.webdock.localhost'
description: 'Webdock API parameters'
paths:
View webdock-v10.yaml
openapi: 3.0.0
info:
title: 'Webdock API'
description: 'Webdock awesome API!'
version: 1.0.0
servers:
-
url: 'https://api.webdock.localhost'
description: 'Webdock API parameters'
paths:
@Alex0007
Alex0007 / index.js
Created Feb 24, 2017
adapt not working
View index.js
const { Observable } = require('rxjs')
const { makeRouterDriver } = require('cycle-express-driver')
const express = require('express')
const run = require('@cycle/rxjs-run').default
const app = express()
const router = express.Router()
function main({ router }) {
console.log('123', router.get('/'))
@Alex0007
Alex0007 / bug.js
Created Nov 9, 2016
flattenSequentially problem
View bug.js
const xs = require('xstream').default
const flattenSequentially = require('xstream/extra/flattenSequentially').default
const createTestObservable = item => {
return xs.create({
start: function(listener) {
setTimeout(() => {
listener.next(item)
listener.complete()
View My atom snippets
'.source.js':
'Console log':
'prefix': 'log'
'body': 'console.log(\'$1\', $2$1)$3'
'Console error':
'prefix': 'err'
'body': 'console.error(\'$1\', $2$1)$3'
'Require':
'prefix': 'req'
'body': 'let $1 = require(\'$2$1\')\n$3'
@Alex0007
Alex0007 / .bashrc
Last active Oct 19, 2015
nvm non-blocking sourcing
View .bashrc
# Replace following lines
export NVM_DIR="/home/USERNAME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
init_nvm()
{
bin=$(echo $1 | awk '{print $1}') # get first word from command string
if [[ -z $NVM_DIR ]] && [[ ! `command -v $bin` ]]; then # if not already inited and no such binary found
export NVM_DIR="/home/USERNAME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
View keybase.md

Keybase proof

I hereby claim:

  • I am Alex0007 on github.
  • I am alex0007 (https://keybase.io/alex0007) on keybase.
  • I have a public key whose fingerprint is 5AD6 F8BE 5468 F2BA C21E 5F01 F5B9 C404 C50F 5200

To claim this, I am signing this object:

@Alex0007
Alex0007 / polipo.conf
Created Jan 3, 2015
polipo configuration file
View polipo.conf
logSyslog = true
logFile = /var/log/polipo/polipo.log
socksParentProxy = "localhost:9050"
proxyPort = 8118
proxyAddress = "127.0.0.1"
dnsNameServer = "127.0.0.1"
dnsUseGethostbyname = false
View unbound.conf
server:
cache-min-ttl: 3600
prefetch: yes
key-cache-size: 20m
infra-cache-numhosts: 100000
num-threads: 2
do-not-query-localhost: yes
prefetch-key: yes
rrset-roundrobin: yes
outgoing-range: 450
@Alex0007
Alex0007 / torrc
Last active Sep 3, 2017
tor configuration for surfing speed
View torrc
DNSPort 9053
ExcludeSingleHopRelays 0
AllowSingleHopCircuits 1
KeepalivePeriod 60
#NewCircuitPeriod 15
UseEntryGuards 1
NumEntryGuards 8
CircuitBuildTimeout 5
EnforceDistinctSubnets 0
OptimisticData 1