Skip to content

Instantly share code, notes, and snippets.

View boskiv's full-sized avatar

Ivan Skiridomov boskiv

  • ZFX
  • Cyprus
  • 16:15 (UTC +03:00)
View GitHub Profile
@boskiv
boskiv / logger.coffee
Created April 24, 2014 06:07
Winston Logger - Custom Colors
winston = require 'winston'
config =
levels:
silly: 0
verbose: 1
debug: 3
error: 4
data: 5
warn: 6
@boskiv
boskiv / phpstorm.md
Last active August 29, 2015 14:17 — forked from snoek09/phpstorm.md

Shortcuts

  • ! Tab in template creates html skeleton
  • link Tab creates stylesheet link
  • .container Tab creates div with id=container
  • Alt-1 toggle sidebar
  • Shift-Alt-A search everything
  • Match sidebar color with color theme -> install plugin 'color ide'

Custom Keybindings

  • Begin of line - C-a
time="2016-09-30T13:36:42Z" level=info msg="Handling backend connection request."
time="2016-09-30T13:36:42Z" level=info msg="Registering backend for host bf4bdd22-0876-4caf-9d05-e84e3f1a3fdc with session ID e7b0c052-1963-403e-85c2-660f04030d58."
time="2016-09-30T13:39:49Z" level=info msg="Container created for machine" containerId=4b99b95f4f79880d041b79f7fd869a14f3a4076182acbc7c52e8fc54a334641c machineId=1ph109 resourceId=1ph109
time="2016-09-30T13:39:50Z" level=info msg="Rancher-agent for machine started" containerId=4b99b95f4f79880d041b79f7fd869a14f3a4076182acbc7c52e8fc54a334641c machineExternalId=a37a838e-8444-4664-9530-95b517263f93 resourceId=1ph109
time="2016-09-30T13:39:50Z" level=info msg="Creating and uploading extracted machine config" resourceId=1ph109
time="2016-09-30T13:39:50Z" level=info msg="Machine config file created and encoded." destFile="/var/lib/cattle/machine/a37a838e-8444-4664-9530-95b517263f93/swarm-node-01.tar.gz" resourceId=1ph109
time="2016-09-30T13:40:04Z" level=info msg="Handling
@boskiv
boskiv / gist:af0ea719f9236e0810d765c074ac5bff
Created September 30, 2016 13:54
swarm cluster up error
30.09.2016 16:52:12github.com/rancher/swarm-agent/vendor/github.com/codegangsta/cli.Command.Run(0x9ad2d0, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
30.09.2016 16:52:12 /go/src/github.com/rancher/swarm-agent/vendor/github.com/codegangsta/cli/command.go:174 +0x1397
30.09.2016 16:52:12github.com/rancher/swarm-agent/vendor/github.com/codegangsta/cli.(*App).Run(0xc8200a6140, 0xc82000a0b0, 0xb, 0xb, 0x0, 0x0)
30.09.2016 16:52:12 /go/src/github.com/rancher/swarm-agent/vendor/github.com/codegangsta/cli/app.go:187 +0x1135
30.09.2016 16:52:12main.main()
30.09.2016 16:52:12 /go/src/github.com/rancher/swarm-agent/main.go:65 +0x6d7
30.09.2016 16:52:12
30.09.2016 16:52:12goroutine 17 [syscall, locked to thread]:
30.09.2016 16:52:12runtime.goexit()
30.09.2016 16:52:12 /usr/local/go/src/runtime/asm_amd64.s:1721 +0x1

Keybase proof

I hereby claim:

  • I am boskiv on github.
  • I am iskiridomov (https://keybase.io/iskiridomov) on keybase.
  • I have a public key whose fingerprint is 5A61 9A3A 9499 FFC1 ED69 DDD4 DC2E 7057 3494 A846

To claim this, I am signing this object:

@boskiv
boskiv / ios-questions-interview.md
Created November 18, 2016 10:08 — forked from arturlector/ios-questions-interview.md
Вопросы на собеседование iOS разработчика.

Вопросы на собеседование iOS разработчика (дополненное издание):

General:

  • Что такое полиморфизм?

  • Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?

  • Чем абстрактный класс отличается от интерфейса?

  • Расскажите о паттерне MVC. Чем отличается пассивная модель от активной?

@boskiv
boskiv / gist:02aff5da81f7ba2dd20b0b872c267b88
Created November 18, 2016 15:25
Log from docker SIGUSR1
time="2016-11-18T15:24:38.088788468Z" level=info msg="=== BEGIN goroutine stack dump ===\ngoroutine 41 [running]:\ngithub.com/docker/docker/pkg/signal.DumpStacks()\n\t/usr/src/docker/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98\ngithub.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc8203ffc80)\n\t/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e\ncreated by github.com/docker/docker/daemon.setupDumpStackTrap\n\t/usr/src/docker/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f\n\ngoroutine 1 [chan receive, 480 minutes]:\nmain.(*DaemonCli).start(0xc820409c80, 0x0, 0x0)\n\t/usr/src/docker/cmd/dockerd/daemon.go:308 +0x2274\nmain.main()\n\t/usr/src/docker/cmd/dockerd/docker.go:68 +0x491\n\ngoroutine 17 [syscall, 482 minutes, locked to thread]:\nruntime.goexit()\n\t/usr/local/go/src/runtime/asm_amd64.s:1998 +0x1\n\ngoroutine 35 [select, 482 minutes]:\ngoogle.golang.org/grpc.(*Conn).transportMonitor(0xc8204181e0)\n\t/usr/src/docker/ve
@boskiv
boskiv / build-ios.sh
Created January 6, 2017 11:42 — forked from pbakondy/build-ios.sh
build and sign ionic app iOS
# Test Build (armv7 only)
#
ionic platform remove ios
gulp useref
ionic platform add ios
cp assets/build/ios/build.xcconfig platforms/ios/cordova/build.xcconfig
ionic build ios --device
xcrun -sdk iphoneos PackageApplication -v platforms/ios/build/device/appname.app -o deployments/appname-test.ipa
/usr/bin/codesign --display platforms/ios/build/device/appname.app
/usr/bin/codesign --verify platforms/ios/build/device/appname.app
Attaching to graylog2_graylog_1
graylog_1 | 2017-03-06 18:11:42,964 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Elastic Beats Input 2.2.2 [org.graylog.plugins.beats.BeatsInputPlugin]
graylog_1 | 2017-03-06 18:11:42,966 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Collector 2.2.2 [org.graylog.plugins.collector.CollectorPlugin]
graylog_1 | 2017-03-06 18:11:42,967 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Enterprise Integration Plugin 2.2.2 [org.graylog.plugins.enterprise_integration.EnterpriseIntegrationPlugin]
graylog_1 | 2017-03-06 18:11:42,968 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: MapWidgetPlugin 2.2.2 [org.graylog.plugins.map.MapWidgetPlugin]
graylog_1 | 2017-03-06 18:11:42,976 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Pipeline Processor Plugin 2.2.2 [org.graylog.plugins.pipelineprocessor.ProcessorPlugin]
graylog_1 | 2017-03-06 18:11:42,977 INFO : org.graylog2.bootstrap.CmdLineTool -