Skip to content

Instantly share code, notes, and snippets.

View pronskiy's full-sized avatar
🐘
🇺🇦

Roman Pronskiy pronskiy

🐘
🇺🇦
View GitHub Profile
@n3b
n3b / install_mcrypt.sh
Created November 12, 2012 16:21 — forked from istepanov/install_mcrypt.sh
Compile and install mcrypt.so PHP extension for Mac OS X 10.8 Mountain Lion
#!/usr/bin/sh
# Scipt for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion)
mkdir /tmp/mcrypt
cd /tmp/mcrypt
curl --location --progress-bar http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download | tar -zx
curl --location --progress-bar http://us.php.net/get/php-5.3.13.tar.gz/from/nl.php.net/mirror | tar -zx
@shadowhand
shadowhand / .gitconfig
Created March 9, 2016 02:34
You just need a bigger hammer!
[alias]
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock
@e1himself
e1himself / HackedHeaderFactory.php
Last active October 24, 2016 00:54
SwiftMailer hack: RFC 6531 (SMTP Extension for Internationalized Email)
<?php namespace App\Mailer\Swift\Mime;
use Swift_Encoder;
use Swift_Mime_Grammar;
use Swift_Mime_Header;
use Swift_Mime_HeaderEncoder;
use Swift_Mime_SimpleHeaderFactory;
/**
* Hack SwiftMailer SimpleHeaderFactory to support RFC 6531
@jvandijk
jvandijk / darcula.theme
Created September 15, 2015 10:46
Highlight Darcula theme
-- Theme generated by vim2theme
Description = "vim darcula"
Default = { Colour="#a9b7c6" }
Canvas = { Colour="#2b2b2b" }
Number = { Colour="#6897bb" }
Escape = { Colour="#cc7832" , Italic=true}
String = { Colour="#a5c25c" }
BlockComment = { Colour="#808080" }
@Ocramius
Ocramius / proposed-dql-inspections.php
Created September 21, 2018 15:15
DQL inspections example/proposal for JetBrains PHPStorm EAP
<?php
class Foo {
private $bar = 'baz';
/** @var Baz @ORM\ManyToOne(targetEntity=Baz::class) */
private $baz;
}
class Baz {
private $tab = 'taz';
@igor-imaginemage
igor-imaginemage / gist:0484ba12e5f3b84a06740404d33e722d
Last active November 15, 2018 20:50
Magento 2 Developer Toolbar (Macbook Touch Bar)
This combination of settings will create these buttons to be used while you are working with Magento 2 development on PHPStorm
Printscreen: http://prntscr.com/l7n4zc
Instructions
1) First install BetterTouchTool (https://folivora.ai/)
2) Then download this profile https://gist.github.com/igor-imaginemage/b1dc812d9896c0f087c0ceaef838a476, rename the file to Default.bttpreset and import on BetterTouchTool. It should import configurations for PHPStorm.
3) The buttons will prompt only on PhpStorm and you should be with PHPStorm terminal opened.
It's a first release of this configuration, any contribution is welcome =)
@jeremeamia
jeremeamia / php-library-building.md
Created November 28, 2018 09:24
List of resources to help with building libraries
@Leneshka-jb
Leneshka-jb / XBladeLanguageInjector.java
Created January 15, 2019 15:44
XBlade-style php injection
package com.jetbrains.php.blade.injection;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.*;
import com.intellij.psi.xml.XmlAttribute;
import com.intellij.psi.xml.XmlAttributeValue;
import com.jetbrains.php.blade.BladeFileType;
import com.jetbrains.php.lang.PhpLanguage;
import org.jetbrains.annotations.NotNull;
@Seldaek
Seldaek / ext-requires.txt
Last active February 15, 2020 18:52
PHP Extension Requirements on Packagist.org
Taken from packagist.org
Packages with a master branch update since June 1st 2018: 98977
Of those, package having requires on PHP extensions: 11676 (11.79%)
As only ~12% of packages declare their extension requirements,
and even then it might not be a complete list, take all this with
a big grain of salt, it is informative but definitely not a
complete picture of the most used extensions.