Skip to content

Instantly share code, notes, and snippets.

View boskiv's full-sized avatar

Ivan Skiridomov boskiv

  • ZFX
  • Cyprus
  • 00:40 (UTC +03:00)
View GitHub Profile
@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
@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 / 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
@boskiv
boskiv / compile-server.sh
Created March 20, 2018 12:18 — forked from PhroZenOne/compile-server.sh
Build EU4 server on ubuntu.
#!/bin/bash
set -e
set -x
PROJECT_PATH=$1
CURRENT_DIR=$( cd "$( dirname "$0" )" && pwd )
if [[ "$PROJECT_PATH" != /* ]]; then
PROJECT_PATH=$CURRENT_DIR/$PROJECT_PATH
@boskiv
boskiv / kubernetes
Created March 24, 2018 15:29 — forked from pavolloffay/kubernetes
kubernetes, gcloud, minikube
minikube start --vm=kvm
minikube stop
minikube delete
minikube service jaeger-all-in-one
# Google Cloud
gcloud auth application-default login
gcloud auth activate-service-account --key-file client-secret.json
gcloud auth revoke
gcloud projects list
@boskiv
boskiv / minikube-update-hosts.sh
Created February 19, 2019 18:04 — forked from jacobtomlinson/minikube-update-hosts.sh
A script to update your /etc/hosts file from minikube ingest records
#!/bin/bash
#
# A script to update your /etc/hosts file from minikube ingest records
#
# Installation
# ------------
# curl -L https://gist.github.com/jacobtomlinson/4b835d807ebcea73c6c8f602613803d4/raw/minikube-update-hosts.sh > /usr/local/bin/minikube-update-hosts
# chmod +x /usr/local/bin/minikube-update-hosts
INGRESSES=$(kubectl --context=minikube --all-namespaces=true get ingress | grep -v NAMESPACE | awk '{ print $2 }' | tr '\r\n' ' ')
@boskiv
boskiv / README.md
Created June 6, 2019 08:56 — forked from zhiguangwang/README.md
Building Unreal Engine Game Client and Dedicated Server on Linux.

Building Unreal Engine Game Client and Dedicated Server on Linux

Because the build tools of UE4 works across platforms (Windows, Mac OS, Linux), steps in this article can be applied to Mac OS and Windows as well.

On Windows, You need to replace RunUAT.sh with RunUAT.bat though.

Prerequisites

First, get Unreal Engine 4 sourcecode and export the following environment variables:

@boskiv
boskiv / log.go
Created August 12, 2019 10:10 — forked from gonzaloserrano/log.go
logrus wrapper
package log
import (
"fmt"
"github.com/Sirupsen/logrus"
"runtime"
"strings"
)
var logger = logrus.New()
@boskiv
boskiv / StreamToString.go
Last active August 14, 2019 13:14 — forked from tejainece/StreamToString.go
Golang: io.Reader stream to string or byte slice
import "bytes"
func StreamToByte(stream io.Reader) []byte {
buf := new(bytes.Buffer)
buf.ReadFrom(stream)
return buf.Bytes()
}
func StreamToString(stream io.Reader) string {
buf := new(bytes.Buffer)