Skip to content

Instantly share code, notes, and snippets.

View andreivmaksimov's full-sized avatar
💭
Life style - NO LIMITS

Andrei Maksimov andreivmaksimov

💭
Life style - NO LIMITS
View GitHub Profile
@andreivmaksimov
andreivmaksimov / docker-compose.yml
Created April 3, 2019 23:38
Running Jaeger v1.11 backed by Elasticsearch OSS v6.7.0 using Docker Compose
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.0
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xmx256m -Xms256m"
ulimits:
memlock:
@andreivmaksimov
andreivmaksimov / command.sh
Created January 19, 2018 21:22
How to test your AWS CLI credentials
aws sts get-caller-identity
@andreivmaksimov
andreivmaksimov / MyViewController.swift
Last active January 15, 2018 10:49
How to integrate Zendesk Mobile SDK with Firebase using AWS Lambda or Google Cloud Functions
//Launch MyViewController options
URLProtocol.registerClass(ZDKAuthenticationURLProtocol.self)
let jwtUserIdentity = ZDKJwtIdentity(jwtUserIdentifier:idToken)
ZDKConfig.instance().userIdentity = jwtUserIdentity
let helpCenterContentModel = ZDKHelpCenterOverviewContentModel.defaultContent()
ZDKHelpCenter.presentOverview(self, with: helpCenterContentModel)
@andreivmaksimov
andreivmaksimov / howto-filemerge-git-osx.md
Created June 9, 2017 06:22 — forked from bkeating/howto-filemerge-git-osx.md
HOWTO: Using FileMerge (opendiff) with Git on OSX

HOWTO: Using FileMerge (opendiff) with Git on OSX

FileMerge (opendiff) can really come in handy when you need to visually compare merging conflicts. Other times it's just a nice visual way to review your days work.

The following method works by creating a simple bash script (git-diff-cmd.sh) that sets us up with the proper command line arguments for Git to pass off files to FileMerge.

@andreivmaksimov
andreivmaksimov / failover.sh
Created June 2, 2017 10:40
SOHO Linux Router 2 ISP failover script
#!/bin/bash
# Set defaults if not provided by environment
CHECK_DELAY=${CHECK_DELAY:-5}
CHECK_IP=${CHECK_IP:-8.8.8.8}
PRIMARY_IF=${PRIMARY_IF:-eth2}
PRIMARY_GW=${PRIMARY_GW:-192.168.1.1}
BACKUP_IF=${BACKUP_IF:-eth1}
BACKUP_GW=${BACKUP_GW:-192.168.3.1}