Skip to content

Instantly share code, notes, and snippets.

View evgmoskalenko's full-sized avatar

Evgeniy Moskalenko evgmoskalenko

View GitHub Profile
@evgmoskalenko
evgmoskalenko / gist:32e88e52d02b60031288e6c86eb1ac3f
Created January 20, 2024 16:46 — forked from bobuk/gist:be3e9f5da7aa03557abf
AppleTV и проблемы AirPlay

После апдейта на iOS8 и OS X 10.10 я обнаружил, что работать с AppleTV стало невозможно. Все начало умирать, тормозить, дисконнектиться. Заикался даже звук, не только видео. Два месяца я терпел, два дня я думал, два часа я потратил на то, чтобы найти проблему и решение. Проблема оказалась закопана глубоко в анонс iOS8, прямо на сайте Apple. Вот тут

center

Поясню: в новых iOS и OS X в сочетании с третьим поколением AppleTV появилась новая крутая возможность. Тепреь не обязательно быть соединенным с одной и той же WiFi точкой, чтобы передавать изображение на AppleTV. Работает это так же, как, например, отправка фоток через AirDrop, технология похожа на WiFi Direct, только очень по-эппловски - широкими броадкастами пытается поймать все WiFi каналы, которые есть рядом. Работает все это прямо на чипе, который реализует WiFi и Bluetooth. И работает, надо сказать, ОЧЕНЬ плохо.

Но страшно не то, что работает это плохо, а то, что включно это

@evgmoskalenko
evgmoskalenko / usage.py
Created April 1, 2021 00:04 — forked from sabueso/usage.py
Script to dump on JSON cpu usage / temp / mem / memory usage
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random, json, subprocess, psutil
json_key={}
def cpu_usage():
cpu_usage = psutil.cpu_percent(interval=2)
json_key['cpu_usage'] = float(cpu_usage)
@evgmoskalenko
evgmoskalenko / Install_Thrift_0.10.0_with_bew.md
Last active March 30, 2018 16:10 — forked from siddharthg/gist:6923b2cbb402bd65255af7859a5d52a5
Install Thrift 0.10.0 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/16ebe5f1843e6cb54856311ff0f676be53007329/Formula/thrift.rb
@evgmoskalenko
evgmoskalenko / black_terminal_style.md
Created March 13, 2018 21:58
Black terminal style

File name

evgmoskalenko.terminal

Content

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
@evgmoskalenko
evgmoskalenko / Sublime-config.md
Last active January 11, 2022 10:05
Sublime config. Color Scheme - Creamy. Theme - Moka + Soda.

Install the Package Control package

  1. Go to http://wbond.net/sublime_packages/package_control/installation & copy the long command there.
  2. Open the Sublime Text 2 console by pressing Ctrl+`.
  3. Paste the command you copied into the Sublime Text console.
  4. Press Enter.
  5. After Package Control installs, restart Sublime Text.

Install "Color Scheme - Creamy"

@evgmoskalenko
evgmoskalenko / docker.md
Last active August 19, 2020 18:50
Docker

RSA

pbcopy < ~/.ssh/id_rsa.pub

Build

docker build -t fs:1.0 .

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@evgmoskalenko
evgmoskalenko / Jenkins+Script+Console.md
Created September 5, 2017 07:30 — forked from mubbashir/Jenkins+Script+Console.md
jenkins groovy scripts collection.
@evgmoskalenko
evgmoskalenko / node.md
Last active June 2, 2016 08:17
Remove node