Skip to content

Instantly share code, notes, and snippets.

View dstorozhuk's full-sized avatar

Dima dstorozhuk

View GitHub Profile
@thesuhu
thesuhu / how-to-build-and-install-latest-curl-version-on-centos.md
Last active April 29, 2024 21:49
How to Build and Install Latest cURL Version CentOS

How to Build and Install Latest cURL Version on CentOS

# Written by The Suhu (2021).

# Tested on CentOS 7 and CentOS 8

Previously I've written about How to Build and Install Latest cURL Version on Ubuntu. In this article in this article explain how to build and install latest cURL version on CentOS.

@jgilfelt
jgilfelt / README.md
Last active July 2, 2019 20:43 — forked from jagdeepsingh/README.md
ImageMagick 6.7.7-10 homebrew formula

Install ImageMagick 6.7.7-10

$ brew install https://gist.githubusercontent.com/jgilfelt/907d60ba5657e18daf9b4db1e442a6b0/raw/a56bc99ade0c86a60c954ec42cd2bc3bba8180ce/imagemagick.rb
@crittermike
crittermike / import.php
Last active August 11, 2023 10:39
Importing Drupal 8 config programmatically
<?php
// Import arbitrary config from a variable.
// Assumes $data has the data you want to import for this config.
$config = \Drupal::service('config.factory')->getEditable('filter.format.basic_html');
$config->setData($data)->save();
// Or, re-import the default config for a module or profile, etc.
\Drupal::service('config.installer')->installDefaultConfig('module', 'my_custom_module');
@shadcn
shadcn / SerializerWithPager.php
Created December 20, 2016 06:53
A views Serializer plugin for Drupal 8 with pager
<?php
namespace Drupal\MODULE_NAME\Plugin\views\style;
use Drupal\rest\Plugin\views\style\Serializer;
/**
* The style plugin for serialized output formats with pager.
*
* @ingroup views_style_plugins
@facine
facine / __INDEX.txt
Last active August 6, 2023 15:33
Drupal 8 - Examples
# Taxonomy terms:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php
# Menu links:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php
# File items:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php
# Nodes:
@manuelbieh
manuelbieh / imagick.txt
Created October 20, 2011 10:51
Install PHP PECL Imagick on Ubuntu 10.04
Because I'm always struggling, a note for myself (and for others) how it works.
Installing PHP PECL IMagick on Ubuntu:
--------------------------------------
1. $ sudo aptitude install php-pear imagemagick php5-dev libmagick9-dev
2. $ sudo pecl install Imagick
3. $ sudo nano /etc/php5/apache2/php.ini
4. enter extension=imagick.so -> save (ctrl+x / Y)
5. $ sudo apache2ctl configtest