This file contains hidden or 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
| [error] Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_job_location_country_code' at row 1: INSERT INTO {node__field_job_location} (entity_id, revision_id, bundle, delta, langcode, field_job_location_langcode, field_job_location_country_code, field_job_location_administrative_area, field_job_location_locality, field_job_location_dependent_locality, field_job_location_postal_code, field_job_location_sorting_code, field_job_location_address_line1, field_job_location_address_line2, field_job_location_organization, field_job_location_given_name, field_job_location_additional_name, field_job_location_family_name) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, |
This file contains hidden or 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
| https://forums.docker.com/t/docker-installation-on-ubuntu-in-virtualbox-cannot-pull-images/20268 | |
| It was a simple issue, undoubtedly documented somewhere but I missed it. I post an answer here in case someone else has the same. | |
| The virtualbox os (ubuntu in my case) has to have a NAT network adapter and the NAT adapter has to have higher priority than a bridge adapter (if you have one). You don’t need a bridged adapter to run docker (but if you want the virtualbox to have an ip on your local network then you do need to add a bridged adapter.) | |
| VirtualBox configuration examples that work to run docker: | |
| VBox Adapter 1: NAT (eth0) | |
| VBox Adapter 1: NAT (eth0), VBox Adapter 2: Bridged Adapter (eth1) |
This file contains hidden or 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 strict'; | |
| const { series, src, dest, watch } = require('gulp'); | |
| const sass = require('gulp-sass'); | |
| sass.compiler = require('node-sass'); | |
| function css() { | |
| return src('./sass/**/*.scss', { sourcemaps: true }) | |
| .pipe(sass().on('error', sass.logError)) | |
| .pipe(dest('./css', { sourcemaps: '.' })); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Next service controller. | |
| */ | |
| namespace Drupal\next_service\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| /** | |
| * Class NsController. | |
| */ |
This file contains hidden or 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
| <?php | |
| /** | |
| * Class to handle all database actions. | |
| */ | |
| class EventRegisterAPI { | |
| protected $event_id; | |
| public $wpdb; | |
| public function __construct( int $event_id, $user_info ) { |
This file contains hidden or 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
| defined( 'ABSPATH' ) or die( 'outside script disabled' ); | |
| /** | |
| * Podio integration details. | |
| */ | |
| define('PODIO_APP_ID','18713618'); |
This file contains hidden or 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
| https://github.com/rprichard/winpty/releases/download/0.4.0/winpty-0.4.0-cygwin-2.5.2-x64.tar.gz ( save this ) | |
| copy wintpy.dll, winpty.exe, winpty-agent to /user/local/bin |
This file contains hidden or 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
| ##### Service | |
| import { Injectable } from '@angular/core'; | |
| import { HttpClient } from '@angular/common/http'; | |
| @Injectable() | |
| export class UserService { | |
| constructor(private httpClient: HttpClient) { } |
This file contains hidden or 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
| <?php | |
| /** | |
| * This is a code sample for how to upload file to drupal services. | |
| * | |
| * This code sample focuses on uploading files and assumes that you are successfully autheticated. | |
| */ | |
| $httpMethod = 'POST'; | |
| $resourceUrl = 'http://example.com/api/file'; |
This file contains hidden or 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
| # | |
| # Verify captcha | |
| $post_data = http_build_query( | |
| array( | |
| 'secret' => CAPTCHA_SECRET, | |
| 'response' => $_POST['g-recaptcha-response'], | |
| 'remoteip' => $_SERVER['REMOTE_ADDR'] | |
| ) | |
| ); | |
| $opts = array('http' => |
NewerOlder