Skip to content

Instantly share code, notes, and snippets.

View goruha's full-sized avatar

Igor Rodionov goruha

  • Cloud Posse
  • Global
View GitHub Profile

Keybase proof

I hereby claim:

  • I am goruha on github.
  • I am goruha (https://keybase.io/goruha) on keybase.
  • I have a public key ASBlR1hRSDlUS6PDkfdbWwb8WUqZjZJAtJVYl596rYd2dgo

To claim this, I am signing this object:

diff --git a/disable-updates.php b/disable-updates.php
index c25ed2f..46352d8 100644
--- a/disable-updates.php
+++ b/disable-updates.php
@@ -139,8 +139,10 @@ class OS_Disable_WordPress_Updates {
*/
function admin_init() {
if ( !function_exists("remove_action") ) return;
-
-
diff --git i/modules/geofield_map/includes/geofield_map_plugin_style_map.inc w/modules/geofield_map/includes/geofield_map_plugin_style_map.inc
index 054eda1..6e4faa0 100755
--- i/modules/geofield_map/includes/geofield_map_plugin_style_map.inc
+++ w/modules/geofield_map/includes/geofield_map_plugin_style_map.inc
@@ -167,14 +167,18 @@ class geofield_map_plugin_style_map extends views_plugin_style {
// defaults
$width = '100%';
- $height = '300px';
+ $padding = '';
@goruha
goruha / gh-dl-release
Created January 12, 2017 05:52
Script allow to download releases from github
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# Source https://gist.github.com/maxim/6e15aa45ba010ab030c4
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
@goruha
goruha / poll.go
Last active December 20, 2016 17:42
Poll
Vote("Лучшее ИТ событие?", List(
( ) false => Event("День Р", "http://day p"),
( ) false => Event("Робофест", "http://day p"),
( ) false => Event("Хэппи-Дев Лайт", "http://day p"),
( ) false => Event("PM Meetup", "http://day p"),
( ) false => Event("Frontend Meetup", "http://day p"),
(*) true => Event("WordPress Meetup", "http://day p"),
( ) false => Event("Code in the Dark", "http://day p"),
( ) false => Event("Cпортивное программирование: Кубок Тамтек", "http://day p"),
( ) false => Event("Drupal Cafe", "http://day p"),
diff --git i/profiles/openatrium/modules/contrib/geocoder/plugins/geocoder_handler/google.inc w/profiles/openatrium/modules/contrib/geocoder/plugins/geocoder_handler/google.inc
index ea5a845..85f1f9c 100755
--- i/profiles/openatrium/modules/contrib/geocoder/plugins/geocoder_handler/google.inc
+++ w/profiles/openatrium/modules/contrib/geocoder/plugins/geocoder_handler/google.inc
@@ -32,6 +32,8 @@ function geocoder_google($address, $options = array()) {
geophp_load();
+ watchdog('debug', $address);
+
diff --git a/profiles/openatrium/modules/contrib/manualcrop/manualcrop.module b/profiles/openatrium/modules/contrib/manualcrop/manualcrop.module
index 2afd2af..8671dfe 100644
--- a/profiles/openatrium/modules/contrib/manualcrop/manualcrop.module
+++ b/profiles/openatrium/modules/contrib/manualcrop/manualcrop.module
@@ -275,12 +275,24 @@ function manualcrop_field_attach_submit($entity_type, $entity, $form, &$form_sta
// We don't do this to file_entity_edit because that form can use revisions
// if file_entity_revisions is enabled, and we want to save our crop data
// AFTER we know the revision id.
- if (user_access('use manualcrop') && (!isset($form['#form_id']) || $form['#form_id'] != 'file_entity_edit')) {
+ if (user_access('use manualcrop') && (!isset($form_state['build_info']['base_form_id']) || $form_state['build_info']['base_form_id'] != 'node_form') && (!isset($form['#form_id']) || $form['#form_id'] != 'file_entity_edit')) {
diff --git i/panopoly_images.make w/panopoly_images.make
index a9d572d..e573485 100755
--- i/panopoly_images.make
+++ w/panopoly_images.make
@@ -11,6 +11,7 @@ projects[manualcrop][download][type] = git
projects[manualcrop][download][revision] = d6c449d
projects[manualcrop][download][branch] = 7.x-1.x
projects[manualcrop][patch][2521962] = https://www.drupal.org/files/issues/manualcrop_dont_show_crop_for_video-2521962-1.patch
+projects[manualcrop][patch][test] = https://www.drupal.org/files/issues/manualcrop-multiple-image-save-no-croppings-2769177-5-D7.patch
{
"name": "mynamespace/myproject",
"description": "Example composer file with provides",
"repositories": [
{
"type": "composer",
"url": "http://drupal-packagist.webflo.io/"
},
{
"type": "package",