Skip to content

Instantly share code, notes, and snippets.

View unirgy's full-sized avatar

Boris Gurvich unirgy

View GitHub Profile
@unirgy
unirgy / gist:0a7e3761acc457796b484bdd9c2c915d
Created October 13, 2017 17:41
Magento upgrade 2.1.9 -> 2.2.0
$ composer require magento/product-community-edition 2.2.0 --no-update
$ rm -rf vendor/*
zsh: sure you want to delete all the files in /home/moshe/html/a9/vendor [yn]? y
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
@unirgy
unirgy / PHP-SIGNED.md
Last active November 30, 2017 16:56
PHP-SIGNED

PHP-SIGNED

Abstract

This is a proposal for PHP extension to disable running unapproved PHP code, uploaded using security holes or by any other means.

Components

  1. Master key is saved in php.ini (hidden in phpinfo)
  2. Signatures are saved in a file that lives in web or app root folder, 1 line per file/signature
$ cat /etc/apt/sources.list
#
# deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted
# deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
The following extra packages will be installed:
squid3
Suggested packages:
squidclient squid-cgi
The following packages will be upgraded:
squid3
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,519 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Verifying that +bgurvich is my blockchain ID. https://onename.com/bgurvich
[13:30:17] <Jorja> hello
[13:30:17] <Jorja> I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone
[13:32:13] <gsand> Jorja: it's a 30 dollar phone
[13:32:36] <gsand> backup all your files, restore it
[13:33:10] <Jorja> I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone
[13:33:19] <gsand> deja vu
[13:33:20] <Jorja> I CANNOT GET TO SETTINGS
[13:33:23] <gsand> dude
[13:33:28] <gsand> connect it through USB
[13:33:43] <Jorja> NO USB CORD

Keybase proof

I hereby claim:

  • I am unirgy on github.
  • I am bgurvich (https://keybase.io/bgurvich) on keybase.
  • I have a public key whose fingerprint is BB3E 22E8 E30B 0411 ED52 FAF2 3B03 7652 3CCF 4472

To claim this, I am signing this object:

<?php
class Helper
{
public function isModuleActive($code)
{
$module = Mage::getConfig()->getNode("modules/$code");
$model = Mage::getConfig()->getNode("global/models/$code");
return $module && $module->is('active') || $model;
$entModConf = Mage::getConfig()->getNode("modules/Enterprise_Enterprise");
$isEnt = $entModConf && $entModConf->is('active');
<tr post-compile-ng:repeat="(row_num, row) in data.rows" ng:class="trClass(row_num)">
<td ng:repeat="(col_id, column) in config.columns" ng:class="tdClass(col_id)">
<ng:switch on="column.type">
<input ng:switch-when="row_checkbox" type="checkbox" name="row[col_id]"/>
<div ng:switch-when="link">
<a ng:href="{{row[col_id].href}}" ng:bind="row[col_id].title"></a>
</div>
<div ng:switch-when="status_progress">
<div ng:bind="row[col_id].title"></div>
<div ng:show="row[col_id].progress" class="progress">