Skip to content

Instantly share code, notes, and snippets.

@HueJack
HueJack / gist:76b0f8ce0c257c2777fac89a878e2396
Last active January 16, 2020 20:38
Удаленная отладка xdebug + phpStorm
1. Устанавливаем xdebug;
2. В php.ini включаем xdebug и настраиваем удаленное подключение:
zend_extension="/usr/lib64/php/modules/xdebug.so"
xdebug.profiler_enable = 0
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1 #именно 127.0.0.1, а не localhost, иначе может не сработать
xdebug.remote_port=9000 #смотрим свободный, через netstat -tnlp | grep 900
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM #ключ по желанию
@samrocketman
samrocketman / libimobiledevice_ifuse_Ubuntu.md
Last active January 11, 2024 22:47
On Ubuntu 16.04, since iOS 10 update, libimobiledevice can't connect to my iPhone. This is my attempt to document a fix.

Why this document?

I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).

The solution is to compile libimobiledevice and ifuse from source.

Audience

Who is this guide intended for?

@axic
axic / EVMASM.md
Last active May 11, 2024 03:13
EVM Assembly Language

EVM Assembly Language

Motivation

The goal is to specify a syntax for an EVM assembly language, which can be used across various tools.

The format should be human readable, map EVM as closely as possible, allow for comments and refrain from complex syntax.

Specification

@agentsib
agentsib / PKGBUILD
Last active June 24, 2018 13:00
Joxi 3
# Maintainer: Ilya Kovalenko <agentsib@gmail.com>
pkgname=joxi
pkgver=3.0.9
pkgrel=1
pkgdesc="Easy to use screenshot sharing application (Russian)"
arch=('i386' 'x86_64')
url="http://joxi.ru/"
license=('unknown')
options=('emptydirs')
@jaywilliams
jaywilliams / csv_to_array.php
Created April 30, 2010 23:18
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array