sudo su
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* V4L2 video capture example | |
* | |
* This program can be used and distributed without restrictions. | |
* | |
* This program is provided with the V4L2 API | |
* see http://linuxtv.org/docs.php for more information | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; # redundant in new nginx versions | |
server_name yourserver.com www.yourserver.com; | |
root /usr/share/nginx/www/drupal; | |
access_log off; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
location ~ \..*/.*\.php$ { | |
return 403; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Starting Installation..." | |
# Install dependencies | |
yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel ruby-devel libxml2 libxml2-devel libxslt libxslt-devel git | |
# Install Ruby from rvm | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libraries.module b/libraries.module | |
index 2ce2f19..e7fe5be 100644 | |
--- a/libraries.module | |
+++ b/libraries.module | |
@@ -117,7 +117,7 @@ function libraries_get_libraries() { | |
// profile, installation profiles may want to place libraries into a | |
// 'libraries' directory. | |
if ($profile = \Drupal::installProfile()) { | |
- $profile_path = \Drupal\Core\Extension\ExtensionList::getPath('profile', $profile); | |
+ $profile_path = drupal_get_path('profile', $profile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/entity_embed.module b/entity_embed.module | |
index a531922..e913005 100644 | |
--- a/entity_embed.module | |
+++ b/entity_embed.module | |
@@ -10,6 +10,10 @@ use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Field\FieldItemListInterface; | |
use Drupal\Core\Entity\ContentEntityInterface; | |
+use Drupal\Component\Utility\UrlHelper; | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/features.module b/features.module | |
index 07e2740..7d061b2 100644 | |
--- a/features.module | |
+++ b/features.module | |
@@ -48,10 +48,12 @@ function features_file_download($uri) { | |
/** | |
* Implements hook_modules_installed(). | |
*/ | |
-function features_modules_installed($modules) { | |
- if (!in_array('features', $modules)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/modules/language/language.module b/core/modules/language/language.module | |
index 91641dec..cac5f59a 100644 | |
--- a/core/modules/language/language.module | |
+++ b/core/modules/language/language.module | |
@@ -294,11 +294,13 @@ function language_modules_installed($modules) { | |
// Since newly (un)installed modules may change the default settings for | |
// non-locked language types (e.g. content language), we need to resave the | |
// language type configuration. | |
- /** @var \Drupal\language\LanguageNegotiatorInterface $negotiator */ | |
- $negotiator = \Drupal::service('language_negotiator'); |
OlderNewer