Skip to content

Instantly share code, notes, and snippets.

View faitno's full-sized avatar

Alexey Ch faitno

View GitHub Profile
@bobuk
bobuk / gist:be3e9f5da7aa03557abf
Created January 1, 2015 19:18
AppleTV и проблемы AirPlay

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

center

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

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

@pjv
pjv / hhvm.conf
Last active January 18, 2016 18:04
Ubuntu 14.04 upstart script for HHVM
# hhvm - HipHop VM
#
# The HipHopVM server provides a high performance PHP stack and web server.
# modified by pjv from original found here: http://stackoverflow.com/questions/19013516/upstart-script-for-hhvm-hiphop
description "HHVM server"
author "pjv https://gist.github.com/pjv/2e9ab32d8d9884bf79a4"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
@kevin-ashton
kevin-ashton / gist:b8987b9b081ff8ffbf69
Last active March 13, 2018 07:24
Rsync chmod permissions from windows
You can set the perms using the --chmod parameter e.g.
rsync --verbose --delete --recursive -p --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r /cygdrive/c/src/ user@host:~/src/
will force the permissions to be set to 755 for Directories and 644 for Files.
See https://serverfault.com/questions/233567/how-to-set-file-folder-permissions-using-rsync-from-windows-to-linux/233586#233586 though his code didn't work correctly for me. Needed to specify the directory and folder (F & D) on the group and others (go).

Retina Macbook Pro

Fresh Mavericks OS X Install

Run Software Update…

- OS X Update 10.9.1, iBooks, iTunes, etc.
- Install / Update Apple Programs (Optional)
	- iWork (Pages, Numbers, Keynote)
	- iLife (iMovie, iPhoto, Garageband)
@bjallen
bjallen / main.yml
Created September 10, 2014 21:13
ansible mysql percona task
---
- name: Add Percona apt signing key
sudo: yes
apt_key: keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A state=present
- name: Add Percona repository
sudo: yes
apt_repository: repo='deb http://repo.percona.com/apt trusty main' state=present
- name: Add Percona source repository
@jirutka
jirutka / -README.md
Last active October 31, 2023 09:07
How to use terminal on Windows and don’t go crazy…

How to use terminal on Windows without going crazy…

Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.

Install stuff

  1. Download and install Git for Windows* with:
    • [✘] Use Git from the Windows Command Prompt
  • [✘] Checkout as-is, commit Unix-style line endings
@kaelzhang
kaelzhang / systemstats.sh
Created August 9, 2014 04:21
Resolving systemstats CPU Usage Issues
sudo launchctl stop com.apple.systemstatsd
sudo launchctl stop com.apple.systemstats.periodic
sudo launchctl stop com.apple.systemstats.analysis
mkdir /Users/Shared/oldsysstats
sudo mv /private/var/db/systemstats/* /Users/Shared/oldsysstats
@Realetive
Realetive / secure_install.sh
Last active February 27, 2018 18:20
Advanced installation MODx from GitHub with rename and move core outward the webroot, rename manager and connectors
#!/bin/bash
##############
echo "
//////////////////////////////////////
// //
// Welcome to MODx autoinstaller. //
// //
//////////////////////////////////////
@irazasyed
irazasyed / spintax.php
Last active April 23, 2025 08:05
PHP: Text Spinner Class - Nested spinning supported.
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*/
class Spintax
{
/**
* Set seed to make the spinner predictable.
*/
@alojzije
alojzije / connectHTMLelements_SVG.png
Last active December 16, 2024 10:16
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png